Skip to content

weaveworks-experiments/scope-swarm-launcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scope-swarm-launcher

Docker Hub

Weave Cloud Scope launcher is a one-shot service that will provision all Docker Swarm nodes with a Scope container. Because Swarm services don't support privileged mode, the launcher service will run the Scope installer script and will exit.

Service create command:

docker service create --name scope-launcher --mode global --detach \
    --restart-condition none \
    --mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \
    weaveworks/scope-swarm-launcher \
    scope launch --service-token=<WEAVE-CLOUD-TOKEN>

Stack definition:

version: "3.3"

services:
  scope-launcher:
    image: weaveworks/scope-swarm-launcher
    command: scope launch --service-token=${TOKEN}
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    deploy:
      mode: global
        restart_policy:
          condition: none

Stack deploy:

TOKEN=<WEAVE-CLOUD-TOKEN> docker stack deploy -c scope-swarm-launcher.yml weave

Releases

No releases published

Packages

No packages published