Skip to content

Instantly share code, notes, and snippets.

@goobta
Last active February 10, 2021 15:29
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 goobta/4e495cc4f34cfc6da018a2b65b01b675 to your computer and use it in GitHub Desktop.
Save goobta/4e495cc4f34cfc6da018a2b65b01b675 to your computer and use it in GitHub Desktop.
Solo8 Dev Stack

Solo 8 Dev Stack

If you want to work on gym_solo, or use any version of the repos that isn't master, you need to replace those repos in the docker container via a volume mount.

Assuming your filestructure is as follows and your docker image is named solo8:sb-gpu, you can just ./run.sh and it should start JupyterLab within the container.

Required filesystem:

project_root
    |- run.sh
    |- gym_solo
    |- learning_experiments
    |- any other files...

Note you can also overwrite the default command that runs the docker conatiner. Thus, if you want an interactive terminal, simply do ./run.sh bash.

#!/bin/bash
docker run -it --rm --gpus all -v $PWD:/sources -p 8888:8888 -p 6006:6006 solo8:sb-gpu "${@:1}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment