(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
#!/usr/bin/env python | |
# stolen from http://stackoverflow.com/questions/27590039/running-ansible-playbook-using-python-api | |
import os | |
import sys | |
from collections import namedtuple | |
from ansible.parsing.dataloader import DataLoader | |
from ansible.vars import VariableManager | |
from ansible.inventory import Inventory |
I need a way to get a list of plugins so that I can use them with docker jenkins
in the format <plugin>: <version>
The jenkins CLI will allow us to interact with our jenkins server from the command line. We can get it with a simple curl call.
curl 'localhost:8080/jnlpJars/jenkins-cli.jar' > jenkins-cli.jar
pipeline { | |
agent any | |
stages { | |
stage('Build') { | |
steps { | |
echo 'Hello from Build' | |
} | |
} | |
stage('Test') { | |
steps { |
# My tmux configuration, partly based on https://github.com/wbkang/wbk-stow/blob/master/tmux-config/.tmux.conf | |
# Scroll History | |
set -g history-limit 50000 | |
# show messages for 4 seconds instead | |
set -g display-time 4000 | |
# set first window to index 1 (not 0) to map more to the keyboard layout | |
set-option -g renumber-windows on |
FROM buildpack-deps:stretch-scm | |
# gcc for cgo | |
RUN apt-get update && apt-get install -y --no-install-recommends \ | |
g++ \ | |
gcc \ | |
libc6-dev \ | |
make \ | |
pkg-config \ | |
&& rm -rf /var/lib/apt/lists/* |
The buildah
utility is a versitile container build tool that does not require a daemon (everything is direct invocation).
See my "deep dive" for a few hands on use-cases.
Recently knative was announced. It is a project to enable the kubernetes primitives needed to build a functions-as-a-service. There are a plumbing services needed around this use-case, "build" is one of them. Building containers is largely an indepenent goal and story of "serverless" or "FaaS", but I get why they are grouped together.
set -ex | |
v=${1} | |
[[ -z ${v} ]] && { | |
echo "You need a release number i.e: 0.3.1" | |
} | |
for p in bash controller creds-init entrypoint git-init kubeconfigwriter nop webhook;do | |
docker pull registry.svc.ci.openshift.org/openshift/knative:tektoncd-pipeline-${p} | |
docker tag registry.svc.ci.openshift.org/openshift/knative:tektoncd-pipeline-${p} quay.io/openshift-pipeline/tektoncd-pipeline-$p:v${v} |