Skip to content

Repository files navigation

Release Engineering Dummy App

A minimal app for testing and demoing GitOps processes.

App

The app runs a simple webserver and has two endpoints:

  • /healthz returns 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

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

TODOS

  • smoke/integration tests

Development

Install development dependencies

pip install -e '.[all]'

Run app in dev mode

./runDev.sh

Build container

docker build -t nrao/releng/dummy_app:local .

Run the built container

docker run --rm \
    -p 8000:5000 \
    --name dummyapp \
    nrao/releng/dummy_app:local

Troubleshooting

Some docker actions fail when run with act

If the error mentions something about 'Bad Credentials' or a bad token, you probably need to setup a GITHUB_TOKEN and pass it to act

About

A minimal app for testing and demoing GitOps processes

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages