Created
July 16, 2017 01:34
-
-
Save machinaut/f5cf076b33752334a5618ed906baf23a to your computer and use it in GitHub Desktop.
mujoco-py in fedora
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
FROM fedora:26 | |
RUN mkdir -p ~/.mujoco | |
RUN yum install -y make gcc-c++ mesa-libGL-devel mesa-libOSMesa-devel glfw redhat-rpm-config patchelf | |
RUN dnf install -y python35 | |
WORKDIR /root | |
RUN python3.5 -m venv env | |
RUN /bin/bash -c "source env/bin/activate && pip install numpy cython pillow" | |
# RUN /bin/bash -c "source env/bin/activate && pip install mujoco-py" |
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
.PHONY: all build shell | |
all: build | |
build: Dockerfile | |
docker build -t mj-fedora . | |
shell: build | |
docker run --rm -it -v${PWD}/.mujoco:/root/.mujoco -v${PWD}/mujoco-py:/mujoco-py mj-fedora bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment