Skip to content

Commit

Permalink
docker: works around statx issues by avoiding coreutils
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Cole <[email protected]>
  • Loading branch information
Adrian Cole committed Apr 16, 2024
1 parent 62c0a38 commit 251873a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ FROM ghcr.io/openzipkin/java:11.0.22_p7 as zipkin-dependencies
LABEL org.opencontainers.image.description="Zipkin Dependencies Aggregator on OpenJDK and Alpine Linux"
LABEL org.opencontainers.image.source=https://github.com/openzipkin/zipkin-dependencies

# Adds coreutils to allow date formatting of 'yesterday'
RUN apk add --no-cache coreutils
# Adds dateutils to allow date formatting. Don't use coreutils until below:
# https://gitlab.alpinelinux.org/alpine/aports/-/issues/16002
RUN apk add --no-cache dateutils

# Create custom user and ensure the process doesn't run as root
ARG USER=zipkin-dependencies
Expand Down
2 changes: 1 addition & 1 deletion docker/periodic/daily/zipkin-dependencies-yesterday
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
#

cd /zipkin-dependencies
start-zipkin-dependencies `date -ud yesterday +%F`
start-zipkin-dependencies `dateadd now -1d | dconv -f '%Y-%m-%d'`

0 comments on commit 251873a

Please sign in to comment.