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

fix to openjdk-11 instead of openjdk-17 #2305

Merged
merged 2 commits into from
Sep 18, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions docker/cygnus-ngsi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ ENV FLUME_HOME "/opt/apache-flume"
ENV FLUME_TGZ "apache-flume-${FLUME_VER}-bin.tar.gz"
ENV FLUME_URL "https://archive.apache.org/dist/flume/${FLUME_VER}/${FLUME_TGZ}"

ENV JAVA_VERSION "1.17.0"
ENV JAVA_VERSION "1.11.0"

COPY / ${CYGNUS_HOME}

Expand All @@ -269,7 +269,13 @@ RUN \
apt-get -y update && \
apt-get -y upgrade && \
# Install dependencies
fgalan marked this conversation as resolved.
Show resolved Hide resolved
apt-get -y install openjdk-17-jdk curl git python3 maven && \
apt-get -y install curl git python3 && \
curl -s --insecure -L 'http://security.debian.org/debian-security/pool/updates/main/o/openjdk-11/openjdk-11-jdk_11.0.20+8-1~deb11u1_amd64.deb' > openjdk-11-jdk_11.0.20+8-1~deb11u1_amd64.deb && \
curl -s --insecure -L 'http://security.debian.org/debian-security/pool/updates/main/o/openjdk-11/openjdk-11-jre_11.0.20+8-1~deb11u1_amd64.deb' > openjdk-11-jre_11.0.20+8-1~deb11u1_amd64.deb && \
curl -s --insecure -L 'http://security.debian.org/debian-security/pool/updates/main/o/openjdk-11/openjdk-11-jdk-headless_11.0.20+8-1~deb11u1_amd64.deb' > openjdk-11-jdk-headless_11.0.20+8-1~deb11u1_amd64.deb && \
curl -s --insecure -L 'http://security.debian.org/debian-security/pool/updates/main/o/openjdk-11/openjdk-11-jre-headless_11.0.20+8-1~deb11u1_amd64.deb' > openjdk-11-jre-headless_11.0.20+8-1~deb11u1_amd64.deb && \
apt-get -y install ./openjdk-11-jre-headless_11.0.20+8-1~deb11u1_amd64.deb ./openjdk-11-jre_11.0.20+8-1~deb11u1_amd64.deb ./openjdk-11-jdk-headless_11.0.20+8-1~deb11u1_amd64.deb ./openjdk-11-jdk_11.0.20+8-1~deb11u1_amd64.deb && \
apt-get -y install maven && \
# Add Cygnus user
adduser ${CYGNUS_USER} && \
export JAVA_HOME=/usr/lib/jvm/java-${JAVA_VERSION}-openjdk-amd64 && \
Expand Down
Loading