Skip to content

Instantly share code, notes, and snippets.

View sanjaygeeky's full-sized avatar

Sanjay Mahajan sanjaygeeky

View GitHub Profile
@sanjaygeeky
sanjaygeeky / rabbitmq.sh
Created January 18, 2022 15:55 — forked from misablaha/rabbitmq.sh
Install RabbitMQ on Amazon Linux 2
sudo yum update -y
sudo yum install htop -y
# Install Erlang
sudo yum install https://github.com/rabbitmq/erlang-rpm/releases/download/v21.3.4/erlang-21.3.4-1.el7.x86_64.rpm -y
# Install RabbitMQ
sudo yum install https://dl.bintray.com/rabbitmq/all/rabbitmq-server/3.7.14/rabbitmq-server-3.7.14-1.el7.noarch.rpm -y
# Allow remote connections
@sanjaygeeky
sanjaygeeky / docker-build-publish-Jenkinsfile
Created December 29, 2020 19:18 — forked from initcron/docker-build-publish-Jenkinsfile
Docker Build and Publish Script Snippet for Jenkinsfile
docker.withRegistry('https://index.docker.io/v1/', 'dockerlogin') {
def dockerImage = docker.build("xxxxxx/xxxxx:v${env.BUILD_ID}", "./")
dockerImage.push()
dockerImage.push("latest")
}
version: "3"
networks:
nw01:
driver: bridge
volumes:
db-data:
services:
version: "3"
networks:
nw01:
driver: overlay
volumes:
db-data:
services:
@sanjaygeeky
sanjaygeeky / docker_build_dockerfile_facebooc.md
Created September 20, 2020 14:35 — forked from initcron/docker_build_dockerfile_facebooc.md
Instruction to build docker image for facebooc using Dockerfile

Building image with Dockerfile

Change into facebooc directory which containts the source code. This assumes you have already cloned the repo. If not, clone it from https://github.com/schoolofdevops/facebooc

cd facebooc 
ls
@sanjaygeeky
sanjaygeeky / docker-compose-jenkins.yaml
Created September 20, 2020 14:33 — forked from initcron/docker-compose-jenkins.yaml
Docker Compose spec to launch Jenkins along with dind (docker host) as per the official documentation at https://www.jenkins.io/doc/book/installing/#installation-platforms
version: "3.8"
networks:
jenkins:
driver: bridge
volumes:
jenkins-docker-certs:
jenkins-data:
@sanjaygeeky
sanjaygeeky / swarm_tutorial_v3.md
Created September 20, 2020 13:57 — forked from initcron/swarm_tutorial_v3.md
Docker Swarm with V3 stack specifications and stack deploy

Lab : Orchestrating and deploying app in Production with SWARM

Deploying Application Stack with Swarm Mode and Stack version "3" specification

Launch a Visualizer on Master (SWARM Manager)

docker run -itd -p 8080:8080 -v /var/run/docker.sock:/var/run/docker.sock schoolofdevops/visualizer
@sanjaygeeky
sanjaygeeky / build_image_manually_voting_worker_app.md
Created September 18, 2020 12:49 — forked from initcron/build_image_manually_voting_worker_app.md
Building Docker Image for voting Worker app

Clone Repository for Java Worker Process

git clone https://github.com/schoolofdevops/voting-app-worker.git

Launch a intermediate container to install worker app

Create a Container with schoolofdevops/voteapp-mvn:v0.1.0 image

docker.withRegistry('https://index.docker.io/v1/', 'dockerlogin') {
def dockerImage = docker.build("xxxxxx/xxxxx:v${env.BUILD_ID}", "./")
dockerImage.push()
dockerImage.push("latest")
}
@sanjaygeeky
sanjaygeeky / manual-install-nodejs-alpine.sh
Created August 1, 2020 11:58
Shell script to install nodejs manually
#!/bin/bash
export NODE_VERSION=4.8.6
apk add --no-cache libstdc++
apk add --no-cache --virtual .build-deps \
binutils-gold \
curl \
g++ \
gcc \