Public | Automated Build

Last pushed: a year ago
Short Description
This is a Quiz Application developed using Flask.
Full Description

#+TITLE: flask-docker

#+AUTHOR: Veda Vyas

  • Setting up =Docker= to view elt-flask
    ** Install =DockerToolbar=

** Install =VirtualBox=

** Run =Docker Quickstart Terminal=

  • Run it from the Desktop (Windows users).

** Pull the image using =docker=

docker pull vedavyas/elt-flask


** Run the given image in a =container=

docker run -p 8080:80 vedavyas/elt-flask


** Setup =virtualbox=

VBoxManage controlvm default natpf1 "flask_app,tcp,,8080,,8080"


  • Make sure that VBoxManage executable is added to path variable.

** Run the app

  • Goto [[localhost:8080]] and you should see the homepage of Quiz Software.
  • Creating your own version of this repository
    ** Fork this repository.
  • If you are a collaborator of this repo skip forking and clone this repository.

** Create an account at DockerHub

** Create a repository

  • Click the "Create" dropdown in the far top right corner (not the "Create Repository+" button).

** Link project to Github

  • Select "Create Automated Build"
  • Link your Github account, select your user, select the github repo, etc.
  • Click the "Trigger a build" button, go to the "Build Details" tab and you should see a new build for your container.
  • Testing your =docker container= for changes
    ** Make a change to your Flask application
  • White space changes or comments are easy to test.

** Push your change to github.

git add <changed files>
git commit -m <commit message>
git push origin master


** Check build update

  • Go to your dockerhub account.
  • Click on your automated build repository.
  • Click the build details tab.
  • You can now see the update build.

** Open =docker= terminal

docker pull vedavyas/elt-flask
docker run -p 8080:80 vedavyas/elt-flask


** Check the app

  • Go to [[localhost:8080]] in your browser and you should see your application.
Docker Pull Command
Source Repository