Git Product home page Git Product logo

devent-deploy's Introduction

head

devent-deploy

Automatic container deployment system using Github webhook

To-Do

  • Webhook endpoint designation
  • Docker interworking
  • Create container image
  • Create container
  • Git clone and download
  • Fix git clone event
  • Edit image tag
  • Container version control
  • Event logic separation
  • Auth Git clone
  • Patch container env.

Execute

start

npm run start

start(production)

npm run start:prod

start(development)

npm run start:dev

Webhook

endpoint url

https://test.test/api/webhook/github

Preferences

1. create config file

./backend/config/setting.json

{
    "GITHUB_SECRET":"<github_webhook_secret>",
    "GITHUB_PAT":"",
    "CLONE_REPO_DIR":"<github_repo_local_dir>",
    "ENABLE_USERS":["DipokalLab"]
}

2. nginx-proxy

docker run --detach \
    --name deploy-nginx-proxy \
    --publish 80:80 \
    --publish 443:443 \
 	  -e HTTP_PORT=80 \
	  -e HTTPS_PORT=443 \
    --volume certs:/etc/nginx/certs \
    --volume vhost:/etc/nginx/vhost.d \
    --volume html:/usr/share/nginx/html \
    --volume /var/run/docker.sock:/tmp/docker.sock:ro \
    nginxproxy/nginx-proxy:alpine

3. nginx-proxy

docker run --detach \
    --name deploy-nginx-proxy-letsencrypt \
    --volumes-from deploy-nginx-proxy \
    --volume /var/run/docker.sock:/var/run/docker.sock:ro \
    --volume acme:/etc/acme.sh \
    --env "[email protected]" \
    nginxproxy/acme-companion

Then create and run a './deployenv' file on the service. An example of a 'deployenv' file. Separators are commas.

4. update container env

http://localhost:9003/env

devent-deploy's People

Contributors

dipokallab avatar

Forkers

ecogit-stage

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.