v1 is the first release and each software iteration goes up by 1 (v2, v3, etc). main branch runs the latest stable code.
(branch) v1 == python-web-app:v1 (docker image:tag)
(branch) v2 == python-web-app:v2 (docker image:tag)
(branch) main == python-web-app:latest (docker image:tag)
Checkout a particular branch
git branch
git checkout v1
The app version is equal to the branch name.
bin/build-image.sh v1
You can then proceed to start the service with that image
bin/start-container.sh v1
Go to your browser: http://localhost:8000
Alternatively you can run the latest code by following:
git checkout main
bin/build-image.sh latest
bin/start-container.sh latest
bin/deploy.sh latest
If this is your first time running this from your laptop
please make sure you have initialised the terraform aws provider
using terraform init
you also must have aws cli installed and configured.
- Fork this repo and clone to your desktop.
- Add this repo as upstream
git remote add upstream https://github.com/crimsongreen/Python-web-app
- Make sure your repo is up to date
git fetch upstream
- checkout a new branch using issue tracker id as branch name
git checkout -b <new-branch>
- When you're ready to commit
open a pull request against upstream
staging
branch
This Diagram shows the overall system integration and workflow between a user through to the testing and auto deployment to regions using CI/CD.