Skip to content

Instantly share code, notes, and snippets.

💭
Whalify Yourself !

Ajeet Singh Raina, Docker Captain, {Code} Catalysts, Dell EMC R&D ajeetraina

Block or report user

Report or block ajeetraina

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ajeetraina
ajeetraina / docker-compose.yml
Created Oct 4, 2018
Docker Compose for ELK Stack
View docker-compose.yml
version: '2'
services:
elasticsearch:
build:
context: elasticsearch/
volumes:
- ./elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro
ports:
@ajeetraina
ajeetraina / gist:c446c703969e8fb023f896a10fd3eda9
Created Jul 25, 2018
Installing Jenkins inside Docker Container on macOS
View gist:c446c703969e8fb023f896a10fd3eda9
[Captains-Bay]🚩 > mkdir jenkins
[Captains-Bay]🚩 > cd jenkins/
[Captains-Bay]🚩 > vi Dockerfile
Captains-Bay]🚩 > cat Dockerfile
FROM jenkins/jenkins:lts
USER root
RUN apt-get update && apt-get install net-tools -y
RUN groupadd docker && gpasswd -a jenkins docker
@ajeetraina
ajeetraina / gist:c2183611fef699caf0ac536b77c0c5d6
Last active Jun 19, 2018
Docker Compose v3.6 for Swarm & Kubernetes - Issue
View gist:c2183611fef699caf0ac536b77c0c5d6
[Captains-Bay]🚩 > cat docker-compose.yml
version: '3.6'
services:
web1:
image: nginx:alpine
ports:
- 8085:80
db1:
image: nginx:alpine
View gist:b9a137c9a053c30ea6bfe30b339f11e9
Step-1: Open Git Bash.
Paste the text below, substituting in your GitHub email address.
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
This creates a new ssh key, using the provided email as a label.
Generating public/private rsa key pair.
@ajeetraina
ajeetraina / gist:ac983ea54d407ab82ba1f4d542d9c1b2
Created May 7, 2018
LinuxKit YAML to build Docker for Mac
View gist:ac983ea54d407ab82ba1f4d542d9c1b2
# This is an example for building the open source components of Docker for Mac
kernel:
image: linuxkit/kernel:4.14.39
cmdline: "console=ttyS0 page_poison=1"
init:
- linuxkit/vpnkit-expose-port:4e2ea826aaefdd196c7473255654d06ad96c4c21 # install vpnkit-expose-port and vpnkit-iptables-wrapper on host
- linuxkit/init:11929b0007b87384f7372e9265067479c4616586
- linuxkit/runc:acba8886e4b1318457c711700f695a02fef9493d
- linuxkit/containerd:f197e7cbb2ede4370b75127c76de6f7b2e3d9873
- linuxkit/ca-certificates:fb5c7bf842a330f5b47cdf71f950fe0c85f4a772
@ajeetraina
ajeetraina / gist:f39f5970856db99a9102d9beb08042bd
Last active Feb 27, 2018
Running Jenkins Inside Docker containers
View gist:f39f5970856db99a9102d9beb08042bd
brew cask install caskroom/versions/java8
brew install jenkins
If you want to run Jenkins inside Docker container:
[Captains-Bay]🚩 > bbrew install jenkins
==> Downloading http://mirrors.jenkins.io/war/2.109/jenkins.war
==> Downloading from http://ftp-chi.osuosl.org/pub/jenkins/war/2.109/jenkins.war
@ajeetraina
ajeetraina / gist:99d93bc768641b464aa02836ecfa57c3
Created Jan 10, 2018
Kubernetes powered Docker for Mac on High Sierra
View gist:99d93bc768641b464aa02836ecfa57c3
Docker for Mac: version: 17.12.0-ce-mac45 (a61e84b8bca06b1ae6ce058cdd7beab1520ad622)
macOS: version 10.13.1 (build: 17B1003)
logs: /tmp/D8FEC121-9CFC-4F96-90B6-E65288797EAB/20180110-094659.tar.gz
[OK] db.git
[OK] vmnetd
[OK] dns
[OK] driver.amd64-linux
[OK] virtualization VT-X
[OK] app
[OK] moby
@ajeetraina
ajeetraina / docker-compose.yml
Created Dec 19, 2017
Docker Compose for demonstrating Swarm & Kubernetes Integration under Docker for Mac 17.12
View docker-compose.yml
version: "3"
services:
nginx:
image: nginx
ports:
- 82:80
- 444:443
deploy:
@ajeetraina
ajeetraina / gist:9c46fc410e48f322ec72535d5db38078
Created Dec 17, 2017
YAML file to build LinuxKit OS with SSH Enabled by default
View gist:9c46fc410e48f322ec72535d5db38078
kernel:
image: linuxkit/kernel:4.9.69
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
init:
- linuxkit/init:9250948d0de494df8a811edb3242b4584057cfe4
- linuxkit/runc:abc3f292653e64a2fd488e9675ace19a55ec7023
- linuxkit/containerd:e58a382c33bb509ba3e0e8170dfaa5a100504c5b
- linuxkit/ca-certificates:de21b84d9b055ad9dcecc57965b654a7a24ef8e0
onboot:
- name: sysctl
@ajeetraina
ajeetraina / gist:0d32eaca14df499fce883cebd8f6d559
Created Dec 17, 2017
Minimal YAML for building LinuxKit OS
View gist:0d32eaca14df499fce883cebd8f6d559
kernel:
image: linuxkit/kernel:4.9.69
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
init:
- linuxkit/init:9250948d0de494df8a811edb3242b4584057cfe4
- linuxkit/runc:abc3f292653e64a2fd488e9675ace19a55ec7023
- linuxkit/containerd:e58a382c33bb509ba3e0e8170dfaa5a100504c5b
onboot:
- name: dhcpcd
image: linuxkit/dhcpcd:0d59a6cc03412289ef4313f2491ec666c1715cc9
You can’t perform that action at this time.