Last active
September 21, 2016 17:21
-
-
Save hughdbrown/52256f6b6c0062bfe41d80d6005cab59 to your computer and use it in GitHub Desktop.
Shell script to run docker image for O'Reilly Kafka-Cassandra-Spark course
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 bash -e | |
export image_version="2.0.1" | |
export image_name="datafellas/distributed-pipeline-quotes:${image_version}" | |
sudo docker pull ${image_name} | |
sudo docker run --rm -it \ | |
--memory=8g \ | |
--cpuset-cpus="0-3" \ | |
--publish=9000:9000 \ | |
--publish=14040:4040 \ | |
--publish=14041:14041 \ | |
--publish=14042:4042 \ | |
--publish=14043:14043 \ | |
${image_name} bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment