Sign inSign up

dockhero/swarm-queen

By dockhero

Updated almost 9 years ago

Quick Docker Swarm bootstrap, management and telemetry using deepstreamhub.com

Image
0

276

dockhero/swarm-queen repository overview

SWARM QUEEN

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

Bootstrapping a new Swarm cluster

  1. 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

  2. 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
  1. Use 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

Tag summary

Content type

Image

Digest

Size

23.2 MB

Last updated

almost 9 years ago

docker pull dockhero/swarm-queen