Skip to content

Commit

Permalink
Upgrade Rosetta image to Java 21 (0.95) (#7438)
Browse files Browse the repository at this point in the history
upgrade rosetta image to java 21

Signed-off-by: Jesse Nelson <[email protected]>
  • Loading branch information
jnels124 authored Dec 21, 2023
1 parent b9e5ee8 commit d4e8a03
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hedera-mirror-rosetta/container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
FROM ubuntu:22.04 as builder
ENV LANG=C.UTF-8
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y --no-install-recommends && apt-get install -y gcc git openjdk-17-jdk-headless wget
RUN apt-get update -y --no-install-recommends && apt-get install -y gcc git openjdk-21-jdk-headless wget
# GIT_REF can be a branch, a tag, or a 40-charater git commit hash
ARG GIT_REF=main
ARG REPO_URL=https://github.com/hashgraph/hedera-mirror-node
Expand All @@ -18,7 +18,8 @@ RUN ./gradlew :importer:build :rosetta:build -x test
WORKDIR /app
RUN mkdir importer rosetta scripts \
&& cp -r /hedera-mirror-node/hedera-mirror-rosetta/container/* . \
&& cp /hedera-mirror-node/hedera-mirror-importer/build/libs/hedera-mirror-importer-*.jar ./importer/hedera-mirror-importer.jar \
&& rm /hedera-mirror-node/hedera-mirror-importer/build/libs/importer-*-plain.jar \
&& cp /hedera-mirror-node/hedera-mirror-importer/build/libs/importer-*.jar ./importer/hedera-mirror-importer.jar \
&& cp /hedera-mirror-node/hedera-mirror-rosetta/build/hedera-mirror-rosetta ./rosetta \
&& cp /hedera-mirror-node/hedera-mirror-importer/src/main/resources/db/scripts/init.sh ./scripts

Expand All @@ -39,7 +40,7 @@ RUN apt-get update \
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8 \
&& echo "deb https://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
&& apt-get update -y --no-install-recommends \
&& apt-get install -y postgresql-${PG_VERSION} postgresql-client-${PG_VERSION} supervisor openjdk-17-jre-headless \
&& apt-get install -y postgresql-${PG_VERSION} postgresql-client-${PG_VERSION} supervisor openjdk-21-jre-headless \
&& rm -rf /var/lib/apt/lists/*

# Create users for importer and rosetta
Expand Down

0 comments on commit d4e8a03

Please sign in to comment.