Skip to content

Instantly share code, notes, and snippets.

Away at KubeCon

Alex Ellis alexellis

Block or report user

Report or block alexellis

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
alexellis /
Last active Apr 16, 2019

Create a password regcred:

apiVersion: v1
kind: Secret
  name: regcred
alexellis /
Created Apr 9, 2019
Google Cloud Build with OpenFaaS functions

Shrinkwrap / generate build context

git clone
cd openfaas-cloud-test
faas-cli template store pull node8-express
faas-cli build --shrinkwrap

Build with Docker

alexellis / kaniko_jenkins.groovy
Last active Mar 28, 2019
OpenFaaS Kaniko Jenkins Pipelines Gist
View kaniko_jenkins.groovy
// this guarantees the node will use this template
def label = "mypod-${UUID.randomUUID().toString()}"
podTemplate(label: label,
containers: [
containerTemplate(privileged: false, name: 'faascli', image: 'openfaas/faas-cli:0.8.6', ttyEnabled: true, command: 'cat'),
containerTemplate(name: "kaniko", image:"", ttyEnabled: true, command: "/busybox/cat")
]) {
node(label) {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: '']]])
alexellis /
Last active Mar 27, 2019
Footloose with OpenShift (WIP)

Tutorial Install OpenShift with Weave footloose(WIP)

Footloose is a tool built by Weaveworks which builds and runs a container with systemd installed. It can be created in a similar way to a VM but without the overheads.

In this tutorial we will install OpenShift Origin 3 into a CentosOS image for local test and development with OpenShift.

An alternative distribution for testing is Minishift which also allows you to run OpenShift locally, but in a VM.

Install Footloose



  • 4k
  • 32" or 27"
  • Height-adjustable
  • USB-hub
  • 5ms or < response time
  • USB-C nice to have

BenQ PD2700U 4K HDR Monitor

alexellis /
Last active Mar 17, 2019
Mobilenet with OpenFaaS


faas-cli deploy --image salekd/faas-mobilenet --name mobilenet --fprocess="python"

Replace with the IP of your OpenFaaS server.

Replace postman.jpeg with your chosen image.

alexellis /
Last active Jan 10, 2019
Bulk invite email addresses to Slack
# Copyright Alex Ellis 2019
# Generate legacy token, then populate here
export TOKEN=""
# You will need to put each email address on a new line in a file named users.txt
alexellis / CUSTOMERS
Last active Dec 20, 2018
OpenFaaS Cloud on GitLab
alexellis /
Last active Jan 18, 2019
Ubuntu 18.04 for RPi3 (64-bit)
  • Download via
  • wget
  • Run unxz ubuntu-18.04-beta-preinstalled-server-arm64+raspi3.img.xz
  • Identify flash drive with lsblk
  • Flash with Etcher / dd
2255+1 records in
2255+1 records out
2364544000 bytes (2.4 GB, 2.2 GiB) copied, 111.076 s, 21.3 MB/s
alexellis / LOG.txt
Created Dec 2, 2018
Deploy on Swarm / Docker for Mac
View LOG.txt
alexr:faas alex$ docker swarm init
Swarm initialized: current node (64dzd5vqwfxumbhq38s8kqioc) is now a manager.
To add a worker to this swarm, run the following command:
docker swarm join --token SWMTKN-1-2iyl4qp1r2h9g0hitgfowonyo3sh5e762nc4vsus4mefy2xzq7-2rdd4d151hhhjyzew4oxvndvd
To add a manager to this swarm, run 'docker swarm join-token manager' and follow the instructions.
alexr:faas alex$ git clone && \
You can’t perform that action at this time.