Skip to content

Commit 91b03c7

Browse files
committed
Buld linux release on Ubuntu 22.04 for greater distro compatibility
This should resolve the glibc errors when running on older distros.
1 parent 0d137c1 commit 91b03c7

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ jobs:
6767
matrix:
6868
configs:
6969
- target: x86_64-unknown-linux-gnu
70-
os: ubuntu-24.04
70+
os: ubuntu-22.04
7171
profile: maxperf
7272
allow_fail: false
7373
- target: aarch64-unknown-linux-gnu
74-
os: ubuntu-24.04
74+
os: ubuntu-22.04
7575
profile: maxperf
7676
allow_fail: false
7777
steps:

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ RUN TARGET=$(cat /tmp/target.txt) && \
6363
RUN TARGET=$(cat /tmp/target.txt) && \
6464
cp /app/target/$TARGET/$BUILD_PROFILE/bera-reth /app/bera-reth
6565

66-
# Use Ubuntu as the release image
67-
FROM ubuntu:24.04 AS runtime
66+
# Use Ubuntu as the release image
67+
FROM ubuntu:22.04 AS runtime
6868

6969
# Install runtime dependencies
7070
RUN apt-get update && \
@@ -87,4 +87,4 @@ ARG VERSION=""
8787
ARG BUILDNUM=""
8888
LABEL commit="$COMMIT" version="$VERSION" buildnum="$BUILDNUM"
8989

90-
ENTRYPOINT ["/usr/local/bin/bera-reth"]
90+
ENTRYPOINT ["/usr/local/bin/bera-reth"]

Dockerfile.debug

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ RUN cargo build --profile $BUILD_PROFILE --locked --bin bera-reth
2828
# Copy binary from debug directory (dev profile builds to debug dir)
2929
RUN cp /app/target/debug/bera-reth /app/bera-reth
3030

31-
# Use Ubuntu as the release image
32-
FROM ubuntu:24.04 AS runtime
31+
# Use Ubuntu as the release image
32+
FROM ubuntu:22.04 AS runtime
3333

3434
# Install runtime dependencies
3535
RUN apt-get update && \
@@ -50,4 +50,4 @@ EXPOSE 30303 30303/udp 9001 8545 8546 8551
5050
ENV RUST_LOG=debug
5151
ENV BUILD_TYPE=debug
5252

53-
ENTRYPOINT ["/usr/local/bin/bera-reth"]
53+
ENTRYPOINT ["/usr/local/bin/bera-reth"]

0 commit comments

Comments
 (0)