Created
November 6, 2018 03:27
-
-
Save armandgrillet/f7bda9ca1c83a2e75c5f75654c8a1293 to your computer and use it in GitHub Desktop.
MesosCon 2018 - Using and extending the Mesos CLI : Demo 1
This file contains 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
# Write a script: | |
echo "echo Hello World" > hello-world.sh | |
# Upload the script to your task's container: | |
$ cat hello-world.sh | mesos task exec -i exec-test bash -c "cat > hello-world.sh" | |
# Give the fiel executable permissions: | |
$ mesos task exec exec-test chmod a+x hello-world.sh | |
# Execute the script inside the container: | |
$ mesos task exec exec-test ./hello-world.sh | |
# See what's happening in the task: | |
$ mesos task exec -it exec-test bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment