Skip to content

Fix HBase Docker build failures due to outdated buster repositories#4827

Merged
li-boxuan merged 1 commit intomasterfrom
fix/hbase-docker-buster-repositories
Aug 10, 2025
Merged

Fix HBase Docker build failures due to outdated buster repositories#4827
li-boxuan merged 1 commit intomasterfrom
fix/hbase-docker-buster-repositories

Conversation

@li-boxuan
Copy link
Copy Markdown
Member

Description

This PR fixes HBase test failures caused by Docker build issues where the apt-get update command was failing with exit code 100.

Problem

The HBase tests were failing with the following error:

org.testcontainers.containers.ContainerFetchException: Can't get Docker image
...
Caused by: com.github.dockerjava.api.exception.DockerClientException: Could not build image: The command '/bin/sh -c apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y socat' returned a non-zero code: 100

Root Cause

The issue was caused by using outdated base images:

  • openjdk:8-jre-buster in the HBase Dockerfile
  • debian:buster-slim in the dist Dockerfile

Debian Buster reached end-of-life and its repositories are no longer accessible via standard URLs, causing apt-get update to fail.

Solution

  • Updated HBase Dockerfile base image from openjdk:8-jre-buster to openjdk:8-jre-bullseye
  • Updated dist Dockerfile builder stage from debian:buster-slim to debian:bullseye-slim
  • Updated default HBase version from 2.5.0 to 2.6.0 to match the version used in HBaseContainer.java

These changes maintain JDK8 compatibility while using more recent and supported Debian repositories.

…bullseye

  to fix apt-get update failures (buster repositories are no longer accessible)
- Update default HBase version from 2.5.0 to 2.6.0 to match the version
  used in HBaseContainer.java
- Update dist builder image from debian:buster-slim to debian:bullseye-slim
  to prevent similar apt-get issues

Signed-off-by: Boxuan Li <liboxuan@connect.hku.hk>
@li-boxuan li-boxuan linked an issue Aug 9, 2025 that may be closed by this pull request
Copy link
Copy Markdown
Member

@porunov porunov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @li-boxuan !

@li-boxuan li-boxuan merged commit e5b44c7 into master Aug 10, 2025
213 checks passed
@li-boxuan li-boxuan deleted the fix/hbase-docker-buster-repositories branch August 10, 2025 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HBase build is failing

2 participants