From 849f32ee12c009bef7ac469f14251247ac8fed48 Mon Sep 17 00:00:00 2001 From: Kyle Mestery Date: Tue, 19 Apr 2016 08:35:23 -0500 Subject: [PATCH] Vagrant: Allow running the "docker" command as the vagrant user This adds the setting of DOCKER_HOST into the kuryr_rc file, and moves the sourcing of said file into .bash_profile upon user login. With this change, you can now login to the Vagrant VM and run docker commands as the vagrant user. Change-Id: If9b27b63b1dd017471714e18e70c2bf2138e65db Signed-off-by: Kyle Mestery --- contrib/vagrant/config/kuryr_rc | 1 + contrib/vagrant/vagrant.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/vagrant/config/kuryr_rc b/contrib/vagrant/config/kuryr_rc index c31570a4..507f294c 100644 --- a/contrib/vagrant/config/kuryr_rc +++ b/contrib/vagrant/config/kuryr_rc @@ -3,3 +3,4 @@ export SERVICE_PASSWORD=pass export SERVICE_TENANT_NAME=admin export SERVICE_TOKEN=pass export IDENTITY_URL=http://127.0.0.1:5000/v2.0 +export DOCKER_HOST="tcp://0.0.0.0:2375" diff --git a/contrib/vagrant/vagrant.sh b/contrib/vagrant/vagrant.sh index f56aaa2c..3da949a2 100755 --- a/contrib/vagrant/vagrant.sh +++ b/contrib/vagrant/vagrant.sh @@ -7,4 +7,4 @@ export OS_HOST_IP=172.68.5.10 bash /vagrant/devstack.sh "$1" #set environment variables for kuryr -su "$OS_USER" -c "echo 'source /vagrant/config/kuryr_rc' >> ~/.bashrc" +su "$OS_USER" -c "echo 'source /vagrant/config/kuryr_rc' >> ~/.bash_profile"