Skip to main content

Compose Based Deployment

Here we'll deploy our pipeline in the Docker Container using compose.

Pre-requisites:

  • Jenkins Server for running pipelines
  • Hashicorp Vault for storing secrets
  • Docker Swarm (This could be your localhost as well)
  • Make cli for running Makefile

Setting up the Pipeline

git clone https://github.com/SamagraX-RCW/devops.git
  • Run the scripts to install Docker Ansible and Vault Cli

chmod +x ./scripts/setup.sh
./scripts/setup.sh
  • Install and Start Jenkins Service

chmod +x ./scripts/jenkins_init.sh
./scripts/jenkins_init.sh

Jenkins init image

sudo systemctl restart jenkins

Jenkins Restart image

Jenkins dashboard image

  • Now run the compose file to deploy Registry, Nginx and Vault

docker compose up -d

Docker Compose image

  • Start RCW Services

    • Run the script to init the vault & generate unseal tokens
    make start