Last active
August 29, 2015 14:06
-
-
Save hourback/1c3ee484fcd6b32369ed to your computer and use it in GitHub Desktop.
I run this when I start up boot2docker. (It's supposed to run automatically, but there must be a bug in boot2docker that keeps this from doing so.)
This file contains hidden or 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
#!/bin/bash | |
# Set up SSH keys for Github | |
source set-up-ssh.sh | |
ln -s /var/lib/boot2docker/.gitconfig ~/.gitconfig | |
docker start my-data | |
docker run --rm -v /usr/local/bin/docker:/docker -v /var/run/docker.sock:/docker.sock svendowideit/samba my-data |
This file contains hidden or 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
#!/bin/bash | |
export SSHAGENT=/usr/local/bin/ssh-agent | |
export SSHAGENTARGS="-s" | |
if [ -z "$SSH_AUTH_SOCK" -a -x "$SSHAGENT" ]; then | |
eval `$SSHAGENT $SSHAGENTARGS` | |
trap "kill $SSH_AGENT_PID" 0 | |
fi | |
ssh-add /var/lib/boot2docker/id_rsa | |
~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment