Skip to content

Commit 9b7280c

Browse files
committed
Add Isaac Sim 5.0 pip install
1 parent aabba9e commit 9b7280c

File tree

3 files changed

+97
-0
lines changed

3 files changed

+97
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Ref: https://docs.docker.com/build/ci/github-actions/
2+
name: Build Docker Image for Isaac Sim 5.0 (pip)
3+
4+
on:
5+
push:
6+
branches:
7+
- "master"
8+
paths:
9+
- .github/workflows/build-isaacsim-5-0-pip.yaml
10+
- Dockerfile_isaacsim_5_0_pip
11+
12+
jobs:
13+
docker:
14+
runs-on: ubuntu-latest
15+
steps:
16+
-
17+
name: Checkout
18+
uses: actions/checkout@v4
19+
-
20+
name: Login to Docker Hub
21+
uses: docker/login-action@v3
22+
with:
23+
username: ${{ secrets.DOCKERHUB_USERNAME }}
24+
password: ${{ secrets.DOCKERHUB_TOKEN }}
25+
-
26+
name: Build and push
27+
uses: docker/build-push-action@v6
28+
with:
29+
context: .
30+
file: ./Dockerfile_isaacsim_5_0_pip
31+
push: true
32+
tags: ${{ secrets.DOCKERHUB_USERNAME }}/isaac-sim-pip:5.0

Dockerfile_isaacsim_5_0_pip

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
FROM python:3.11
2+
3+
# Ref: https://github.com/j3soon/docker-vulkan-runtime
4+
ENV NVIDIA_VISIBLE_DEVICES=all
5+
ENV NVIDIA_DRIVER_CAPABILITIES=all
6+
RUN apt-get update && apt-get install -y \
7+
libgl1 vulkan-tools \
8+
&& rm -rf /var/lib/apt/lists/*
9+
RUN cat > /etc/vulkan/icd.d/nvidia_icd.json <<EOF
10+
{
11+
"file_format_version" : "1.0.0",
12+
"ICD": {
13+
"library_path": "libGLX_nvidia.so.0",
14+
"api_version" : "1.3.194"
15+
}
16+
}
17+
EOF
18+
RUN mkdir -p /usr/share/glvnd/egl_vendor.d && \
19+
cat > /usr/share/glvnd/egl_vendor.d/10_nvidia.json <<EOF
20+
{
21+
"file_format_version" : "1.0.0",
22+
"ICD" : {
23+
"library_path" : "libEGL_nvidia.so.0"
24+
}
25+
}
26+
EOF
27+
RUN cat > /etc/vulkan/implicit_layer.d/nvidia_layers.json <<EOF
28+
{
29+
"file_format_version" : "1.0.0",
30+
"layer": {
31+
"name": "VK_LAYER_NV_optimus",
32+
"type": "INSTANCE",
33+
"library_path": "libGLX_nvidia.so.0",
34+
"api_version" : "1.3.194",
35+
"implementation_version" : "1",
36+
"description" : "NVIDIA Optimus layer",
37+
"functions": {
38+
"vkGetInstanceProcAddr": "vk_optimusGetInstanceProcAddr",
39+
"vkGetDeviceProcAddr": "vk_optimusGetDeviceProcAddr"
40+
},
41+
"enable_environment": {
42+
"__NV_PRIME_RENDER_OFFLOAD": "1"
43+
},
44+
"disable_environment": {
45+
"DISABLE_LAYER_NV_OPTIMUS_1": ""
46+
}
47+
}
48+
}
49+
EOF
50+
51+
# Install `libglu1-mesa` for Iray and `libxrandr2` to support Isaac Sim WebRTC streaming
52+
RUN apt-get update && apt-get install -y \
53+
libglu1-mesa libxrandr2 \
54+
&& rm -rf /var/lib/apt/lists/*
55+
# Ref: https://docs.isaacsim.omniverse.nvidia.com/latest/installation/install_python.html
56+
RUN pip install isaacsim[all,extscache]==5.0.0 --extra-index-url https://pypi.nvidia.com
57+
58+
# Following Isaac Sim's warning message
59+
ENV OMNI_KIT_ALLOW_ROOT=1
60+
61+
# Reset entrypoint and command
62+
ENTRYPOINT []
63+
CMD ["/bin/bash"]

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,13 @@ Build or pull image:
102102

103103
```sh
104104
# build the preferred version
105+
docker build -f Dockerfile_isaacsim_5_0_pip -t j3soon/isaac-sim-pip:5.0 .
105106
docker build -f Dockerfile_isaacsim_4_5_pip -t j3soon/isaac-sim-pip:4.5 .
106107
docker build -f Dockerfile_isaacsim_4_2_pip -t j3soon/isaac-sim-pip:4.2 .
107108
docker build -f Dockerfile_isaacsim_4_1_pip -t j3soon/isaac-sim-pip:4.1 .
108109
docker build -f Dockerfile_isaacsim_4_0_pip -t j3soon/isaac-sim-pip:4.0 .
109110
# or pull the preferred version
111+
docker pull j3soon/isaac-sim-pip:5.0
110112
docker pull j3soon/isaac-sim-pip:4.5
111113
docker pull j3soon/isaac-sim-pip:4.2
112114
docker pull j3soon/isaac-sim-pip:4.1

0 commit comments

Comments
 (0)