Skip to content

Commit 5b31553

Browse files
committed
fix(jenkins): avoid Docker Hub frontend fetch in Dockerfile
1 parent 6ec825e commit 5b31553

1 file changed

Lines changed: 9 additions & 13 deletions

File tree

Dockerfile

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# syntax=docker/dockerfile:latest
2-
31
ARG starenv=root5
42

53
# Pick one from [gcc485, gcc11]
@@ -23,18 +21,16 @@ COPY . ${STAR}
2321

2422
SHELL ["/bin/bash", "-l", "-c"]
2523

26-
RUN <<EOF
27-
set -e
28-
[[ $compiler = "gcc485" ]] && EXTRA_CXXFLAGS="-Werror" || EXTRA_CXXFLAGS=""
29-
cons EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS"
30-
find .$STAR_HOST_SYS -name *.o -exec rm '{}' \;
31-
EOF
24+
RUN set -e; \
25+
if [ "$compiler" = "gcc485" ]; then EXTRA_CXXFLAGS="-Werror"; else EXTRA_CXXFLAGS=""; fi; \
26+
cons EXTRA_CXXFLAGS="$EXTRA_CXXFLAGS"; \
27+
find ".$STAR_HOST_SYS" -name '*.o' -exec rm '{}' \;
3228

33-
COPY --chmod=0755 <<-"EOF" /opt/entrypoint.sh
34-
#!/bin/bash -l
35-
set -e
36-
install $STAR/StRoot/macros/.rootrc .
37-
exec "$@"
29+
RUN cat > /opt/entrypoint.sh <<'EOF' && chmod 0755 /opt/entrypoint.sh
30+
#!/bin/bash -l
31+
set -e
32+
install "$STAR/StRoot/macros/.rootrc" .
33+
exec "$@"
3834
EOF
3935

4036
ENTRYPOINT ["/opt/entrypoint.sh"]

0 commit comments

Comments
 (0)