/devops

Primary LanguagePythonMIT LicenseMIT

Clock

Build and push Docker image

A simple Python ap that shows current time in Moscow

Description

This is a Python ap that shows current time in Moscow (GMT+3). It is built with Flask.

Getting Started

Dependencies

Python 3, Flask+Jinja2, pytz. For more details check out app_python/requirements.txt

Installing & Running

Clone this repository, enter app_python and execute following commands to run the app

source .env
pip install -r requirements.txt
python -m flask run

Then you can open [http://localhost:5000] in your browser.

Running with Docker

There is a Docker image built with app. To run it you need Docker. Simply launch

docker run --publish 5000:5000 mexator/clock

Unit tests

Clone this repository, enter app_python and execute following command to run tests

pip install -r requirement.test.txt
pytest src/test
python -m src.test.test

Authors

Anton Brisilin

License

This project is licensed under the MIT license - see the License.txt file for details