Skip to content

Commit f464319

Browse files
authored
[Dockerfile] Clean install to not use git.
1 parent ac627dd commit f464319

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

.devel/sas/Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ FROM juanjqo/ubuntu_24_dqrobotics_ros_jazzy
22
SHELL ["/bin/bash", "-c"]
33
ENV BASH_ENV="/etc/bash_env"
44

5-
# Make directory and download sas installation instructions
6-
RUN mkdir -p ~/sas_install
7-
RUN cd ~/sas_install && git clone -b jazzy https://github.com/SmartArmStack/smart_arm_stack_ROS2.git sas
8-
9-
# Install SAS
10-
RUN chmod +x ~/sas_install/sas/install.sh
11-
RUN bash -c '~/sas_install/sas/install.sh'
5+
# Branch of this repository from which to download the install script
6+
ARG BRANCH=jazzy
127

8+
# Run install script
9+
RUN mkdir -p ~/sas_install \
10+
&& cd ~/sas_install \
11+
&& curl -OL "https://raw.githubusercontent.com/SmartArmStack/smart_arm_stack_ROS2/refs/heads/${BRANCH}/install.sh" \
12+
&& chmod +x install.sh \
13+
&& bash -c "./install.sh"

0 commit comments

Comments
 (0)