Skip to content

yoshi486x/primely_docker_flask

Repository files navigation

Primely Docker Flask

Generic badge Generic badge

Theme image

Update(May 18, 2020):

Description

Containerized web app for visualizing paychecks

Get Started with Primely

Prerequisites

Make sure you have already installed both Docker Engine and Docker Compose. You don’t need to set your local Python environment, as it'll be provided by Docker image.

Step 1: Setup

Git clone the latest repository. (e.g. <branch-name> = release/v0.0.1, <path-to-local-repo> = primely_docker_flask)

git clone -b <branch-name> https://github.com/yoshiki-o0/primely_docker_flask.git
cd <path-to-local-repo>

Run setup.sh

sh scripts/setup.sh

Step 2: Build and run container

docker-compose up

Step 3:�Access application

Hit 127.0.0.1:5000 on your browser

Interface manual

Button Description
Choose Files Select paycheck PDF files to upload to server
Upload Commit upload on selected files
Run Execute conversion for the uploaded files
Reset Remove converted data on server
Delete Remove all PDF files on server

Enjoy!

Relative Docker Commands

Build a docker image from the Dockerfile:

docker build --no-cache -t <image-name> <path/to/Dockerfile>

Create a docker container from the Dockerfile:

  1. Activate predefined process from the Dockerfile

    docker run -p 0.0.0.0:5000:80/tcp --name <container-name> -d <image-id>
  2. Setup container according to the Dockerfile, and login to it's container. (Flask app won't run on activation, since CMD parameter is overwritten by cli ENTRYPOINT parameter )

    docker run -it -p 0.0.0.0:5000:80/tcp --name <container-name> --entrypoint /bin/bash <image-id>
    flask run --host=0.0.0.0 --port=80

Stop container:

docker-compose stop

Remove container:

docker-compose down

Exit from a docker container:

Mac: ctrl-D

Licence

Primely is freely available for free non-commercial use and may be redistributed under conditions. Please, see the licence for further details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors