Giter Site home page Giter Site logo

devops's Introduction

Moscow watch

CI to Docker Hub

Moscow watch is a Moscow time knowledge application written in Python

It takes utc time, converts it to Moscow time and shows in browser

Installation

  1. Clone this git repository.
  2. Install Python3 and modules from app_python\requirements.txt

Usage

  1. Run the following command
python app_python\main.py
  1. Open link

Docker

  1. You can launch the app by running
docker build -t app_python .
docker run -p 8080:8080 app_python
  1. Then check the link

Docker hub

Also you can run it using

docker run --publish 8080:8080 safinsaf/devops_app_python

Unit tests

  1. To run unit tests install following packages:
pytest==6.2.4
requests==2.26.0
  1. Run the following command in app_python directory
pytest

Github Actions

Each commit for app_python is checked by linters, tests After all tests pass, image is deployed to Docker Hub

References

https://www.datree.io/resources/github-actions-best-practices https://docs.docker.com/ci-cd/github-actions/ https://www.docker.com/blog/best-practices-for-using-docker-hub-for-ci-cd/ https://www.lambdatest.com/blog/jenkins-best-practices/ https://gist.github.com/adelmofilho/5a30a87eaf1cd4a03052f37b516d6714 https://registry.terraform.io/providers/bmatcuk/vagrant/latest/docs https://learn.hashicorp.com/tutorials/terraform/aws-buildye https://github.com/bmatcuk/terraform-provider-vagrant https://github.com/geerlingguy/ansible-role-pip/blob/master/tasks/main.yml

devops's People

Contributors

safinsaf avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.