Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/schottsfired/sample-go-app
https://github.com/schottsfired/sample-go-app
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/schottsfired/sample-go-app
- Owner: schottsfired
- License: mit
- Created: 2023-11-01T20:20:19.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-01T20:31:10.000Z (about 1 year ago)
- Last Synced: 2024-10-14T22:07:41.418Z (2 months ago)
- Language: Go
- Size: 596 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CloudBees Sample Go App
This is a simple demo app that can be used to identify the different build versions of the application as well as the environment they are running in.
![screenshot](./img/screenshot.png)
## How to build
A Dockerfile is included so you can build container images. Alternatively, you can use Go to build it using `go build`.
## How to run
Whether you run the binary directly, or through a container image, you can set the `ENVIRONMENT` environment variable to alter the name that appears in the application. The GitHub SHA is taken from the latest git commit as of building.