Skip to content

Commit 4f1b681

Browse files
committed
chore: upgrade dockerfile debian version to debian 12
As debian 11 is not supported anymore with the upgrade of glibc min version to `2.35`.
1 parent fd0af53 commit 4f1b681

File tree

9 files changed

+13
-14
lines changed

9 files changed

+13
-14
lines changed

mithril-aggregator/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
###############################
22
# STEP 1: build rust executable
33
###############################
4-
FROM rust:bullseye AS rustbuilder
4+
FROM rust:bookworm AS rustbuilder
55

66
# Create appuser
77
RUN adduser --no-create-home --disabled-password appuser
@@ -32,7 +32,7 @@ RUN /app/target/release/mithril-aggregator --version
3232
###############################
3333
# STEP 2: build a small image
3434
###############################
35-
FROM debian:11-slim
35+
FROM debian:12-slim
3636

3737
# Args
3838
ARG CARDANO_NODE_VERSION=10.1.4

mithril-aggregator/Dockerfile.ci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Creates a docker image to run an executable built outside of the image
22
# This relies on the fact the mithril-aggregator executable has been built
33
# on a debian-compatible x86-64 environment
4-
ARG DOCKER_IMAGE_FROM=debian:11-slim
4+
ARG DOCKER_IMAGE_FROM=debian:12-slim
55
FROM $DOCKER_IMAGE_FROM
66

77
# Create appuser

mithril-client-cli/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
###############################
22
# STEP 1: build rust executable
33
###############################
4-
FROM rust:bullseye AS rustbuilder
4+
FROM rust:bookworm AS rustbuilder
55

66
# Create appuser
77
RUN adduser --no-create-home --disabled-password appuser
@@ -30,7 +30,7 @@ RUN /app/target/release/mithril-client --version
3030
###############################
3131
# STEP 2: build a small image
3232
###############################
33-
FROM debian:11-slim
33+
FROM debian:12-slim
3434

3535
# Upgrade
3636
RUN apt-get update -y && apt-get install -y libssl-dev ca-certificates wget sqlite3 && rm -rf /var/lib/apt/lists/*

mithril-client-cli/Dockerfile.ci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Creates a docker image to run an executable built outside of the image
22
# This relies on the fact the mithril-client executable has been built
33
# on a debian-compatible x86-64 environment
4-
ARG DOCKER_IMAGE_FROM=debian:11-slim
4+
ARG DOCKER_IMAGE_FROM=debian:12-slim
55
FROM $DOCKER_IMAGE_FROM
66

77
# Create appuser

mithril-relay/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
###############################
22
# STEP 1: build rust executable
33
###############################
4-
FROM rust:bullseye AS rustbuilder
4+
FROM rust:bookworm AS rustbuilder
55

66
# Create appuser
77
RUN adduser --no-create-home --disabled-password appuser
@@ -30,7 +30,7 @@ RUN /app/target/release/mithril-relay --version
3030
###############################
3131
# STEP 2: build a small image
3232
###############################
33-
FROM debian:11-slim
33+
FROM debian:12-slim
3434

3535
# Upgrade
3636
RUN apt-get update -y && apt-get install -y libssl-dev ca-certificates wget sqlite3 && rm -rf /var/lib/apt/lists/*

mithril-relay/Dockerfile.ci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Creates a docker image to run an executable built outside of the image
22
# This relies on the fact the mithril-relay executable has been built
33
# on a debian-compatible x86-64 environment
4-
ARG DOCKER_IMAGE_FROM=debian:11-slim
4+
ARG DOCKER_IMAGE_FROM=debian:12-slim
55
FROM $DOCKER_IMAGE_FROM
66

77
# Create appuser

mithril-signer/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
###############################
22
# STEP 1: build rust executable
33
###############################
4-
FROM rust:bullseye AS rustbuilder
4+
FROM rust:bookworm AS rustbuilder
55

66
# Create appuser
77
RUN adduser --no-create-home --disabled-password appuser
@@ -33,7 +33,7 @@ RUN /app/target/release/mithril-signer --version
3333
###############################
3434
# STEP 2: build a small image
3535
###############################
36-
FROM debian:11-slim
36+
FROM debian:12-slim
3737

3838
# Args
3939
ARG CARDANO_NODE_VERSION=10.1.4

mithril-signer/Dockerfile.ci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Creates a docker image to run an executable built outside of the image
22
# This relies on the fact the mithril-signer executable has been built
33
# on a debian-compatible x86-64 environment
4-
ARG DOCKER_IMAGE_FROM=debian:11-slim
4+
ARG DOCKER_IMAGE_FROM=debian:12-slim
55
FROM $DOCKER_IMAGE_FROM
66

77
# Create appuser

mithril-test-lab/mithril-devnet/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ MITHRIL_NODE_DOCKER_BUILD_TYPE=ci ./devnet-run.sh
5555
## from locally built binaries with a custom slim image used as Docker image source
5656
### This configuration depends on the version of 'glibc' on your computer
5757
### 'debian:12-slim': default value, works on Ubuntu 22.04
58-
### 'debian:11-slim': works on Ubuntu 20.04
59-
MITHRIL_NODE_DOCKER_CI_IMAGE_FROM=debian:11-slim MITHRIL_NODE_DOCKER_BUILD_TYPE=ci ./devnet-run.sh
58+
MITHRIL_NODE_DOCKER_CI_IMAGE_FROM=debian:12-slim MITHRIL_NODE_DOCKER_BUILD_TYPE=ci ./devnet-run.sh
6059

6160
## from rust builder in Docker (slower build times, always works)
6261
MITHRIL_NODE_DOCKER_BUILD_TYPE=legacy ./devnet-run.sh

0 commit comments

Comments
 (0)