Skip to content

Instantly share code, notes, and snippets.

@asbubam
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asbubam/eac3a5736f456a0a07f9 to your computer and use it in GitHub Desktop.
Save asbubam/eac3a5736f456a0a07f9 to your computer and use it in GitHub Desktop.
boot2docker_with_iterm.scpt
-- from http://dev.documize.com/boot2docker-iterm/
tell application "iTerm"
set myterm to (make new terminal)
tell myterm
activate current session
launch session "Default Session"
tell the last session
write text "unset DYLD_LIBRARY_PATH ; unset LD_LIBRARY_PATH"
write text "mkdir -p ~/.boot2docker"
write text "if [ ! -f ~/.boot2docker/boot2docker.iso ]; then cp /usr/local/share/boot2docker/boot2docker.iso ~/.boot2docker/ ; fi"
write text "/usr/local/bin/boot2docker init && /usr/local/bin/boot2docker up && $(boot2docker shellinit) && docker version"
end tell
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment