Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View bikranz4u's full-sized avatar
🎯
Focusing

Bikram bikranz4u

🎯
Focusing
View GitHub Profile
@bikranz4u
bikranz4u / Jenkinsfile
Created April 19, 2019 03:19 — forked from jonico/Jenkinsfile
Example for a full blown Jenkins pipeline script with multiple stages, kubernetes templates, shared volumes, input steps, injected credentials, heroku deploy, sonarqube and artifactory integration, Docker containers, multiple Git commit statuses, PR merge vs branch build detection, REST API calls to GitHub deployment API, stage timeouts, stage c…
#!groovy
import groovy.json.JsonOutput
import groovy.json.JsonSlurper
def label = "mypod-${UUID.randomUUID().toString()}"
podTemplate(label: label, yaml: """
spec:
containers:
- name: mvn
image: maven:3.3.9-jdk-8-alpine
@bikranz4u
bikranz4u / docker-for-mac.md
Created March 2, 2019 10:03 — forked from BretFisher/docker-for-mac.md
Getting a Shell in the Docker for Mac Moby VM

2018 Update: Easiest option is Justin's repo and image

Just run this from your Mac terminal and it'll drop you in a container with full permissions on the Moby VM. This also works for Docker for Windows for getting in Moby Linux VM (doesn't work for Windows Containers).

docker run -it --rm --privileged --pid=host justincormack/nsenter1

more info: https://github.com/justincormack/nsenter1


@bikranz4u
bikranz4u / helm-cheatsheet.md
Created December 7, 2018 12:39 — forked from tuannvm/cka.md
#Helm #Kubernetes #cheatsheet, happy helming!
@bikranz4u
bikranz4u / getting-started-with-hashicorp-vault-in-simple-steps.md
Created October 24, 2017 09:19 — forked from makash/getting-started-with-hashicorp-vault-in-simple-steps.md
A gentle introduction to getting Hashicorp Vault up and running.

Install Vault

Download Vault

wget https://releases.hashicorp.com/vault/0.8.3/vault_0.8.3_linux_amd64.zip

Install unzip package and unzip the package

apt install unzip
unzip vault_0.8.3_linux_amd64.zip

Move vault to path