Provider | RAM | Cores | Storage | Transfer |
---|---|---|---|---|
LightSail | 512MB | 1 | 20GB SSD | 1TB |
DO | 512MB | 1 | 20GB SSD | 1TB |
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
[ | |
{ | |
"_id": "58bc24b6dc064fda8ce841ef", | |
"index": 0, | |
"guid": "6dd91d19-108b-4da3-adaf-927b36b666d1", | |
"isActive": false, | |
"balance": "$2,519.80", | |
"picture": "http://placehold.it/32x32", | |
"age": 40, | |
"eyeColor": "brown", |
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
# -------------------------------------------------------------- | |
# script to create a new Docker Swarm from scratch on VirtualBox | |
# -------------------------------------------------------------- | |
#!/usr/bin/bash | |
NUM_NODES=5 | |
LEADER_NODE=node-1 | |
# clean up | |
for NODE in $(seq 1 $NUM_NODES); do |
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
# -------------------------------------------------------------- | |
# script to create a new Docker Swarm from scratch on VirtualBox | |
# -------------------------------------------------------------- | |
#!/usr/bin/bash | |
NUM_NODES=5 | |
LEADER_NODE=node-1 | |
# clean up | |
for NODE in $(seq 1 $NUM_NODES); do |
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 | |
# vars | |
[ -z "$NUM_WORKERS" ] && NUM_WORKERS=3 | |
# init swarm (need for service command); if not created | |
docker node ls 2> /dev/null | grep "Leader" | |
if [ $? -ne 0 ]; then | |
docker swarm init > /dev/null 2>&1 | |
fi |
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
git clone https://github.com/vfarcic/go-demo.git | |
cd go-demo | |
docker-machine create -d virtualbox go-demo | |
docker-machine env go-demo | |
eval $(docker-machine env go-demo) |
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 | |
set -euo pipefail | |
function useDockerEnv { | |
eval "$(docker-machine env $1)" | |
} | |
function getIfaceIP { | |
local machine="$1" |
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
2 - Autos & Vehicles | |
1 - Film & Animation | |
10 - Music | |
15 - Pets & Animals | |
17 - Sports | |
18 - Short Movies | |
19 - Travel & Events | |
20 - Gaming | |
21 - Videoblogging | |
22 - People & Blogs |