Skip to content

Instantly share code, notes, and snippets.

💭
Whalify Yourself !

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

💭
Whalify Yourself !
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 / 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 / docker-stack.yml
Created Sep 27, 2017
Docker Compose showcasing MacVLAN configuration
View docker-stack.yml
version: '3.3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: wordpress
@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
View gist:a65df92d7066c055f98a8a6495c4a86c
https://www.knownhost.com/wiki/control-panels/cpanel-whm/cpanelwhm-locations-of-logs
View gist:feb5fba0106339887b326668851fd5d6
Ajeets-MacBook-Air:examples ajeetraina$ linuxkit build --help
USAGE: linuxkit build [options] <file>[.yml] | -
Options:
-dir string
Directory for output files, default current directory
-disable-content-trust
Skip image trust verification specified in trust section of config (default false)
-format value
Formats to create [ aws docker dynamic-vhd gcp iso-bios iso-efi kernel+initrd qcow2-bios raw-bios raw-efi rpi3 tar tar-kernel-initrd vhd vmdk ]
@ajeetraina
ajeetraina / gist:0065e7224ae182ea3818a3a8563da5ea
Created Dec 2, 2017
Deploying k8s on an ARM64 cluster of RPi3 with HypriotOS & automatically initializing the nodes at boot time with Cloud-Init
View gist:0065e7224ae182ea3818a3a8563da5ea
root@black-pearl:/home/pirate# cat /etc/issue
HypriotOS (Debian GNU/Linux 9) \n \l
root@black-pearl:/home/pirate#
root@black-pearl:/home/pirate# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
You can’t perform that action at this time.