kuryr/contrib/vagrant/vagrant.sh
Kyle Mestery 849f32ee12 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 <mestery@mestery.com>
2016-04-19 08:35:23 -05:00

11 lines
224 B
Bash
Executable File

#!/bin/sh
export OS_USER=vagrant
export OS_HOST_IP=172.68.5.10
# run script
bash /vagrant/devstack.sh "$1"
#set environment variables for kuryr
su "$OS_USER" -c "echo 'source /vagrant/config/kuryr_rc' >> ~/.bash_profile"