Quick Docker Swarm bootstrap, management and telemetry using deepstreamhub.com
276
Swarm Queen is a CLI tool to bring up a SWARM cluster in AWS quickly.
Launching a cluster of CoreOS machines with Swarm Queen systemd service happens via terraform - see example folder
Start machines via Terraform. You will be asked for a DEEPSTREAM_URL.
Sign up for https://deepstreamhub.com/, create an app and copy the URL from it's dashboard.
The URL looks like wss://013.deepstreamhub.com?apiKey=xxxx-xxxx-xxxx-xxxx
Create a shell script swarm-queen.sh which calls our docker image:
#/bin/bash
docker run -it --rm -e "DEEPSTREAM_URL=<YOUR APP URL>" dockhero/swarm-queen $@
Give it executable permissions:
chmod 755 swarm-queen.sh
swarm-queen.sh to join machines into swarm:swarm-queen.sh wait # waits for at least one AWS machine to boot
swarm-queen.sh bootstrap # makes docker swarm init in AWS
swarm-queen.sh node ls # to make sure all nodes joined the swarm
echo "some-password" | swarm-queen.sh secret create SECRET_NAME # to create a secret in the SWARM
swarm-queen.sh service create ..... # to run something in the swarm
Content type
Image
Digest
Size
23.2 MB
Last updated
almost 9 years ago
docker pull dockhero/swarm-queen