From b81da2dad7bd279333a3d67bdb9d7072093833cf Mon Sep 17 00:00:00 2001 From: Keyvan Fatehi Date: Wed, 11 Dec 2013 18:16:33 -0800 Subject: [PATCH] Vagrantfile port forwarding usages documented. Added usage via envvar FORWARD_PORTS for custom port or list of comma-separated ports Docker-DCO-1.1-Signed-off-by: Keyvan Fatehi (github: keyvanfatehi) Upstream-commit: d8718e435dfab7052bfd04a1494b1ad34c33cc17 Component: engine --- components/engine/Vagrantfile | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/components/engine/Vagrantfile b/components/engine/Vagrantfile index f709031fdf..63fe652cc2 100644 --- a/components/engine/Vagrantfile +++ b/components/engine/Vagrantfile @@ -8,10 +8,19 @@ AWS_BOX_URI = ENV['BOX_URI'] || "https://github.com/mitchellh/vagrant-aws/raw/ma AWS_REGION = ENV['AWS_REGION'] || "us-east-1" AWS_AMI = ENV['AWS_AMI'] || "ami-69f5a900" AWS_INSTANCE_TYPE = ENV['AWS_INSTANCE_TYPE'] || 't1.micro' -FORWARD_DOCKER_PORTS = ENV['FORWARD_DOCKER_PORTS'] SSH_PRIVKEY_PATH = ENV['SSH_PRIVKEY_PATH'] PRIVATE_NETWORK = ENV['PRIVATE_NETWORK'] +# Boolean that forwards the Docker dynamic ports 49000-49900 +# See http://docs.docker.io/en/latest/use/port_redirection/ for more +# $ FORWARD_DOCKER_PORTS=1 vagrant [up|reload] +FORWARD_DOCKER_PORTS = ENV['FORWARD_DOCKER_PORTS'] + +# You may also provide a comma-separated list of ports +# for Vagrant to forward. For example: +# $ FORWARD_PORTS=8080,27017 vagrant [up|reload] +FORWARD_PORTS = ENV['FORWARD_PORTS'] + # A script to upgrade from the 12.04 kernel to the raring backport kernel (3.8) # and install docker. $script = <