IMPORTANT NOTE: future lab development is going to happen at the new repo. This repo has issues with GitHub Actions (can be viewed at Actions history)
A Flask app displaying current time in Moscow.
To get a local copy up and running follow these simple steps.
- python3
- Clone the repo
git clone https://github.com/Delt06/devops
- Go to the
app_python
directory
cd ./devops/app_python
- Install
pip
requirements
pip install -r /path/to/requirements.txt
- Launch the app
flask run
- Open the app by the suggested link
A docker image for the Python App.
- Install Docker by following the official instructions
- Go to the
app_python
directory
cd ./devops/app_python
- Launch the build
docker build -t deltation/devops-app-python .
- Pull the image from Docker Hub
- Run the image
docker run -p 5000:5000 deltation/devops-app-python
The project contains a test suite for the Python App. The suite relies on the unittest
module.
To run tests locally, executes the following command from the app_python
folder:
python test.py
The project contains a Test
workflow, which is trigger on every push and pull request. The tests are run inside a Docker container. The status of tests is reflected by the badge at the top of this README file.