GithubHelp home page GithubHelp logo

isabella232 / semaphore-demo-python-flask Goto Github PK

View Code? Open in Web Editor NEW

This project forked from semaphoreci-demos/semaphore-demo-python-flask

0.0 0.0 0.0 108 KB

Semaphore demo CI/CD pipeline using Docker Compose and Python Flask

Dockerfile 1.23% Python 37.66% HTML 61.11%

semaphore-demo-python-flask's Introduction

A Semaphore demo CI/CD pipeline using Docker based Python / Flask / MongoDB application

Build Status

Example of Docker based, Python Flask MongoDB application and CI/CD pipeline for integrating it with Semaphore 2.0. This application demonstrates CRUD operations using Flask and MongoDB as database. It also includes UI for all CRUD views.

Local project setup

  1. Fork this repository and clone into your local

  2. Make sure, you have docker-compose and docker installed on your machine

  3. Run following docker-compose command

    docker-compose up
    
  4. That's all. Visit localhost:5000 from your browser, You'll see flask application running.

CI/CD on Semaphore

Fork this repository and use it to create a project

curl https://storage.googleapis.com/sem-cli-releases/get.sh | bash
sem connect <semaphore-organization-link> <semaphore-id> // found in Semaphore Dashboard
cd <project directory>
sem init

Install SEM CLI into your local

Create your Docker credential file using metadata name as pyflask-semaphore and encrypt it with SEM CLI tool that is installed in previous step How To

Once everything will setup appropriately as descibed in above steps, The CI pipeline will look like this:

pipeline

The example pipeline contains 2 blocks:

  • Build
    • Docker build
  • Run Docker Image
    • Run latest Docker image

semaphore-demo-python-flask's People

Contributors

markoa avatar rehabhassanein avatar saiflakhani avatar tomfern 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.