Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jdk17 #15

Merged
merged 15 commits into from
May 22, 2024
14 changes: 9 additions & 5 deletions operator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
FROM gigaspaces/openjdk:11.1
ARG GS_VERSION=16.4.1
ARG GS_BUILD_NAME=16.4.1
ARG GS_PRODUCT=smart-cache
ARG BASE_IMAGE=gigaspaces/openjdk
ARG BASE_TAG=17.1
FROM ${BASE_IMAGE}:${BASE_TAG}
# The argument below is no longer used. We are moving to ubi8/openjdk-11 image
# instead of post-install of jdk due to tzdb corruption in upstream repo.
#ARG JAVA_VERSION=java-11-openjdkARG GS_PRODUCT=smart-cache
ARG GS_VERSION=17.0.0
ARG GS_BUILD_NAME=17.0.0-m19-fri-70
ARG GS_NAME=gigaspaces-${GS_PRODUCT}-enterprise-${GS_BUILD_NAME}
ARG GS_BUCKET=gs-releases-us-east-1
ENV GS_BUCKET $GS_BUCKET
ARG GS_URL=https://${GS_BUCKET}.s3.amazonaws.com/${GS_PRODUCT}/${GS_VERSION}/${GS_NAME}.zip
ENV GS_HOME /opt/gigaspaces
ENV GS_PRODUCT ${GS_PRODUCT}
ENV KUBERNETES_CLINET_URL=https://resources.gigaspaces.com/k8s-java-client/k8s-java-client-15.0.1.jar
ENV KUBERNETES_CLINET_URL=https://s3.amazonaws.com/resources.gigaspaces.com/k8s-java-client/k8s-java-client.jar

WORKDIR ${GS_HOME}
# Download $GS_URL and unzip to $GS_HOME
Expand Down
17 changes: 10 additions & 7 deletions smart-cache-enterprise/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,29 +1,32 @@
FROM gigaspaces/openjdk:11.1
ARG BASE_IMAGE=gigaspaces/openjdk
ARG BASE_TAG=17.1
FROM ${BASE_IMAGE}:${BASE_TAG}
# The argument below is no longer used. We are moving to ubi8/openjdk-11 image
# instead of post-install of jdk due to tzdb corruption in upstream repo.
ARG JAVA_VERSION=openjdk-17-jdk-headless
ARG GS_PRODUCT=smart-cache
ARG GS_VERSION=16.5.0
ARG GS_BUILD_NAME=16.5.0-PIC-3414-fri-1258
ARG GS_VERSION=17.0.0
ARG GS_BUILD_NAME=17.0.0-jdk17-ci-479
ARG GS_NAME=gigaspaces-${GS_PRODUCT}-enterprise-${GS_BUILD_NAME}
ARG GS_BUCKET=gs-releases-us-east-1
ENV GS_BUCKET $GS_BUCKET
ARG GS_URL=https://${GS_BUCKET}.s3.amazonaws.com/${GS_PRODUCT}/${GS_VERSION}/${GS_NAME}.zip
ENV GS_HOME /opt/gigaspaces
ENV GS_PRODUCT ${GS_PRODUCT}
ENV KUBERNETES_CLIENT_URL=https://resources.gigaspaces.com/k8s-java-client/k8s-java-client-15.0.1.jar
ENV KUBERNETES_CLIENT_API_URL=https://repo1.maven.org/maven2/io/kubernetes/client-java-api/20.0.0/client-java-api-20.0.0.jar
ENV KUBERNETES_CLINET_URL=https://s3.amazonaws.com/resources.gigaspaces.com/k8s-java-client/k8s-java-client.jar

WORKDIR ${GS_HOME}
# Download $GS_URL and unzip to $GS_HOME
USER root

RUN apt-get update && \
apt-get install -y $JAVA_VERSION jq bind9-utils wget unzip
RUN wget --progress=bar:force -O /tmp/gigaspaces.zip ${GS_URL} &&\
unzip -q /tmp/gigaspaces.zip -d /tmp &&\
mkdir -p ${GS_HOME}/work &&\
mv /tmp/${GS_NAME}/* ${GS_HOME}/ &&\
rm -f /tmp/gigaspaces.zip &&\
wget ${KUBERNETES_CLIENT_URL} -O ${GS_HOME}/tools/kubernetes/lib/k8s-java-client.jar &&\
wget ${KUBERNETES_CLIENT_API_URL} -O ${GS_HOME}/tools/kubernetes/lib/k8s-java-client-api.jar &&\
wget ${KUBERNETES_CLINET_URL} -O ${GS_HOME}/tools/kubernetes/lib/k8s-java-client.jar &&\
echo "#!/bin/bash" > /bin/kill && echo "kill \$@" >> /bin/kill && chmod +x /bin/kill
RUN groupadd --gid 2000 --system gs_group &&\
adduser --shell /bin/nologin --uid 2001 --gid 2000 gs_user &&\
Expand Down