Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions examples/libero/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ RUN apt-get update && \
clang \
libosmesa6-dev \
libgl1-mesa-glx \
libegl1 \
libglew-dev \
libglfw3-dev \
libgles2-mesa-dev \
Expand Down Expand Up @@ -56,4 +57,6 @@ datasets: /app/third_party/libero/libero/datasets
assets: /app/third_party/libero/libero/libero/assets
EOF

RUN mkdir -p /usr/share/glvnd/egl_vendor.d && echo '{"file_format_version" : "1.0.0", "ICD" : { "library_path" : "libEGL_nvidia.so.0" }}' > /usr/share/glvnd/egl_vendor.d/10_nvidia.json

CMD ["/bin/bash", "-c", "source /.venv/bin/activate && python examples/libero/main.py $CLIENT_ARGS"]
6 changes: 3 additions & 3 deletions examples/libero/compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ services:
init: true
tty: true
network_mode: host
privileged: true
volumes:
- $PWD:/app
- ../../data:/data
- /tmp/.X11-unix:/tmp/.X11-unix:ro
environment:
- CLIENT_ARGS
- DISPLAY=$DISPLAY
- MUJOCO_GL=${MUJOCO_GL:-egl}
- MUJOCO_EGL_DEVICE_ID=0
- NVIDIA_DRIVER_CAPABILITIES=all
- PYOPENGL_PLATFORM=egl
deploy:
resources:
reservations:
Expand Down