This commit is contained in:
Thies Lennart Alff 2024-01-04 14:04:52 +01:00
parent 0ec4e62a17
commit a5cf832a3b
2 changed files with 11 additions and 0 deletions

View file

@ -54,6 +54,9 @@ RUN apt-get update \
ros-${ROS_DISTR}-apriltag \ ros-${ROS_DISTR}-apriltag \
ros-${ROS_DISTR}-plotjuggler-ros \ ros-${ROS_DISTR}-plotjuggler-ros \
ros-${ROS_DISTR}-tf-transformations \ ros-${ROS_DISTR}-tf-transformations \
ros-${ROS_DISTR}-topic-tools \
ros-${ROS_DISTR}-rviz-2d-overlay-plugins \
&& pip3 install transforms3d \
# && rosdep install --from-paths /ros2_underlay/src -y --ignore-src \ # && rosdep install --from-paths /ros2_underlay/src -y --ignore-src \
# && rosdep install --from paths /ros2/src -y --ignore-src \ # && rosdep install --from paths /ros2/src -y --ignore-src \
&& apt-get autoremove -y \ && apt-get autoremove -y \
@ -104,6 +107,8 @@ USER root
RUN mkdir /zsh_history \ RUN mkdir /zsh_history \
&& touch /zsh_history/.zsh_history \ && touch /zsh_history/.zsh_history \
&& chown -R $USERNAME /zsh_history && chown -R $USERNAME /zsh_history
RUN mkdir /home/$USERNAME/.cache/pre-commit \
&& chown -R $USERNAME /home/$USERNAME/.cache/pre-commit
ADD ros2-vim/nvim /home/$USERNAME/.config/nvim ADD ros2-vim/nvim /home/$USERNAME/.config/nvim
RUN chown -R $USERNAME /home/$USERNAME/ RUN chown -R $USERNAME /home/$USERNAME/
USER ${USERNAME} USER ${USERNAME}

View file

@ -11,6 +11,7 @@ services:
count: all count: all
capabilities: [gpu] capabilities: [gpu]
dev: dev:
privileged: true
container_name: ros2-vim container_name: ros2-vim
network_mode: host network_mode: host
build: build:
@ -25,6 +26,9 @@ services:
devices: devices:
- "/dev/dri:/dev/dri" - "/dev/dri:/dev/dri"
volumes: volumes:
- type: bind
source: /dev
target: /dev
- type: bind - type: bind
source: ${HOME}/uuv source: ${HOME}/uuv
target: /home/ros-user/uuv target: /home/ros-user/uuv
@ -44,6 +48,7 @@ services:
source: $XDG_RUNTIME_DIR/${WAYLAND_DISPLAY} source: $XDG_RUNTIME_DIR/${WAYLAND_DISPLAY}
target: /tmp/${WAYLAND_DISPLAY} target: /tmp/${WAYLAND_DISPLAY}
- "ros2_zsh_history:/zsh_history" - "ros2_zsh_history:/zsh_history"
- pre_commit_data:/home/ros-user/.cache/pre-commit
- nvim_data:/home/ros-user/.local/share/nvim - nvim_data:/home/ros-user/.local/share/nvim
- $SSH_AUTH_SOCK:/ssh-agent - $SSH_AUTH_SOCK:/ssh-agent
- "~/.gitconfig:/etc/gitconfig" - "~/.gitconfig:/etc/gitconfig"
@ -63,3 +68,4 @@ services:
volumes: volumes:
ros2_zsh_history: ros2_zsh_history:
nvim_data: nvim_data:
pre_commit_data: