forked from NVIDIA-Omniverse/IsaacSim-dockerfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.2022.2.1-ubuntu20.04
121 lines (110 loc) · 4.28 KB
/
Dockerfile.2022.2.1-ubuntu20.04
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Reference:
# https://gitlab.com/nvidia/container-images/vulkan/-/blob/master/docker/Dockerfile.ubuntu
# https://github.com/NVIDIA-Omniverse/IsaacSim-dockerfiles
#
# Build the image:
# docker login nvcr.io
# docker build --pull -t \
# isaac-sim:2022.2.1-ubuntu20.04 \
# --build-arg ISAACSIM_VERSION=2022.2.1 \
# --build-arg BASE_DIST=ubuntu20.04 \
# --build-arg CUDA_VERSION=11.4.2 \
# --build-arg VULKAN_SDK_VERSION=1.3.224.1 \
# --file Dockerfile.2022.2.1-ubuntu20.04 .
#
# Run container:
# docker run --name isaac-sim --entrypoint bash -it --gpus all -e "ACCEPT_EULA=Y" --rm --network=host \
# -v ~/docker/isaac-sim/cache/kit:/isaac-sim/kit/cache/Kit:rw \
# -v ~/docker/isaac-sim/cache/ov:/root/.cache/ov:rw \
# -v ~/docker/isaac-sim/cache/pip:/root/.cache/pip:rw \
# -v ~/docker/isaac-sim/cache/glcache:/root/.cache/nvidia/GLCache:rw \
# -v ~/docker/isaac-sim/cache/computecache:/root/.nv/ComputeCache:rw \
# -v ~/docker/isaac-sim/logs:/root/.nvidia-omniverse/logs:rw \
# -v ~/docker/isaac-sim/data:/root/.local/share/ov/data:rw \
# -v ~/docker/isaac-sim/documents:/root/Documents:rw \
# isaac-sim:2022.2.1-ubuntu20.04 \
# ./runheadless.native.sh
#
# More info:
# https://developer.nvidia.com/isaac-sim
#
ARG DEBIAN_FRONTEND=noninteractive
ARG BASE_DIST=ubuntu20.04
ARG CUDA_VERSION=11.4.2
ARG ISAACSIM_VERSION=2022.2.1
# https://catalog.ngc.nvidia.com/orgs/nvidia/containers/isaac-sim
FROM nvcr.io/nvidia/isaac-sim:${ISAACSIM_VERSION} as isaac-sim
# https://catalog.ngc.nvidia.com/orgs/nvidia/containers/cudagl
FROM nvidia/cudagl:${CUDA_VERSION}-base-${BASE_DIST}
RUN apt-get update && apt-get install -y --no-install-recommends \
libatomic1 \
libegl1 \
libglu1-mesa \
libgomp1 \
libsm6 \
libxi6 \
libxrandr2 \
libxt6 \
libfreetype-dev \
libfontconfig1 \
openssl \
libssl1.1 \
wget \
vulkan-utils \
&& apt-get -y autoremove \
&& apt-get clean autoclean \
&& rm -rf /var/lib/apt/lists/*
ARG VULKAN_SDK_VERSION=1.3.224.1
# Add LunarG Vulkan repository and install Vulkan SDK
ARG DEBIAN_FRONTEND=noninteractive
RUN wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | apt-key add - && \
wget -qO /etc/apt/sources.list.d/lunarg-vulkan-${VULKAN_SDK_VERSION%.*}-focal.list \
https://packages.lunarg.com/vulkan/${VULKAN_SDK_VERSION%.*}/lunarg-vulkan-${VULKAN_SDK_VERSION%.*}-focal.list && \
apt update && \
apt install -y vulkan-sdk && \
apt-get -y autoremove && \
apt-get clean autoclean && \
rm -rf /var/lib/apt/lists/*
# Setup the required capabilities for the container runtime
ENV NVIDIA_VISIBLE_DEVICES=all NVIDIA_DRIVER_CAPABILITIES=all
# Open ports for live streaming
EXPOSE 47995-48012/udp \
47995-48012/tcp \
49000-49007/udp \
49000-49007/tcp \
49100/tcp \
8011/tcp \
8012/tcp \
8211/tcp \
8899/tcp \
8891/tcp
ENV OMNI_SERVER http://omniverse-content-production.s3-us-west-2.amazonaws.com/Assets/Isaac/2022.2.1
# ENV OMNI_SERVER omniverse://localhost/NVIDIA/Assets/Isaac/2022.1
# ENV OMNI_USER admin
# ENV OMNI_PASS admin
ENV MIN_DRIVER_VERSION 525.60.11
# Copy Isaac Sim files
COPY --from=isaac-sim /isaac-sim /isaac-sim
RUN mkdir -p /root/.nvidia-omniverse/config
COPY --from=isaac-sim /root/.nvidia-omniverse/config /root/.nvidia-omniverse/config
COPY --from=isaac-sim /etc/vulkan/icd.d/nvidia_icd.json /etc/vulkan/icd.d/nvidia_icd.json
COPY --from=isaac-sim /etc/vulkan/icd.d/nvidia_icd.json /etc/vulkan/implicit_layer.d/nvidia_layers.json
WORKDIR /isaac-sim
# Add symlink
RUN ln -s exts/omni.isaac.examples/omni/isaac/examples extension_examples
# Default entrypoint to launch headless with streaming
ENTRYPOINT /isaac-sim/runheadless.native.sh