Created
October 10, 2014 10:53
-
-
Save doitian/24b12280598615e11f6f to your computer and use it in GitHub Desktop.
Tmuxinator config for boot2docker
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
# ~/.tmuxinator/docker.yml | |
name: docker | |
root: ~/testbed/docker | |
windows: | |
- shell: | | |
unset DYLD_LIBRARY_PATH; \ | |
unset LD_LIBRARY_PATH; \ | |
tmux set-environment -u DYLD_LIBRARY_PATH; \ | |
tmux set-environment -u LD_LIBRARY_PATH; \ | |
mkdir -p ~/.boot2docker; \ | |
if [ ! -f ~/.boot2docker/boot2docker.iso ]; then; \ | |
cp /usr/local/share/boot2docker/boot2docker.iso ~/.boot2docker/; \ | |
fi; \ | |
/usr/local/bin/boot2docker init; \ | |
/usr/local/bin/boot2docker up && export DOCKER_HOST=tcp://$(/usr/local/bin/boot2docker ip 2>/dev/null):2375; \ | |
tmux set-environment DOCKER_HOST "$DOCKER_HOST"; \ | |
docker version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment