Skip to content

Commit 239a47b

Browse files
authored
Use a unique name for the build date argument (#154)
http://b/183049196
1 parent 944af22 commit 239a47b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ RUN Rscript --vanilla /tmp/bioconductor_installs.R
7979
RUN Rscript --vanilla /tmp/install_iR.R
8080

8181
ARG GIT_COMMIT=unknown
82-
ARG BUILD_DATE=unknown
82+
ARG BUILD_DATE_RSTATS=unknown
8383

8484
LABEL git-commit=$GIT_COMMIT
85-
LABEL build-date=$BUILD_DATE
85+
LABEL build-date=$BUILD_DATE_RSTATS
8686

8787
# Find the current release git hash & build date inside the kernel editor.
88-
RUN echo "$GIT_COMMIT" > /etc/git_commit && echo "$BUILD_DATE" > /etc/build_date
88+
RUN echo "$GIT_COMMIT" > /etc/git_commit && echo "$BUILD_DATE_RSTATS" > /etc/build_date
8989

9090
CMD ["R"]

build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ done
5454

5555
BUILD_ARGS+=" --build-arg ncpus=$NCPUS"
5656
BUILD_ARGS+=" --build-arg GIT_COMMIT=$(git rev-parse HEAD)"
57-
BUILD_ARGS+=" --build-arg BUILD_DATE=$(date '+%Y%m%d-%H%M%S')"
57+
BUILD_ARGS+=" --build-arg BUILD_DATE_RSTATS=$(date '+%Y%m%d-%H%M%S')"
5858

5959
readonly CACHE_FLAG
6060
readonly DOCKERFILE

0 commit comments

Comments
 (0)