This DevOps Project was developed on a Windows 10 machine.
Ansible config and / or related files could have some mistakes.
DHBW Lecturer: R. Lieb
Course: TINF20C
Year: 2022
---docker pull benesenwein/devops-python-flask-webapp:latest
docker create devops-python-flask-webapp
docker container start -i [image id]
optionally the attribute '-p' can be added to set the application port (by default 5000:5000 is recommended)
- you have to install VirtualBox
- you have to install vagrant
Shell: vagrant up
- make sure you have azure cli installed and you are logged in
- make sure you have terraform installed (Windows - recommended through chocolatey)
- make sure to install it like
choco install terraform -y
- the flag '-y' allows your machine to execute a ps1 file after installation to ensure terraform is installed corretly
- make sure to install it like
- change configuration in main.tf and variables.tf with your own property values
Shell: ''terraform validate
''
Shell: ''terraform plan
''
Shell: ''terraform apply
'' - apply with 'yes'
Shell: ''python -m pytest -v
''
If you want to have a correct code higlighting in the local code editor make sure to run the following command to install the packages:
Shell: ''pip install -r .\requirements.txt
''