Skip to content

Instantly share code, notes, and snippets.

View ericstoekl's full-sized avatar

Eric Stoekl ericstoekl

  • Seattle, WA, USA
View GitHub Profile
#!/bin/sh
echo "Thanks for testing openfaas/faas PR 304 -- Prefer user supplied parameter for remove and deploy"
echo "Make sure that openfaas is deployed to localhost Docker Swarm before running this test"
# Build faas-cli
echo "Building the code in the openfaas repo"
./build.sh
echo "Installing faas-cli 0.6.13 (will prompt for password)"
@ericstoekl
ericstoekl / post-body.txt
Created June 22, 2018 02:37
A gist capturing 24 bytes
hello from docker meetup
@ericstoekl
ericstoekl / post-body.txt
Created June 22, 2018 00:10
A gist capturing 27 bytes
hello folks from the meetup
@ericstoekl
ericstoekl / post-body.txt
Created June 21, 2018 06:39
A gist capturing 12 bytes
hello meetup
@ericstoekl
ericstoekl / post-body.txt
Created June 21, 2018 04:22
A gist capturing 11 bytes
Hello folks
@ericstoekl
ericstoekl / post-body.txt
Created June 21, 2018 04:21
A gist capturing 11 bytes
Hello folks
@ericstoekl
ericstoekl / post-body.txt
Created June 21, 2018 03:37
A gist capturing 10 bytes
Store this
version=$(curl -s https://api.github.com/repos/openfaas/faas-cli/releases/latest | grep 'tag_name' | cut -d\" -f4)
echo $version
if [ ! "$version" ]; then
echo "Failed while attempting to install faas-cli. Please manually install:"
echo ""
echo "1. Open your web browser and go to https://github.com/openfaas/faas-cli/releases"
echo "2. Download the latest release for your platform. Call it 'faas-cli'."
echo "3. chmod +x ./faas-cli"
echo "4. mv ./faas-cli /usr/local/bin"
echo "5. ln -sf /usr/local/bin/faas-cli /usr/local/bin/faas"
@ericstoekl
ericstoekl / store.json
Last active April 27, 2018 03:54
private registry store.json
[
{
"icon": "https://pbs.twimg.com/profile_images/927538119901175814/4uhYwTyC_400x400.jpg",
"title": "Colorization",
"description": "Turn black and white photos to color using a URL as the request. The colorization function was popularised by @colorisebot by Alex Ellis and Finnian Anderson.",
"image": "localhost:5000/openfaas-colorization:0.4.0",
"name": "colorise",
"fprocess": "python -u index.py",
"network": "func_functions",
"repo_url": "https://github.com/alexellis/repaint-the-past",
@ericstoekl
ericstoekl / gist:4221cf5605c6f7fb1370f0c52fce6b31
Last active June 20, 2018 03:33
OpenFaaS Helm deployment from Repository on GKE
# Make sure you have your ~/.kube/config set up to point to the cluster you want.
kubectl create clusterrolebinding "cluster-admin-$(whoami)" \
--clusterrole=cluster-admin \
--user="$(gcloud config get-value core/account)"
helm repo add openfaas https://s3-us-west-2.amazonaws.com/openfaas-repo
helm search openfaas # Confirm that openfaas/openfaas exists
helm init
kubectl get all -n kube-system # Make sure that Tiller is at 1/1 status