Created
October 21, 2016 00:15
-
-
Save doxxx/3f0266e14b603a94b7dade778da14c23 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env fish | |
dmenv manager | |
docker network create --driver overlay spark | |
docker service create --name spark-master \ | |
--env SPARK_MASTER_URL=spark://spark-master:7077 \ | |
--network spark \ | |
--constraint "node.role != manager" \ | |
$REGISTRY/spark \ | |
master | |
docker service create --name spark-workers \ | |
--env SPARK_MASTER_URL=spark://spark-master:7077 \ | |
--network spark \ | |
--constraint "node.role != manager" \ | |
--replicas 2 \ | |
$REGISTRY/spark \ | |
worker | |
docker service create --name proxy \ | |
--network spark \ | |
--constraint "node.role == manager" \ | |
--publish 80:80 \ | |
proxy:1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment