This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
# vim: syntax=yaml | |
# | |
# The current version of cloud-init in the Hypriot rpi-64 is 0.7.9 | |
# When dealing with cloud-init, it is SUPER important to know the version | |
# I have wasted many hours creating servers to find out the module I was trying to use wasn't in the cloud-init version I had | |
# Documentation: http://cloudinit.readthedocs.io/en/0.7.9/index.html | |
# Set your hostname here, the manage_etc_hosts will update the hosts file entries as well |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Download all templates from branch | |
mkdir nonRootTest | |
cd nonRootTest | |
curl -sSL https://github.com/ericstoekl/faas-cli/archive/templateNonRoot.zip > tnr.zip | |
unzip tnr.zip 'faas-cli-templateNonRoot/template/*' -d . | |
mv faas-cli-templateNonRoot/template ./template | |
rm -r faas-cli-templateNonRoot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update | |
apt-get install -qy docker.io | |
apt-get update | |
apt-get install -y apt-transport-https | |
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" > /etc/apt/sources.list.d/kubernetes.list | |
apt-get update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Store this |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello folks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello folks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hello meetup |
OlderNewer