I hereby claim:
- I am zeerorg on github.
- I am zeerorg (https://keybase.io/zeerorg) on keybase.
- I have a public key ASCi8XtY3QXAT5WDUnZaiwl1SmxDPkZQQo2D07IwwyJU7Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/python3 | |
import json | |
import urllib.request | |
authkey = '' | |
email = '' | |
zone_id = '' | |
dns_id = '' | |
my_ip = urllib.request.urlopen('https://api.ipify.org').read().decode('utf-8') |
zeerorg | |
alexellis | |
openfaas |
private-key.pem
file to arm device.# Script to deploy openfaas in local kubernetes cluster | |
# Step 1 install helm and tiller | |
curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash | |
kubectl -n kube-system create sa tiller \ | |
&& kubectl create clusterrolebinding tiller \ | |
--clusterrole cluster-admin \ | |
--serviceaccount=kube-system:tiller | |
# Deploy openfaas with k3d | |
command -v helm > /dev/null | |
if [ $? == "1" ]; | |
then | |
curl -s https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash | |
fi | |
command -v k3d > /dev/null | |
if [ $? == "1" ]; |
Runs on Root user hence cannot be invoked from arbitrary --user
flag.
Error: docker: Error response from daemon: OCI runtime create failed: container_linux.go:344: starting container process caused "chdir to cwd (\"/root\") set in config.json failed: permission denied": unknown
The same error occurs in python-flask template link
container_name="local-redis" | |
if [ "$( docker container inspect -f '{{.State.Status}}' $container_name )" = "running" ]; then | |
docker stop $container_name | |
fi | |
if docker ps -a --format '{{.Names}}' | grep -q "^$container_name$"; then | |
docker rm $container_name | |
fi |