A Golang boilerplate code to test and benchmark cloud platforms.
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:
go run main.gocd deployments
docker-compose upYou 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).
ibmcloud cf push -f deployments/manifest.ymlibmcloud cf pushAlso you can use the 1-click deploy button. It will use the platform's DevOps pipeline to build and deploy the app.
Support platforms:
MIT License
Copyright (c) 2020 Victor Shinya
