Skip to content

Commit fe24fbb

Browse files
authored
docs(docker): dockerfile available now.
1 parent a6fbc86 commit fe24fbb

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Dockerfile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
FROM ubuntu:focal
2+
LABEL maintainer="Qingwen Zhang <https://kin-zhang.github.io/>"
3+
4+
# Just in case we need it
5+
ENV DEBIAN_FRONTEND noninteractive
6+
7+
# install g++10 and tbb
8+
RUN apt update && apt install -y wget git zsh tmux vim g++ curl unzip
9+
RUN apt update && apt install -y gcc-10 g++-10 libtbb-dev liblz4-dev liblzf-dev pkg-config
10+
11+
# install CMAKE
12+
RUN apt update && apt install -y gnupg gnupg2 software-properties-common
13+
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
14+
RUN apt-add-repository 'deb https://apt.kitware.com/ubuntu/ focal main' && apt update && apt install -y cmake
15+
16+
# since we will output pcd file, don't want to root to lock it. normally 1000 is the first user in our desktop also
17+
RUN useradd -ms /bin/bash -u 1000 kin
18+
USER kin
19+
20+
# setup oh-my-zsh
21+
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
22+
RUN printf "y\ny\ny\n\n" | bash -c "$(curl -fsSL https://raw.githubusercontent.com/Kin-Zhang/Kin-Zhang/main/scripts/setup_ohmyzsh.sh)"
23+
24+
RUN mkdir -p /home/kin/workspace && mkdir -p /home/kin/data
25+
RUN git clone --recurse-submodules -b main --single-branch https://github.com/KTH-RPL/dufomap /home/kin/workspace/dufomap
26+
WORKDIR /home/kin/workspace/dufomap
27+
28+
# Run container: docker run -it --rm --name dufomap -v /home/kin/data:/home/kin/data zhangkin/dufomap /bin/zsh
29+
# you can also run with root user in existing container: docker exec -it -u 0 dufomap /bin/zsh

0 commit comments

Comments
 (0)