Skip to content

Commit

Permalink
Added hpe, ditto and isaac
Browse files Browse the repository at this point in the history
  • Loading branch information
fzoric8 committed Nov 19, 2024
1 parent 2ccf963 commit 9e5f531
Show file tree
Hide file tree
Showing 4 changed files with 125 additions and 0 deletions.
44 changes: 44 additions & 0 deletions ditto/Dockerfile
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"]
38 changes: 38 additions & 0 deletions hpe/hemlets/Dockerfile
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"]
40 changes: 40 additions & 0 deletions hpe/hemlets/first_run.sh
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
3 changes: 3 additions & 0 deletions isaac/Dockerfile
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"]

0 comments on commit 9e5f531

Please sign in to comment.