From af2505b277ac8132093badfb15c2b33ac2b7ed03 Mon Sep 17 00:00:00 2001 From: Jason Frame Date: Tue, 16 May 2023 14:41:50 +1000 Subject: [PATCH 1/8] Update docker images to use ubuntu:22.04 to fix issue with loading snappy library Signed-off-by: Jason Frame --- docker/openjdk-17-debug/Dockerfile | 4 ++-- docker/openjdk-17/Dockerfile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/openjdk-17-debug/Dockerfile b/docker/openjdk-17-debug/Dockerfile index e938677b428..a3883685e15 100644 --- a/docker/openjdk-17-debug/Dockerfile +++ b/docker/openjdk-17-debug/Dockerfile @@ -1,9 +1,9 @@ -FROM ubuntu:20.04 +FROM ubuntu:22.04 ARG VERSION="dev" RUN apt-get update && \ - apt-get install --no-install-recommends -q --assume-yes curl=7* wget=1.20* jq=1.6* net-tools=1.60* openjdk-17-jdk-headless=17* libjemalloc-dev=5.* && \ + apt-get install --no-install-recommends -q --assume-yes curl=7* jq=1.6* net-tools=1.60* openjdk-17-jdk-headless=17* libjemalloc-dev=5.* && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* && \ adduser --disabled-password --gecos "" --home /opt/besu besu && \ diff --git a/docker/openjdk-17/Dockerfile b/docker/openjdk-17/Dockerfile index dbc30e7dbb0..df174647ec2 100644 --- a/docker/openjdk-17/Dockerfile +++ b/docker/openjdk-17/Dockerfile @@ -1,5 +1,5 @@ -FROM ubuntu:20.04 +FROM ubuntu:22.04 ARG VERSION="dev" RUN apt-get update && \ From 007a003ce01c486871d39bb8c05f8788745b3b80 Mon Sep 17 00:00:00 2001 From: Jason Frame Date: Tue, 16 May 2023 14:52:16 +1000 Subject: [PATCH 2/8] Update evmtool docker image to use ubuntu:22.04 to fix issue with loading snappy library Signed-off-by: Jason Frame --- ethereum/evmtool/src/main/docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethereum/evmtool/src/main/docker/Dockerfile b/ethereum/evmtool/src/main/docker/Dockerfile index 3f7be38c42a..1d5bc7734e7 100644 --- a/ethereum/evmtool/src/main/docker/Dockerfile +++ b/ethereum/evmtool/src/main/docker/Dockerfile @@ -1,5 +1,5 @@ -FROM ubuntu:20.04 +FROM ubuntu:22.04 ARG VERSION="dev" RUN apt-get update && \ From 42b53cd5227d19401dad97838ea82f4669beb621 Mon Sep 17 00:00:00 2001 From: Jason Frame Date: Tue, 16 May 2023 15:53:58 +1000 Subject: [PATCH 3/8] Update debug docker image to include wget again Signed-off-by: Jason Frame --- docker/openjdk-17-debug/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/openjdk-17-debug/Dockerfile b/docker/openjdk-17-debug/Dockerfile index a3883685e15..20d09267911 100644 --- a/docker/openjdk-17-debug/Dockerfile +++ b/docker/openjdk-17-debug/Dockerfile @@ -3,7 +3,7 @@ FROM ubuntu:22.04 ARG VERSION="dev" RUN apt-get update && \ - apt-get install --no-install-recommends -q --assume-yes curl=7* jq=1.6* net-tools=1.60* openjdk-17-jdk-headless=17* libjemalloc-dev=5.* && \ + apt-get install --no-install-recommends -q --assume-yes curl=7* wget=1.21* jq=1.6* net-tools=1.60* openjdk-17-jdk-headless=17* libjemalloc-dev=5.* && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* && \ adduser --disabled-password --gecos "" --home /opt/besu besu && \ From 3a3595c31a069deef786df6c4e2c8e160d54489c Mon Sep 17 00:00:00 2001 From: Jason Frame Date: Tue, 16 May 2023 15:54:10 +1000 Subject: [PATCH 4/8] Add changelog Signed-off-by: Jason Frame --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 25f6bb8f99e..f56b58a4b69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ ### Bug Fixes - Fix eth_feeHistory response for the case in which blockCount is higher than highestBlock requested. [#5397](https://github.com/hyperledger/besu/pull/5397) +- Fix Besu failing to start due to NoClassDefFoundError with org.xerial.snappy.Snappy library. [#5462](https://github.com/hyperledger/besu/pull/5462) ### Download Links From 67049c136205bd1e2e76bf7134d5ef98bc6d43a6 Mon Sep 17 00:00:00 2001 From: Jason Frame Date: Wed, 17 May 2023 10:44:16 +1000 Subject: [PATCH 5/8] Install ca-certificates-java to fix Docker build issue with openjdk17 Signed-off-by: Jason Frame --- docker/openjdk-17-debug/Dockerfile | 1 + docker/openjdk-17/Dockerfile | 1 + 2 files changed, 2 insertions(+) diff --git a/docker/openjdk-17-debug/Dockerfile b/docker/openjdk-17-debug/Dockerfile index 20d09267911..60ee037bfee 100644 --- a/docker/openjdk-17-debug/Dockerfile +++ b/docker/openjdk-17-debug/Dockerfile @@ -3,6 +3,7 @@ FROM ubuntu:22.04 ARG VERSION="dev" RUN apt-get update && \ + apt-get install --no-install-recommends -q --assume-yes ca-certificates-java=20190909 && \ apt-get install --no-install-recommends -q --assume-yes curl=7* wget=1.21* jq=1.6* net-tools=1.60* openjdk-17-jdk-headless=17* libjemalloc-dev=5.* && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* && \ diff --git a/docker/openjdk-17/Dockerfile b/docker/openjdk-17/Dockerfile index df174647ec2..ce1a534d607 100644 --- a/docker/openjdk-17/Dockerfile +++ b/docker/openjdk-17/Dockerfile @@ -3,6 +3,7 @@ FROM ubuntu:22.04 ARG VERSION="dev" RUN apt-get update && \ + apt-get install --no-install-recommends -q --assume-yes ca-certificates-java=20190909 && \ apt-get install --no-install-recommends -q --assume-yes openjdk-17-jre-headless=17* libjemalloc-dev=5.* && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* && \ From f95a06345d4c3aa16f82d81ca192411bfefe71df Mon Sep 17 00:00:00 2001 From: Jason Frame Date: Wed, 17 May 2023 10:59:21 +1000 Subject: [PATCH 6/8] Install ca-certificates-java to fix Docker build issue with openjdk17 for evmtool Signed-off-by: Jason Frame --- ethereum/evmtool/src/main/docker/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/ethereum/evmtool/src/main/docker/Dockerfile b/ethereum/evmtool/src/main/docker/Dockerfile index 1d5bc7734e7..89d6b335c7b 100644 --- a/ethereum/evmtool/src/main/docker/Dockerfile +++ b/ethereum/evmtool/src/main/docker/Dockerfile @@ -3,6 +3,7 @@ FROM ubuntu:22.04 ARG VERSION="dev" RUN apt-get update && \ + apt-get install --no-install-recommends -q --assume-yes ca-certificates-java=20190909 && \ apt-get install --no-install-recommends -q --assume-yes openjdk-17-jre-headless=17* && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* && \ From 932a6f97e827da8efdca431aecf68235ead77902 Mon Sep 17 00:00:00 2001 From: Jason Frame Date: Wed, 17 May 2023 11:28:20 +1000 Subject: [PATCH 7/8] Include mention of docker in changelog Signed-off-by: Jason Frame --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f56b58a4b69..5750252d4c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,7 +15,7 @@ ### Bug Fixes - Fix eth_feeHistory response for the case in which blockCount is higher than highestBlock requested. [#5397](https://github.com/hyperledger/besu/pull/5397) -- Fix Besu failing to start due to NoClassDefFoundError with org.xerial.snappy.Snappy library. [#5462](https://github.com/hyperledger/besu/pull/5462) +- Fix Besu Docker image failing to start due to NoClassDefFoundError with org.xerial.snappy.Snappy library. [#5462](https://github.com/hyperledger/besu/pull/5462) ### Download Links From a208c5c85ec1c5dda2daa6535889174f8f361b38 Mon Sep 17 00:00:00 2001 From: Jason Frame Date: Wed, 17 May 2023 12:09:45 +1000 Subject: [PATCH 8/8] Update changelog to mention breaking of glibc in 23.4.0 Signed-off-by: Jason Frame --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5750252d4c3..4c44ef733b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ - Remove launcher command line utility [#5355](https://github.com/hyperledger/besu/pull/5355) - Remove deprecated `tx-pool-future-max-by-account` option, see instead: `tx-pool-limit-by-account-percentage` [#5361](https://github.com/hyperledger/besu/pull/5361) - Default configuration for the deprecated ECIP-1049 network has been removed from the CLI network list [#5371](https://github.com/hyperledger/besu/pull/5371) +- Besu now requires glibc 2.32 or later to run. Ubuntu 20.04 users will need to update to a newer version of Ubuntu, 22.04 or later to run Besu ### Additions and Improvements - An alternate build target for the EVM using GraalVM AOT compilation was added. [#5192](https://github.com/hyperledger/besu/pull/5192)