Contributions around g5k notebook
- Have an account on Grid'5000
- SSH keys configured to connect to
- A SSH-agent running on you host machine
Use the docker image
docker run --rm -it\ -p 8888:8888 \ -v /Users/msimonin/.restfully:/.restfully:ro \ -v $SSH_AUTH_SOCK:/ssh-agent \ -e SSH_AUTH_SOCK=/ssh-agent \ -e RESTFULLY_CONFIG="/.restfully/api.grid5000.fr.yml" \ -e USER=msimonin \ msimonin/g5k-notebook iruby notebook
-p 8888:8888forward port 8888 of your container to port 8888 on your host machine. That's let you connect to the notebook using
-v /Users/msimonin/.restfully:/.restfully:romount the host configuration of restfully inside the container under
/restfully. Minimal configuration is :
echo ' uri: https://api.grid5000.fr/stable/grid5000 username: MYLOGIN password: MYPASSWORD ' > ~/.restfully/api.grid5000.fr.yml && chmod 600 ~/.restfully/api.grid5000.fr.yml
Don't forget to adapt your path to restfully folder.
-e SSH_AUTH_SOCK=/ssh-agentwill allow the SSH client in your container to use the SSH agent of your host machine.
restfullyto use the previously mounted file as base configuration.
Don't forget to adapt the name of the sepectific grid5000 restfully file.
-e USER=msimoninsets the USER variable (used by
xp5k) for ssh connection to Grid'5000.
Don't forget to set your Grid'5000 username.
On Mac OS using
On your Mac, run first
docker-machine ssh default -A -L 8888:localhost:8888
It will forward the agent to the VM and forward port from your Mac to the VM.
Inside the VM, run the
docker command described above.