Skip to content

Commit

Permalink
Merge pull request #2319 from input-output-hk/djo/2216/bump-dockerfil…
Browse files Browse the repository at this point in the history
…es-to-debian-12

chore: upgrade dockerfiles base image version to Debian 12
  • Loading branch information
Alenar authored Feb 18, 2025
2 parents fd0af53 + 4f1b681 commit e2a88ec
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 14 deletions.
4 changes: 2 additions & 2 deletions mithril-aggregator/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
###############################
# STEP 1: build rust executable
###############################
FROM rust:bullseye AS rustbuilder
FROM rust:bookworm AS rustbuilder

# Create appuser
RUN adduser --no-create-home --disabled-password appuser
Expand Down Expand Up @@ -32,7 +32,7 @@ RUN /app/target/release/mithril-aggregator --version
###############################
# STEP 2: build a small image
###############################
FROM debian:11-slim
FROM debian:12-slim

# Args
ARG CARDANO_NODE_VERSION=10.1.4
Expand Down
2 changes: 1 addition & 1 deletion mithril-aggregator/Dockerfile.ci
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Creates a docker image to run an executable built outside of the image
# This relies on the fact the mithril-aggregator executable has been built
# on a debian-compatible x86-64 environment
ARG DOCKER_IMAGE_FROM=debian:11-slim
ARG DOCKER_IMAGE_FROM=debian:12-slim
FROM $DOCKER_IMAGE_FROM

# Create appuser
Expand Down
4 changes: 2 additions & 2 deletions mithril-client-cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
###############################
# STEP 1: build rust executable
###############################
FROM rust:bullseye AS rustbuilder
FROM rust:bookworm AS rustbuilder

# Create appuser
RUN adduser --no-create-home --disabled-password appuser
Expand Down Expand Up @@ -30,7 +30,7 @@ RUN /app/target/release/mithril-client --version
###############################
# STEP 2: build a small image
###############################
FROM debian:11-slim
FROM debian:12-slim

# Upgrade
RUN apt-get update -y && apt-get install -y libssl-dev ca-certificates wget sqlite3 && rm -rf /var/lib/apt/lists/*
Expand Down
2 changes: 1 addition & 1 deletion mithril-client-cli/Dockerfile.ci
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Creates a docker image to run an executable built outside of the image
# This relies on the fact the mithril-client executable has been built
# on a debian-compatible x86-64 environment
ARG DOCKER_IMAGE_FROM=debian:11-slim
ARG DOCKER_IMAGE_FROM=debian:12-slim
FROM $DOCKER_IMAGE_FROM

# Create appuser
Expand Down
4 changes: 2 additions & 2 deletions mithril-relay/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
###############################
# STEP 1: build rust executable
###############################
FROM rust:bullseye AS rustbuilder
FROM rust:bookworm AS rustbuilder

# Create appuser
RUN adduser --no-create-home --disabled-password appuser
Expand Down Expand Up @@ -30,7 +30,7 @@ RUN /app/target/release/mithril-relay --version
###############################
# STEP 2: build a small image
###############################
FROM debian:11-slim
FROM debian:12-slim

# Upgrade
RUN apt-get update -y && apt-get install -y libssl-dev ca-certificates wget sqlite3 && rm -rf /var/lib/apt/lists/*
Expand Down
2 changes: 1 addition & 1 deletion mithril-relay/Dockerfile.ci
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Creates a docker image to run an executable built outside of the image
# This relies on the fact the mithril-relay executable has been built
# on a debian-compatible x86-64 environment
ARG DOCKER_IMAGE_FROM=debian:11-slim
ARG DOCKER_IMAGE_FROM=debian:12-slim
FROM $DOCKER_IMAGE_FROM

# Create appuser
Expand Down
4 changes: 2 additions & 2 deletions mithril-signer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
###############################
# STEP 1: build rust executable
###############################
FROM rust:bullseye AS rustbuilder
FROM rust:bookworm AS rustbuilder

# Create appuser
RUN adduser --no-create-home --disabled-password appuser
Expand Down Expand Up @@ -33,7 +33,7 @@ RUN /app/target/release/mithril-signer --version
###############################
# STEP 2: build a small image
###############################
FROM debian:11-slim
FROM debian:12-slim

# Args
ARG CARDANO_NODE_VERSION=10.1.4
Expand Down
2 changes: 1 addition & 1 deletion mithril-signer/Dockerfile.ci
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Creates a docker image to run an executable built outside of the image
# This relies on the fact the mithril-signer executable has been built
# on a debian-compatible x86-64 environment
ARG DOCKER_IMAGE_FROM=debian:11-slim
ARG DOCKER_IMAGE_FROM=debian:12-slim
FROM $DOCKER_IMAGE_FROM

# Create appuser
Expand Down
3 changes: 1 addition & 2 deletions mithril-test-lab/mithril-devnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ MITHRIL_NODE_DOCKER_BUILD_TYPE=ci ./devnet-run.sh
## from locally built binaries with a custom slim image used as Docker image source
### This configuration depends on the version of 'glibc' on your computer
### 'debian:12-slim': default value, works on Ubuntu 22.04
### 'debian:11-slim': works on Ubuntu 20.04
MITHRIL_NODE_DOCKER_CI_IMAGE_FROM=debian:11-slim MITHRIL_NODE_DOCKER_BUILD_TYPE=ci ./devnet-run.sh
MITHRIL_NODE_DOCKER_CI_IMAGE_FROM=debian:12-slim MITHRIL_NODE_DOCKER_BUILD_TYPE=ci ./devnet-run.sh

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

0 comments on commit e2a88ec

Please sign in to comment.