The mujoco-py and D4RL code repositories will need to be cloned before creating the docker container.
Cloning the D4RL repository:
git clone https://github.com/Farama-Foundation/D4RL.git
Cloning the mujoco-py repository, and switching to the modified 2.0.2.8 branch.
git clone https://github.com/avirupdas55/mujoco-py.git
cd mujoco-py
git switch v2.0.2.8-local_update
cd ..
To create the docker file run the included shell script:
bash docker_build.sh
If you wish to upload the container to dockerhub then uncomment the last three lines of the docker_build
script, and replace the username with your dockerhub username.
Scripts for running the included test.py file are given. These are for the example working docker container that has been created, at https://hub.docker.com/repository/docker/avirupdas55/diffrl/general.
On a system which has docker use:
bash example_docker_run_script.sh
On a system with singularity you will need to create the directory $HOME/.mujoco
(in your local home directory) and copy the mjkey.txt
file into this directory.
Then use the following script to run the example.:
bash example_singularity_run_script.sh
To run the original docker image use:
bash example_original_docker_run_script.sh