Last active
August 29, 2015 14:27
-
-
Save aeppert/827c93a04397d29505f6 to your computer and use it in GitHub Desktop.
Start CIFv2 in Docker with boot2docker on OS X
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
#!/bin/sh | |
# | |
# Aaron Eppert (aeppert@gamil.com) | |
# | |
# Wrapper script for starting the cifv2 Docker image via boot2docker | |
# | |
# NOTE: This assumes "boot2docker start" was run previously. | |
# | |
VBoxManage controlvm "boot2docker-vm" natpf1 "cifv2_forward_5000,tcp,,5000,,5000" | |
VBoxManage controlvm "boot2docker-vm" natpf1 "cifv2_forward_443,tcp,,8443,,443" | |
VBoxManage controlvm "boot2docker-vm" natpf1 "cifv2_forward_9200,tcp,,9200,,9200" | |
docker run -d -p 8443:443 -p 5000:5000 -p 9200:9200 aeppert/cifv2 | |
VBoxManage controlvm "boot2docker-vm" natpf1 delete "cifv2_forward_5000" | |
VBoxManage controlvm "boot2docker-vm" natpf1 delete "cifv2_forward_443" | |
VBoxManage controlvm "boot2docker-vm" natpf1 delete "cifv2_forward_9200" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment