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
alexellis / instructions.md
Last active Apr 16, 2019
openfaas-knative-build.yaml
View instructions.md

Create a password regcred:

apiVersion: v1
kind: Secret
metadata:
  name: regcred
  annotations:
    build.knative.dev/docker-0: https://index.docker.io/v1/
type: kubernetes.io/basic-auth
@alexellis
alexellis / build.md
Created Apr 9, 2019
Google Cloud Build with OpenFaaS functions
View build.md

Shrinkwrap / generate build context

git clone https://github.com/alexellis/openfaas-cloud-test
cd openfaas-cloud-test
faas-cli template store pull node8-express
faas-cli build --shrinkwrap

Build with Docker

@alexellis
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:"gcr.io/kaniko-project/executor:debug", ttyEnabled: true, command: "/busybox/cat")
]) {
node(label) {
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://github.com/alexellis/openfaas-cloud-test']]])
@alexellis
alexellis / openshift_footloose.md
Last active Mar 27, 2019
Footloose with OpenShift (WIP)
View openshift_footloose.md

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

View MONITORS.md

Want

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

BenQ PD2700U 4K HDR Monitor

@alexellis
alexellis / README.md
Last active Mar 17, 2019
Mobilenet with OpenFaaS
View README.md

Deploy:

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

Replace 192.168.0.35 with the IP of your OpenFaaS server.

Replace postman.jpeg with your chosen image.

@alexellis
alexellis / bulk-invite-to-slack.sh
Last active Jan 10, 2019
Bulk invite email addresses to Slack
View bulk-invite-to-slack.sh
#!/bin/bash
# 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
alexellis / CUSTOMERS
Last active Dec 20, 2018
OpenFaaS Cloud on GitLab
View CUSTOMERS
alex
alexellis
martindekov
ewilde
k33g
@alexellis
alexellis / RPI_UBUNTU.md
Last active Jan 18, 2019
Ubuntu 18.04 for RPi3 (64-bit)
View RPI_UBUNTU.md
  • Download via http://cdimage.ubuntu.com/releases/18.04/beta/
  • wget http://cdimage.ubuntu.com/releases/18.04/beta/ubuntu-18.04-beta-preinstalled-server-arm64+raspi3.img.xz
  • 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
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 192.168.65.3:2377
To add a manager to this swarm, run 'docker swarm join-token manager' and follow the instructions.
alexr:faas alex$ git clone https://github.com/openfaas/faas && \
You can’t perform that action at this time.