Skip to content

Commit 86445ff

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 510a230 commit 86445ff

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

dev/Dockerfile

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

1515
FROM almalinux:9
1616

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

1926
RUN dnf -y install yum-utils epel-release.noarch && \
@@ -57,9 +64,7 @@ RUN dnf -y install yum-utils epel-release.noarch && \
5764

5865
RUN curl https://rclone.org/install.sh | bash
5966

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
67+
RUN git clone --depth 1 --branch "$TAG" https://github.com/rucio/rucio.git /tmp/rucio && rm -rf /tmp/rucio/.git
6368

6469
ENV RUCIOHOME=/opt/rucio
6570
RUN mkdir -p $RUCIOHOME && \

0 commit comments

Comments
 (0)