Skip to main content

Deploying on Server

To get started with setting up the DevOps Pipeline.

Pre-requisites:

  • Jenkins Server for running pipelines
  • Hashicorp Vault for storing secrets
  • Private Docker Registry
  • Ansible for deploying swarm nodes

Setting up the Pipeline

git clone https://github.com/SamagraX-RCW/devops.git
  • Copy the host ip address and paste it inside ansible_workspace_dir/inventory/hosts

  • Run the scripts to install Ansible and start services on admin nodes

chmod +x ./scripts/ansible_init.sh
./scripts/ansible_init.sh
  • Configure Jenkins Credentials for Private Registry

    Go to

    Dashboard > RCW > deploy-staging > Credentials > docker-server > Update with http://localhost:80

    • Also add username and password inside Jenkins credentials
  • Initialize Docker Swarm server

    ansible-playbook -i ./ansible_workspace_dir/inventory/hosts ./ansible_workspace_dir/main.yml
  • Initialize RCW services

ansible-playbook -i ./ansible_workspace_dir/inventory/hosts ./rcw-playboook.yml