Skip to content

Commit

Permalink
adding back jre for component based images as they donot use the deb …
Browse files Browse the repository at this point in the history
…mapping to auto-install components
  • Loading branch information
anindyatahsin committed Oct 15, 2024
1 parent d3deda2 commit 8c72af1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion debian_component_based/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ RUN apt-get update -qqy && apt-get -qqy upgrade && apt-get install -qqy \
openssh-client \
git \
make \
gnupg
gnupg \
openjdk-17-jre-headless
RUN if [ `uname -m` = 'x86_64' ]; then echo -n "x86_64" > /tmp/arch; else echo -n "arm" > /tmp/arch; fi;
RUN ARCH=`cat /tmp/arch` && curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-${CLOUD_SDK_VERSION}-linux-${ARCH}.tar.gz && \
tar xzf google-cloud-cli-${CLOUD_SDK_VERSION}-linux-${ARCH}.tar.gz && \
Expand Down
5 changes: 3 additions & 2 deletions emulators/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# debian:buster-slim is used instead of alpine because the cloud bigtable emulator requires glibc.
# debian12 is used instead of alpine because the cloud bigtable emulator requires glibc.
FROM marketplace.gcr.io/google/debian12:latest

ARG CLOUD_SDK_VERSION
Expand All @@ -21,7 +21,8 @@ RUN ARCH=`cat /tmp/arch` && \
curl \
python3 \
python3-crcmod \
bash && \
bash \
openjdk-17-jre-headless && \
curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-${CLOUD_SDK_VERSION}-linux-${ARCH}.tar.gz && \
tar xzf google-cloud-cli-${CLOUD_SDK_VERSION}-linux-${ARCH}.tar.gz && \
rm google-cloud-cli-${CLOUD_SDK_VERSION}-linux-${ARCH}.tar.gz && \
Expand Down

0 comments on commit 8c72af1

Please sign in to comment.