-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
125 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
FROM ubuntu:jammy | ||
|
||
ENV LANG=C.UTF-8 | ||
ENV LC_ALL=C.UTF-8 | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV NVIDIA_VISIBLE_DEVICES=all | ||
ENV NVIDIA_DRIVER_CAPABILITIES=graphics,utility,compute | ||
ENV TZ=Europe/Zagreb | ||
|
||
# Install necessary packages for ROS and Gazebo | ||
RUN apt-get update && apt-get install -q -y \ | ||
apt-utils \ | ||
build-essential \ | ||
bc \ | ||
cmake \ | ||
curl \ | ||
git \ | ||
gnupg \ | ||
lsb-release \ | ||
libboost-dev \ | ||
sudo \ | ||
nano \ | ||
net-tools \ | ||
tmux \ | ||
tmuxinator \ | ||
wget \ | ||
ranger \ | ||
htop | ||
|
||
# Install miniconda | ||
ENV CONDA_DIR=/opt/conda | ||
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \ | ||
/bin/bash ~/miniconda.sh -b -p /opt/conda | ||
|
||
# Put conda in path so we can use conda activate | ||
ENV PATH=$CONDA_DIR/bin:$PATH | ||
|
||
RUN conda init bash \ | ||
&& . ~/.bashrc \ | ||
&& conda create -n ditto python=3.8 -y \ | ||
&& conda activate ditto \ | ||
&& pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu117 | ||
|
||
CMD ["bash"] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
FROM ubuntu:jammy | ||
|
||
ENV LANG=C.UTF-8 | ||
ENV LC_ALL=C.UTF-8 | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV NVIDIA_VISIBLE_DEVICES=all | ||
ENV NVIDIA_DRIVER_CAPABILITIES=graphics,utility,compute | ||
ENV TZ=Europe/Zagreb | ||
|
||
# Install necessary packages for ROS and Gazebo | ||
RUN apt-get update && apt-get install -q -y \ | ||
apt-utils \ | ||
build-essential \ | ||
bc \ | ||
cmake \ | ||
curl \ | ||
git \ | ||
gnupg \ | ||
lsb-release \ | ||
libboost-dev \ | ||
sudo \ | ||
nano \ | ||
net-tools \ | ||
tmux \ | ||
tmuxinator \ | ||
wget \ | ||
ranger \ | ||
htop | ||
|
||
# Install miniconda | ||
ENV CONDA_DIR=/opt/conda | ||
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \ | ||
/bin/bash ~/miniconda.sh -b -p /opt/conda | ||
|
||
# Put conda in path so we can use conda activate | ||
ENV PATH=$CONDA_DIR/bin:$PATH | ||
|
||
CMD ["bash"] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
|
||
# If not working, first do: sudo rm -rf /tmp/.docker.xauth | ||
# It still not working, try running the script as root. | ||
|
||
XAUTH=/tmp/.docker.xauth | ||
|
||
echo "Preparing Xauthority data..." | ||
xauth_list=$(xauth nlist :0 | tail -n 1 | sed -e 's/^..../ffff/') | ||
if [ ! -f $XAUTH ]; then | ||
if [ ! -z "$xauth_list" ]; then | ||
echo $xauth_list | xauth -f $XAUTH nmerge - | ||
else | ||
touch $XAUTH | ||
fi | ||
chmod a+r $XAUTH | ||
fi | ||
|
||
echo "Done." | ||
echo "" | ||
echo "Verifying file contents:" | ||
file $XAUTH | ||
echo "--> It should say \"X11 Xauthority data\"." | ||
echo "" | ||
echo "Permissions:" | ||
ls -FAlh $XAUTH | ||
echo "" | ||
echo "Running docker..." | ||
|
||
docker run -it \ | ||
--env="DISPLAY=$DISPLAY" \ | ||
--env="TERM=xterm-256color" \ | ||
--volume="/tmp/.X11-unix:/tmp/.X11-unix" \ | ||
--volume="/dev:/dev" \ | ||
--volume="/var/run/dbus/:/var/run/dbus/:z" \ | ||
--net=host \ | ||
--privileged \ | ||
--gpus all \ | ||
--name hemlets_cont \ | ||
hemlets_img:latest |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM nvcr.io/nvidia/isaac-sim:4.0.0 | ||
|
||
CMD ["bash"] |