Skip to content

Commit

Permalink
fix to cache busting
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-hanheide committed Feb 26, 2024
1 parent 85205a7 commit e2919a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,19 @@ RUN git clone https://github.com/libuvc/libuvc.git &&\
ldconfig &&\
cd ../.. && rm -r libuvc*

# add commit history to bust cache if and when needed.
ADD "https://api.github.com/repos/LCAS/limo_ros2/commits?per_page=1&sha=humble" .lcas_addons.limo_ros2.commits
ADD "https://api.github.com/repos/LCAS/teaching/commits?per_page=1&sha=2324-devel" .lcas_addons.teaching.commits

COPY *repos *.sh /tmp/.devcontainer/
RUN bash /tmp/.devcontainer/install.sh

RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
RUN git clone https://github.com/eclipse-zenoh/zenoh-plugin-ros2dds.git
WORKDIR /opt/lcas/extensions/zenoh-plugin-ros2dds
RUN bash -c "source '$HOME/.cargo/env'; cargo build --release -p zenoh-bridge-ros2dds"
RUN install target/release/zenoh-bridge-ros2dds /usr/local/bin/


# add commit history to bust cache if and when needed.
ADD "https://api.github.com/repos/LCAS/limo_ros2/commits?per_page=1&sha=humble" .lcas_addons.limo_ros2.commits
ADD "https://api.github.com/repos/LCAS/teaching/commits?per_page=1&sha=2324-devel" .lcas_addons.teaching.commits

COPY *repos *.sh /tmp/.devcontainer/
RUN bash /tmp/.devcontainer/install.sh
RUN cat /tmp/.devcontainer/setup-router.sh >> /home/lcas/.bashrc

RUN mkdir -p /home/lcas/ws/src && ln -s /workspaces /home/lcas/ws/src/workspaces
Expand Down
1 change: 1 addition & 0 deletions .devcontainer/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ mkdir -p /opt/ros/lcas/src
chown -R lcas /opt/ros/lcas
cd /opt/ros/lcas/src
vcs import < /tmp/.devcontainer/lcas.repos
vcs pull
rosdep install --from-paths . -r -i -y
cd /opt/ros/lcas
colcon build
Expand Down

0 comments on commit e2919a3

Please sign in to comment.