Skip to content

Take-home project for candidates going for our infrastructure engineering roles.

License

Notifications You must be signed in to change notification settings

BranchIntl/take-home-project-infra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Take-home project for candidates going for our infrastructure engineering roles.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published