ros2aria/Dockerfile.devcontainer

29 lines
914 B
Docker
Raw Permalink Normal View History

2022-07-19 21:25:18 +02:00
FROM athackst/ros2:foxy-dev
2021-03-19 10:48:07 +01:00
# ** [Optional] Uncomment this section to install additional packages. **
#
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get -y install --no-install-recommends rsync \
#
# 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 \
&& echo $SNIPPET >> "/home/$USERNAME/.bashrc"