@@ -18,6 +18,11 @@ ARG ORAS_VERSION=1.3.0
1818ARG  ORAS_CHECKSUM=6cdc692f929100feb08aa8de584d02f7bcc30ec7d88bc2adc2054d782db57c64
1919ARG  ORAS_CHECKSUM_ARM=7649738b48fde10542bcc8b0e9b460ba83936c75fb5be01ee6d4443764a14352
2020
21+ #  https://github.com/mikefarah/yq/releases
22+ ARG  YQ_VERSION=v4.47.2
23+ ARG  YQ_CHECKSUM=1bb99e1019e23de33c7e6afc23e93dad72aad6cf2cb03c797f068ea79814ddb0
24+ ARG  YQ_CHECKSUM_ARM=05df1f6aed334f223bb3e6a967db259f7185e33650c3b6447625e16fea0ed31f
25+ 
2126USER  root
2227
2328RUN  mkdir -p "/tmp/local/bin"  "/tmp/local/lib" 
@@ -63,6 +68,19 @@ curl -fsSL --proto '=https' --tlsv1.2 "https://github.com/oras-project/oras/rele
6368&& tar -xvf "/tmp/oras.tar.gz"  --no-same-permissions --no-same-owner -C "/tmp"  \
6469&& install -o "root"  -g "root"  -m "0755"  "/tmp/oras"  "/tmp/local/bin/oras" 
6570
71+ RUN  case "${TARGETARCH}"  in \
72+ 	'amd64' ) \
73+ 		checksum="${YQ_CHECKSUM}" ; \
74+ 	;; \
75+ 	'arm64' ) \
76+ 		checksum="${YQ_CHECKSUM_ARM}" ; \
77+ 	;; \
78+ 	*) echo >&2 "error: unsupported architecture ($TARGETARCH)" ; exit 1; ;; \
79+ esac; \
80+ curl -fsSL --proto '=https'  --tlsv1.2 "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_${TARGETARCH}"  -o "/tmp/yq"  \
81+ && echo "${checksum} /tmp/yq"  | sha256sum -c \
82+ && install -o "root"  -g "root"  -m "0755"  "/tmp/yq"  "/tmp/local/bin/yq" 
83+ 
6684COPY  ./base_helpers.sh /tmp/local/lib
6785
6886FROM  docker.io/library/debian:bookworm-slim
@@ -77,6 +95,7 @@ RUN apt-get update && apt-get upgrade --assume-yes && apt-get install --assume-y
7795	gnupg \
7896	jq \
7997	tar \
98+ 	tzdata \
8099	wget \
81100	&& apt-get autoremove --assume-yes \
82101	&& rm -rf /var/lib/apt/lists/*
0 commit comments