Skip to content

Instantly share code, notes, and snippets.

View yogendra's full-sized avatar

Yogendra Rampuria - Yogi yogendra

View GitHub Profile
@yogendra
yogendra / scratch
Last active April 19, 2020 07:20
Scratc
docker volume create mlab-mongo
docker container run --rm --name mlab-mongo --network-alias mlab-mongo -p 27017:27017 -v mlab-mongo-data:/data/db -d mongo
docker container run --rm --name mlab -p 5000:5000 -e VCAP_SERVICES='{"mlab": ["credentials": {"uri":"mongodb://mlab-mongo:27017/mlab"}]}' -v config.py:/usr/src/app/config.py cloudgeek007/devopspipeline:6
@yogendra
yogendra / README.md
Last active August 21, 2023 09:24
Jenkins on Docker

Run Jenkins on Docker

(Option 1) Docker Compose way

  1. You should have docker-compose installed. If you don't have it, get it from [docker/compose][docker-compose] release page.
  2. Get the [docker-compose.yml][docker-compose.yml]
  3. Go to command line / terminal
  4. Go to directory containing docker-compose.yml. Generally it will be Downloads directory
  5. Run docker compose and dertach
    docker-compose up -d
@yogendra
yogendra / .vimrc
Last active May 23, 2021 09:41
Kubernetes Environment Helpers
" Install minimal vimrc using:
" wget -q https://yogendra.me/minimal-vimrc -O ~/.vimrc
let g:netrw_liststyle=3
set autoindent
set cursorcolumn
set cursorline
set expandtab
set history=50
set hlsearch
set ignorecase
@yogendra
yogendra / bumpme
Created July 20, 2019 14:08
Concourse Tutorial Gist
foo
@yogendra
yogendra / .editorconfig
Last active July 14, 2019 06:41
PCF - Automation
root = true
[*]
end_of_line = lf
insert_final_newline = true
# Matches multiple files with brace expansion notation
[*.{js,jsx,html,sass,md}]
charset = utf-8
indent_style = space
@yogendra
yogendra / values.yaml
Created July 10, 2019 22:08
Helm Jenkins
Master:
AdminUser: user
AdminPassword: user
InstallPlugins:
- kubernetes:1.12.0
- workflow-job:2.23
- workflow-aggregator:2.5
- credentials-binding:1.16
- git:3.9.1
- blueocean:1.7.1

Install PCF Dev on Linux

Requirement

  • Ubuntu 18.04+
  • Resource Requirements as per PCF Dev
    • Machine with 16 GB RAM
    • 40 GB Free space
    • Virtualization (Virtualbox, libvirt or Hyper-V)

How to use?

@yogendra
yogendra / keybase.md
Created May 10, 2019 17:14
keybase.md

Keybase proof

I hereby claim:

  • I am yogendra on github.
  • I am ryogendra (https://keybase.io/ryogendra) on keybase.
  • I have a public key whose fingerprint is D14A C2E3 44A8 8F9F 2854 21F3 019E CB5C DC6D 59B7

To claim this, I am signing this object:

@yogendra
yogendra / README.md
Last active April 8, 2020 07:57 — forked from dwallraff/jumpbox.sh
Personal jumpbox bootstrap script -- curl -L dwallraff.com/jumpbox | bash

Jumpbox

This gist initialized a jumpbox

@yogendra
yogendra / riff-minikube-demo.sh
Created April 23, 2019 13:50
PFS, Riff and Knative
#!/usr/bin/env bash
# Create Minikube
minikube start \
--memory=4096 --cpus=4 \
--kubernetes-version=v1.14.0 \
--vm-driver=hyperkit \
--bootstrapper=kubeadm \
--extra-config=apiserver.enable-admission-plugins="LimitRanger,NamespaceExists,NamespaceLifecycle,ResourceQuota,ServiceAccount,DefaultStorageClass,MutatingAdmissionWebhook"