I hereby claim:
- I am yogeek on github.
- I am gdupin (https://keybase.io/gdupin) on keybase.
- I have a public key ASB5RR7tIj8fxmMPDwVd56_cfkOQXW-wtA1rXVWNTxhNXgo
To claim this, I am signing this object:
| # Retry a command up to a specific numer of times until it exits successfully, | |
| # with exponential back off. | |
| # | |
| # $ retry 5 echo Hello | |
| # Hello | |
| # | |
| # $ retry 5 false | |
| # Retry 1/5 exited 1, retrying in 1 seconds... | |
| # Retry 2/5 exited 1, retrying in 2 seconds... | |
| # Retry 3/5 exited 1, retrying in 4 seconds... |
| from jenkins/jenkins:2.143 | |
| COPY plugins.txt /usr/share/jenkins/ref/plugins.txt | |
| RUN /usr/local/bin/install-plugins.sh < /usr/share/jenkins/ref/plugins.txt |
| server { | |
| listen 80; | |
| server_name _; | |
| location / { | |
| root /usr/share/nginx/html; | |
| index index.html index.htm; | |
| } | |
| location ~ /meteofrance/ { |
| function kubespy_install() { | |
| KUBESPY_VERSION=${1:-v0.4.0} | |
| curl -sSL https://github.com/pulumi/kubespy/releases/download/${KUBESPY_VERSION}/kubespy-linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local/bin/ --strip-components=2 releases/kubespy-linux-amd64/kubespy && sudo chmod +x /usr/local/bin/kubespy && kubespy version | |
| } |
| function github-conf() { | |
| # Are we in a GIT repo ? | |
| git rev-parse --is-inside-work-tree > /dev/null 2>&1 | |
| if [[ "$?" != "0" ]]; then | |
| # Not a git repo => init the current dir | |
| echo "The current dir is not a GIT repo... Let's init it !" | |
| REPO_NAME=$(basename "$PWD") | |
| GITHUB_REPO="https://github.com/yogeek/${REPO_NAME}.git" | |
| git init |
I hereby claim:
To claim this, I am signing this object:
| # Personnal aliases | |
| # | |
| ###### | |
| # Go | |
| ###### | |
| export GOPATH=$HOME/go | |
| export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin | |
| #################### |
| # kube-ps1 | |
| export KUBE_PS1_SYMBOL_USE_IMG=true | |
| #--------------------------------------------------------- | |
| # Aliases | |
| #--------------------------------------------------------- | |
| alias k='kubectl' | |
| alias kc='kubectx' | |
| alias kn='kubens' | |
| alias kgp='kubectl get po' |
| rbac: | |
| create: true | |
| prometheus: | |
| url: http://linkerd-prometheus.linkerd.svc.cluster.local | |
| port: 9090 | |
| rules: | |
| default: false | |
| custom: | |
| - seriesQuery: 'response_latency_ms_bucket{namespace!="",pod!=""}' | |
| resources: |
| # Clear all journactl logs | |
| journalctl --rotate | |
| journalctl --vacuum-time=1s | |
| # Clear only archived logs | |
| journalctl --vacuum-time=2d | |
| journalctl --vacuum-size=50M |