Skip to content

Latest commit

 

History

History
55 lines (46 loc) · 1 KB

README.md

File metadata and controls

55 lines (46 loc) · 1 KB

Take-home project for Infrastructure team

A basic Docker image for use in Branch's Infrastructure take-home project.

Usage

Run locally

Build and run via python3

$ python3 -m venv venv
$ ./venv/bin/pip install -qr requirements.txt
$ FLASK_ENV=development ./venv/bin/python3 app/server.py

Expected output:

 * Serving Flask app "server" (lazy loading)
 * Environment: development
 * Debug mode: on
 * Running on http://0.0.0.0:8000/ (Press CTRL+C to quit)
 * Restarting with stat
 * Debugger is active!

Test application is running

$ curl localhost:8000

Expected output:

Hello BranchIntl World!

Run in Docker

Build the container image

$ docker build -t branchintl/hello-branch-world . 

Run the container

$ docker run --rm -it -p 8000:8000 branchintl/hello-branch-world

Test application is running in the container

$ curl localhost:8000

Expected output:

Hello BranchIntl World!

License

Licensed under MIT.