Skip to content

Instantly share code, notes, and snippets.

@pasikon
Last active September 18, 2017 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pasikon/ff8f68a094282b3f35013afcb99b5ef9 to your computer and use it in GitHub Desktop.
Save pasikon/ff8f68a094282b3f35013afcb99b5ef9 to your computer and use it in GitHub Desktop.
docker ps -a --no-trunc
docker network create --subnet=172.10.100.0/16 rewardsnet
docker create --net rewardsnet -p 9042:9042 -h cass --name cass -i -t 154b919bf8ce
docker create --net rewardsnet -p 8081:8081 -h sm1 --name sm1 -i -t 7bc6b2d4c465
docker create --net rewardsnet -p 8082:8081 -h sm2 --name sm2 -i -t 7bc6b2d4c465
detach: ctrl-p ctrl-q
spark sandbox:
docker build -t spark-test:latest .
docker create --net rewardsnet -p 8089:8080 -h spark-test-m --name spark-test-m -i -t spark-test:latest
docker create --net rewardsnet -h sp-s2 --name sp-s2 -i -t spark-test:latest
and then on slaves:
./start-slave.sh -m 2G spark://spark-test-m:7077
init:
https://github.com/Yelp/dumb-init
https://github.com/krallin/tini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment