A minimal app for testing and demoing GitOps processes.
The app runs a simple webserver and has two endpoints:
/healthzreturns a json object containing the app version as a string/displays a very simple web page that also has the app version, as well as content that is set via environment variables
The following environment variables can be set in the built container image, or locally in a .env file:
| Variable | Default | Valid Values | Description |
|---|---|---|---|
SAMPLE_VAR |
"UNSET" |
Any string | A text value that is displayed on the webpage |
COLOR |
none |
none, yellow, orange, red, magenta, violet, blue, cyan, green |
Sets the background color of the webpage. Valid values are the (non-base) Solarized color names (e.g. blue, red, cyan, etc.) |
CONTEXT_PATH |
/ |
A URL subpath | The subpath the app is deployed at |
- smoke/integration tests
pip install -e '.[all]'./runDev.shdocker build -t nrao/releng/dummy_app:local .docker run --rm \
-p 8000:5000 \
--name dummyapp \
nrao/releng/dummy_app:localIf the error mentions something about 'Bad Credentials' or a bad token, you probably need to setup a GITHUB_TOKEN and pass it to act