Skip to content

fix(docker): Docker image build fails on Ubuntu 24.04 due to removed libapr1 package #34776

@spbolton

Description

@spbolton

Problem Statement

The dotcms/dotcms-test Docker image build fails with exit code 100 when apt install is run in Stage 2 of the Dockerfile (dotCMS/src/main/docker/original/Dockerfile). The package libapr1 was removed from Ubuntu 24.04 Noble as part of the 64-bit time_t transition and replaced by libapr1t64. The build was previously passing due to Docker layer caching masking the issue — once the cache is cold (new CI runner, clean build), the error surfaces.

Platform: Docker build / CI
Affected file: dotCMS/src/main/docker/original/Dockerfile (Stage 2, FROM ubuntu:24.04)

Steps to Reproduce

  1. Perform a clean Docker build (no cached layers) of the dotcms-core Maven module
  2. Run: ./mvnw install -pl :dotcms-core -DskipTests
  3. Observe the Docker build fail with:
The command '/bin/sh -c apt update && apt upgrade -y && apt install -y --no-install-recommends ... libapr1 ...' returned a non-zero code: 100

Acceptance Criteria

  • libapr1 replaced with libapr1t64 in dotCMS/src/main/docker/original/Dockerfile
  • Docker image builds successfully from a cold cache on Ubuntu 24.04
  • No regression in container runtime behavior (Tomcat Native / APR still functional)

dotCMS Version

Latest from main branch

Severity

High - Major functionality broken

Links

NA

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions