Skip to content

Commit d4a8249

Browse files
authored
Merge pull request #8 from Kin-Zhang/docs/Docker
feat: add dockerfile
2 parents d2163a9 + 56fb264 commit d4a8249

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

Dockerfile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
FROM osrf/ros:noetic-desktop-full
2+
LABEL maintainer="Kin Zhang <[email protected]>"
3+
4+
# Just in case we need it
5+
ENV DEBIAN_FRONTEND noninteractive
6+
7+
# install zsh
8+
RUN apt update && apt install -y wget git zsh tmux vim g++
9+
RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.5/zsh-in-docker.sh)" -- \
10+
-t robbyrussell \
11+
-p git \
12+
-p ssh-agent \
13+
-p https://github.com/agkozak/zsh-z \
14+
-p https://github.com/zsh-users/zsh-autosuggestions \
15+
-p https://github.com/zsh-users/zsh-completions \
16+
-p https://github.com/zsh-users/zsh-syntax-highlighting
17+
18+
RUN echo "source /opt/ros/noetic/setup.zsh" >> ~/.zshrc
19+
RUN echo "source /opt/ros/noetic/setup.bashrc" >> ~/.bashrc
20+
21+
RUN mkdir -p /workspace/dynablox_ws
22+
RUN git clone --recurse-submodules https://github.com/ethz-asl/dynablox.git /workspace/dynablox_ws/src/dynablox
23+
RUN apt-get install -y python3-vcstool python3-catkin-tools ros-noetic-cmake-modules protobuf-compiler autoconf rsync libtool
24+
# dynablox dependencies
25+
RUN cd /workspace/dynablox_ws/src && vcs import . < ./dynablox/https.rosinstall --recursive
26+
# ouster driver dependencies
27+
RUN cd /workspace && git clone https://github.com/gabime/spdlog.git && cd spdlog && mkdir build && cd build && cmake .. -DCMAKE_CXX_FLAGS=-fPIC && make -j && make install
28+
29+
WORKDIR /workspace/dynablox_ws

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ A brief overview of the problem, approach, and results is available on youtube:
4545

4646

4747
# Setup
48+
49+
There is a [docker image](https://hub.docker.com/repository/docker/zhangkin/dynablox/general) available for this package. Check the usage in the dockerhub page.
50+
4851
## Installation
4952

5053
* **Note on Versioning:** This package was developed using Ubuntu 20.04 using ROS Noetic. Other versions should also work but support can not be guaranteed.

0 commit comments

Comments
 (0)