Skip to content

Commit

Permalink
Jdk17 (#15)
Browse files Browse the repository at this point in the history
* update to jdk17

* update docker image for xap

* update docker image for xap

* update docker image for xap

* update gs_version to 17.0.0

* Update Dockerfile adding k8s client api to the classpath

* switch to new k8s client version

* switch to new k8s client version

* revert java version

* update k8s-java-client

* update k8s-java-client

* update FROM:
ARG BASE_IMAGE=gigaspaces/openjdk
ARG BASE_TAG=17.1

* Change dockerfile to use our base image

---------

Co-authored-by: shai kapon <[email protected]>
Co-authored-by: Ariel Shatil <[email protected]>
  • Loading branch information
3 people authored May 22, 2024
1 parent 56e44f8 commit 647f149
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
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

0 comments on commit 647f149

Please sign in to comment.