Skip to content

Commit c2af878

Browse files
committed
Pin dev Dockerfile to specified Rucio tag
Pin dev builds using ARG TAG, failing early if no tag is provided.
1 parent eae746a commit c2af878

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

dev/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414

1515
FROM almalinux:9
1616

17+
ARG TAG
18+
19+
# Fail early if TAG is not provided
20+
RUN test -n "$TAG" || (echo "No TAG specified. Exiting." && exit 1)
21+
1722
WORKDIR /
1823

1924
RUN dnf -y install yum-utils epel-release.noarch && \
@@ -57,9 +62,7 @@ RUN dnf -y install yum-utils epel-release.noarch && \
5762

5863
RUN curl https://rclone.org/install.sh | bash
5964

60-
ARG GIT_CLONE_ARGS="--depth 1 https://github.com/rucio/rucio.git"
61-
62-
RUN git clone $GIT_CLONE_ARGS /tmp/rucio && rm -rf /tmp/rucio/.git
65+
RUN git clone --depth 1 --branch "$TAG" https://github.com/rucio/rucio.git /tmp/rucio && rm -rf /tmp/rucio/.git
6366

6467
ENV RUCIOHOME=/opt/rucio
6568
RUN mkdir -p $RUCIOHOME && \

0 commit comments

Comments
 (0)