GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - devclub-iitd/DeployBot: Deployment Management Bot

BranchesTags
Open more actions menu

Latest commit

 

History

125 Commits
125 Commits

Folders and files

NameName
Last commit message
Last commit date
img
img
 
 
scripts
scripts
 
 
src
src
 
 
.dockerignore
.dockerignore
 
 
.env.sample
.env.sample
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 
sample_docker-compose.yml
sample_docker-compose.yml
 
 

Repository files navigation

DeployBot

This is a slack bot that is used for managing deployments of our docerized projects at DevClub.

Requirements

  • You need to have docker and docker-compose installed
  • The following directory structure (where id_rsa is the private key of ssh-key associated with github account)
.
├── docker-compose.yml
├── Dockerfile
├── ignore
│   └── keys
│       └── id_rsa          (ssh private key associated with github account)
│       └── gpg_private.asc (gpg private key associated with github account)
.
.
.

Initial Setup

Copy of docker_conf volume is available

Nothing needs to be done in this case.

No copy of docker_conf volume is present

  • Comment the read_only: true line for docker_conf volume in docker-compose.yml
  • Run: docker-compose up -d
  • ssh into the running docker container using: docker exec -it DeployBot_deploy /bin/bash
  • Setup docker-machine for all the child server using commands like: docker-machine -D create -d generic --generic-ip-address <vm_dns_name> --generic-ssh-key <ssh_key_path> --generic-ssh-user <user_name> --generic-ssh-port <ssh_port> --generic-engine-port <docker_daemon_port> <server_name>
  • Uncomment the commented line in first step
  • Run: docker-compose down

These steps will create a volume named docker_conf which will contain all the necessary information for our bot to deploy projects on configured servers. NOTE: You will also have to deploy ServerConfig on each server for projects deployed to be accessible.

Environment variables

Required environment variable are listed in .env.sample file. All the environment variables should be present in a .env file.

Running

If initial setup has been done once, then just running docker-compose up -d will start the deploybot service. The bot will listen to incoming connections on port 7777 by default.

Sample project configuration

  • Each project should have a .env file for environment variables which should be encrypted using git-secret with devclubiitd user as collaborator. devclubiitd's public gpg key can be found here
  • Each project should have docker-compose.yml to build their projects.
  • Sample docker-compose.yml is given here with name sample_docker-compose.yml.
  • The service names in docker-compose.yml must be of the form <project name>_<service name> to avoid any docker container clashes.
  • The image names in docker-compose.yml must be preceded by ${REGISTRY_NAME}
  • The service that will listen for requests must have:
    • reverseproxy network
    • VIRTUAL_HOST environment variable Note: Never use bind mounts in your compose file.

About

Deployment Management Bot

Topics

deploybotdockervolume

Resources

Readme
MIT license
Activity
Custom properties

Stars

6 stars

Watchers

3 watching

Forks

7 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.