ros2aria/Dockerfile.devcontainer

30 lines
983 B
Docker
Raw Permalink Normal View History

2021-03-19 10:48:07 +01:00
FROM athackst/ros2:foxy-dev
# ** [Optional] Uncomment this section to install additional packages. **
#
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
2022-07-29 13:44:09 +02:00
&& apt-get -y install --no-install-recommends rsync ros-foxy-xacro ros-foxy-joint-state-publisher-gui ros-foxy-urg-node\
#
# Clean up
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
ENV DEBIAN_FRONTEND=dialog
2021-03-19 10:48:07 +01:00
# Set up auto-source of workspace for ros user
2021-03-19 14:33:48 +01:00
COPY ./src/AriaCoda /usr/local/Aria
RUN cd /usr/local/Aria && make -j$(nproc)
2021-03-19 10:48:07 +01:00
ARG WORKSPACE
2021-04-16 14:37:09 +02:00
# RUN echo "if [ -f ${WORKSPACE}/install/setup.bash ]; then source ${WORKSPACE}/install/setup.bash; fi" >> /home/ros/.bashrc
2021-03-19 14:33:48 +01:00
ARG USERNAME=ros
RUN SNIPPET="export PROMPT_COMMAND='history -a' && export HISTFILE=/commandhistory/.bash_history" \
&& mkdir /commandhistory \
&& touch /commandhistory/.bash_history \
&& chown -R $USERNAME /commandhistory \
2022-07-29 13:44:09 +02:00
&& echo $SNIPPET >> "/home/$USERNAME/.bashrc"