Skip to content

Commit 66bf224

Browse files
committed
checkpoint, for tomorrow :(
1 parent 08d5d82 commit 66bf224

File tree

38 files changed

+1501
-511
lines changed

38 files changed

+1501
-511
lines changed

.devcontainer/Dockerfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,17 @@ FROM ros:${ROS_DISTRO}-ros-base AS dev-tools
99
# Install development tools not in base image
1010
RUN apt-get update && apt-get install -y --no-install-recommends \
1111
python3-pip \
12+
python3-venv \
1213
python3-colcon-common-extensions \
1314
python3-rosdep \
1415
openssh-client \
1516
git \
1617
curl \
1718
&& rm -rf /var/lib/apt/lists/*
1819

19-
# Install pre-commit
20-
RUN python3 -m pip install --no-cache-dir pre-commit==3.8.0
20+
# Create a system-wide virtual environment and install pre-commit
21+
RUN python3 -m venv --system-site-packages /opt/venv && \
22+
/opt/venv/bin/pip install --no-cache-dir pre-commit==3.8.0
2123

2224
# Set working dir (matches VSCode workspace)
2325
WORKDIR /deep_ros_ws
@@ -58,8 +60,8 @@ ARG ROS_DISTRO
5860
# Cater image to user
5961
SHELL ["/bin/bash", "-c"]
6062
# hadolint ignore=SC2086
61-
RUN groupadd --gid ${USER_GID} ${USERNAME} \
62-
&& useradd --uid ${USER_UID} --gid ${USER_GID} -m $USERNAME --shell /bin/bash \
63+
RUN groupadd --gid ${USER_GID} ${USERNAME} || groupmod -n ${USERNAME} $(getent group ${USER_GID} | cut -d: -f1) \
64+
&& useradd --uid ${USER_UID} --gid ${USER_GID} -m $USERNAME --shell /bin/bash || usermod -l ${USERNAME} -d /home/${USERNAME} -m $(getent passwd ${USER_UID} | cut -d: -f1) \
6365
&& apt-get update \
6466
&& apt-get install -y --no-install-recommends sudo \
6567
&& echo $USERNAME ALL=\(ALL\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
@@ -76,5 +78,6 @@ USER $USERNAME
7678
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
7779
RUN curl -fsSL https://claude.ai/install.sh | bash
7880

79-
# Source ROS in user's bashrc
80-
RUN echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> /home/$USERNAME/.bashrc
81+
# Source ROS and Python venv in user's bashrc
82+
RUN echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> /home/$USERNAME/.bashrc && \
83+
echo "source /opt/venv/bin/activate" >> /home/$USERNAME/.bashrc

robot_mcp_common_msg_plugins/robot_common_msg_plugins/CMakeLists.txt

Lines changed: 0 additions & 19 deletions
This file was deleted.

robot_mcp_common_msg_plugins/robot_common_msg_plugins/COLCON_IGNORE

Whitespace-only changes.

robot_mcp_common_msg_plugins/robot_common_msg_plugins/package.xml

Lines changed: 0 additions & 24 deletions
This file was deleted.

robot_mcp_common_msg_plugins/robot_mcp_geometry_msg_plugins/CMakeLists.txt

Lines changed: 0 additions & 75 deletions
This file was deleted.

robot_mcp_common_msg_plugins/robot_mcp_geometry_msg_plugins/COLCON_IGNORE

Whitespace-only changes.

robot_mcp_common_msg_plugins/robot_mcp_geometry_msg_plugins/package.xml

Lines changed: 0 additions & 23 deletions
This file was deleted.

robot_mcp_common_msg_plugins/robot_mcp_geometry_msg_plugins/plugins.xml

Lines changed: 0 additions & 3 deletions
This file was deleted.

robot_mcp_common_msg_plugins/robot_mcp_nav_msg_plugins/CMakeLists.txt

Lines changed: 0 additions & 75 deletions
This file was deleted.

robot_mcp_common_msg_plugins/robot_mcp_nav_msg_plugins/COLCON_IGNORE

Whitespace-only changes.

0 commit comments

Comments
 (0)