A simple one-page app that shows current time in Moscow.
- Python
- Flask
- Jinja2
- Gevent
- pytest
- pylint/Dockerfile Linter
To get a local copy up and running follow these simple example steps.
Install python and pip
$ sudo apt install python3 python3-pip python3-venv
$ git clone https://github.com/Leosimetti/devops
$ cd devops
$ cd app_python
$ python3 -m venv venv
$ source venv/bin/activate
$ pip3 install -r requirements.txt
Set the PORT
and HOST_IP
environmental variables to the desired values
$ cd app_python
$ pyhton3 main.py
By default, the application will be available at http://localhost:5000
$ docker pull leosimonetti/devops-lab1-flask
$ docker run -p 5000:5000 leosimonetti/devops-lab1-flask
$ cd app_python
$ docker build --tag clock_app --target build .
$ docker run -p 5000:5000 clock_app
$ cd app_python
$ pytest
$ cd app_python
$ docker build --target test .
👤 Vitaliy Korbashov, BS18-SE-01
- Innopolis - [email protected]
- GitHub: @Leosimetti
- Telegram: @Leosimonetti