Skip to content

Commit

Permalink
Use ADD to fetch an updated repos file on each build. (space-ros/dock…
Browse files Browse the repository at this point in the history
  • Loading branch information
nuclearsandwich authored and eholum committed Jun 26, 2024
1 parent 851072f commit 43a7c9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spaceros/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ FROM nvidia/cudagl:11.4.1-devel-ubuntu20.04
ARG VCS_REF
ARG VERSION="preview"
ARG WORKSPACE=/root/src/spaceros_ws
ARG REPOS_FILE_URL="https://raw.githubusercontent.com/space-ros/space-ros/main/ros2.repos"

# LABEL the image
LABEL org.label-schema.schema-version="1.0"
Expand Down Expand Up @@ -93,7 +94,7 @@ RUN python3 -m pip install -U \
# Get the Space ROS source code
RUN mkdir -p ${WORKSPACE}/src
WORKDIR ${WORKSPACE}
RUN wget https://raw.githubusercontent.com/space-ros/space-ros/main/ros2.repos
ADD ${REPOS_FILE_URL} ros2.repos
RUN vcs import src < ros2.repos

# Install system dependencies
Expand Down

0 comments on commit 43a7c9f

Please sign in to comment.