Skip to content

gregkoul/Dockerized-webapp-flask-intro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dockerized-webapp-flask-intro

This is a simple flask webapp that implements GRUD functionality.

Follow these steps in order to create your Dockerized-webapp-flask-intro

  1. First of all you have to clone this repository on your server.
    -$ mkdir -p ~/MyProjects
    -$ cd ~/MyProjects
    -$ git clone https://github.com/gregkoul/Dockerized-webapp-flask-intro.git
                      OR via SSH
    -$ git clone git@github.com:gregkoul/Dockerized-webapp-flask-intro.git
  1. Now you have to build the Docker Image locally.
    -$ cd ~/MyProjects/Dockerized-webapp-flask-intro
    -$ docker build . -t gregkoul/webapp-flask-intro:1.0
  1. Now you have to create a persistent volume.
    -$ docker volume create myvol
    -$ docker volume ls
  1. Now you have to create SQLite database.
    -$ docker run -t -p 5000:5000 -v myvol:/opt gregkoul/webapp-flask-intro:1.0 createdb.py
  1. Now you have to spin up your container.
    -$ docker run -t -p 5000:5000 -v myvol:/opt gregkoul/webapp-flask-intro:1.0

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published