Coder Social home page Coder Social logo

tool_ci's Introduction

tool_ci

Hi this is a simple tool CI, feel free to use it.

What do we have here?

  1. A simple 'hello from Flask' Python app, with a requirements file and tests.
  2. A Dockerfile in order to build an image from our application.
  3. A Github workflow named 'ci' - This workflow will run the tests in 'test_flask_app'.
  4. A deployment file - Used in order to pull the image (From Docker Hub) and run it on a container in Kubernetes with a loadbalancer.

How does it work?

As soon as you push a commit ('master' branch only), the workflow is triggered.
When the workflow ends, Docker Hub builds a new Docker image.
When the user is ready, he runs the command "kubectl apply -f deployment.yaml" - This will build the pod for our Python app.

Step by step starting it up.

# Clone the project
git clone https://github.com/keoren3/tool_ci.git

# Push some change to master in order to see the workflow.

# apply the deployment:
kubectl apply -f deployment.yaml
# If you're using Minikube as your Kubernetes cluster, don't forget to run the command:
# minikube tunnel

# Enter the address:
http://0.0.0.0:5005/

# You should see: 'Hello from Python!'

Thank you for reading, please notify me if you find any mistakes!

tool_ci's People

Contributors

keoren3 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.