Skip to content

Repository files navigation

An example of a containerized Flask app to play with K8s and Docker

The app shows one page with information about the server inside a container and a client who requests this page. By default gray background is used for the page. You may redefine the background color by specifying the environment variable COLOR or providing an additional argument --color.

Images published in Docker Hub and GitHub Container Registry for easy consumption:

  1. Docker Hub
  2. GitHub Container Registry

For example, to pull and run:

Docker

docker run --rm --detach --publish 8081:8080 --pull always andreygrechin/webcolors:latest
open http://localhost:8081/

docker run --rm --detach --publish 8082:8080 --pull always --env COLOR=gold andreygrechin/webcolors:latest
open http://localhost:8082/

docker run --rm --detach --publish 8083:8080 --pull always --env COLOR=blue andreygrechin/webcolors:0.1.3
open http://localhost:8083/

docker run --rm --detach --publish 8084:8080 --pull always andreygrechin/webcolors:0.1.3 --color red
open http://localhost:8084/

GitHub

docker run --rm --detach --publish 8085:8080 --pull always ghcr.io/andreygrechin/webcolors:latest
open http://localhost:8085/

docker run --rm --detach --publish 8086:8080 --pull always --env COLOR=gold ghcr.io/andreygrechin/webcolors:latest
open http://localhost:8086/

docker run --rm --detach --publish 8087:8080 --pull always --env COLOR=blue ghcr.io/andreygrechin/webcolors:0.1.3
open http://localhost:8087/

docker run --rm --detach --publish 8088:8080 --pull always ghcr.io/andreygrechin/webcolors:0.1.3 --color red
open http://localhost:8088/

About

An example of a containerized Flask app to play with K8s and Docker

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages