Last active
June 12, 2017 13:28
-
-
Save alexellis/3ff8e25772781cce11ec2c2eea5254cc to your computer and use it in GitHub Desktop.
CloudInit for FaaS
This file contains hidden or 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 | |
curl -sSL get.docker.com | sh | |
systemctl start docker | |
site=$(curl -s https://api.ipify.org/?format=text); echo $site; docker swarm init --advertise-addr=$site | |
cd /root/ | |
git clone https://github.com/alexellis/faas | |
cd faas | |
# For proxies that can only access port 80 uncomment this line: | |
# sed -ie '0,/8080/s//80/' docker-compose.yml | |
./deploy_stack.sh |
This file contains hidden or 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 | |
curl -sSL get.docker.com | sh | |
systemctl start docker | |
site=$(curl -s https://api.ipify.org/?format=text); echo $site; docker swarm join --token SWMTKN-1-4bfitde12ypcty8mbptsxf6vp8x46a3ctxl4ao2ukkyfl9wxll-dug96dprah89uk7o797do6lrr 147.75.205.7:2377 --advertise-addr=$site |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment