mbigras / app1

App1 is for practicing application delivery

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

App1

App1 is a Flask web application for practice.

App1 is for practicing application delivery.

Getting started

  1. Build the app1 Docker image.

    docker build -t app1 .
    
  2. Run the app1 Docker container.

    docker run --rm -it -p 8080:8080 -e FOO=fortytwo app1
    

    Consider the following options:

    • --rm : Ensure the container is cleaned up when stopped.
    • -it: Run App1 in the foreground.
    • -p 8080:8080: Publish the App1 default listening port 8080 to host port 8080.
    • -e FOO=fortytwo: Configure the foo setting.
  3. Open a separate terminal.

  4. Send an HTTP GET request.

    curl http://localhost:8080/
    

    The app1 configuration is returned as JSON.

  5. Navigate back to the terminal where App1 is running.

  6. Shutdown App1.

    Press ctrl+c.

About

App1 is for practicing application delivery


Languages

Language:Python 45.7%Language:Shell 39.8%Language:Dockerfile 14.5%