Home

Awesome

Go Cloud

IBM Cloud Powered Platform Go Report Card

A Golang boilerplate code to test and benchmark cloud platforms.

Architecture Design

Run locally

Before you run the app, you need to install Golang and quick set up the local environment (your computer). Install Docker and Docker Compose if you want to start using the second option (modular and no "works on my machine"). After the installation and set up, you will be able to run the following code:

Using Golang CLI

go run main.go

Using Docker (with docker-compose)

cd deployments
docker-compose up

Deploy the application on IBM Cloud

You can deploy on IBM Cloud in two different ways: using Go buildpack (using the Golang Runtime) or using Static buildpack (which uses NGINX). By default, the IBM Cloud will use Staticfile for cloud environment (because there is a Staticfile at the root of the project). If you want to deploy using Golang, use the flag -b go_buildpack or -f deployments/manifest.yml (which includes the reference to the Golang buildpack).

Go Runtime

ibmcloud cf push -f deployments/manifest.yml

Staticfile (or NGINX on IBM Cloud)

ibmcloud cf push

1-Click deploy

Also you can use the 1-click deploy button. It will use the platform's DevOps pipeline to build and deploy the app.

Support platforms:

License

MIT License

Copyright (c) 2020 Victor Shinya