Skip to content

Commit

Permalink
Add ROSDISTRO env variable to Earthfile (issue ros2#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
xfiderek authored and eholum committed Jul 11, 2024
1 parent 8b64122 commit 4de71c2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ setup:
RUN locale-gen en_US en_US.UTF-8
RUN update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
ENV LANG=en_US.UTF-8

# TODO - the `setup` step will be merged with the `setup` step in spaceros docker Earthfile
# This variable will then act as a single source of truth.
ENV ROSDISTRO="humble"

# Add the ROS 2 apt repository
RUN apt-get install -y software-properties-common
Expand All @@ -47,7 +51,8 @@ repos-file:
RUN --no-cache sh scripts/generate-repos.sh \
--outfile ros2.repos \
--packages spaceros-pkgs.txt \
--excluded-packages excluded-pkgs.txt
--excluded-packages excluded-pkgs.txt \
--rosdistro $ROSDISTRO
RUN --no-cache python3 scripts/merge-repos.py ros2.repos spaceros.repos -o output.repos

# Save the generated .repos file
Expand Down

0 comments on commit 4de71c2

Please sign in to comment.