You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (Jira)" <ji...@apache.org> on 2024/07/29 21:32:00 UTC
[jira] [Resolved] (ARTEMIS-4960) Ubuntu package name change preventing Docker image build
[ https://issues.apache.org/jira/browse/ARTEMIS-4960?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Bertram resolved ARTEMIS-4960.
-------------------------------------
Fix Version/s: 2.36.0
Resolution: Fixed
> Ubuntu package name change preventing Docker image build
> --------------------------------------------------------
>
> Key: ARTEMIS-4960
> URL: https://issues.apache.org/jira/browse/ARTEMIS-4960
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Reporter: Justin Bertram
> Assignee: Justin Bertram
> Priority: Major
> Fix For: 2.36.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> The {{eclipse-temurin:21-jre}} and {{eclipse-temurin:21-jdk}} Docker tags were recently updated to point to {{21-jre-noble}} and {{21-jdk-noble}} respectively. In this new version of Ubuntu the {{libaio1}} package was renamed to {{libaio1t64}} so the relevant Docker files need to be updated. Here's the error I was getting when attempting to build before updating the package name:
> {noformat}
> [+] Building 5.0s (11/19) docker-container:eloquent_stonebraker
> => [internal] load build definition from Dockerfile-ubuntu-21-jre 0.0s
> => => transferring dockerfile: 2.04kB 0.0s
> => [linux/arm64 internal] load metadata for docker.io/library/eclipse-temurin:21-jre 0.1s
> => [linux/amd64 internal] load metadata for docker.io/library/eclipse-temurin:21-jre 0.2s
> => [internal] load .dockerignore 0.0s
> => => transferring context: 2B 0.0s
> => [internal] load build context 0.0s
> => => transferring context: 7.68kB 0.0s
> => [linux/arm64 1/7] FROM docker.io/library/eclipse-temurin:21-jre@sha256:33c033fbc177c46ae097fc01575e6a0df665dbecc49d1cff2227b969672697cb 0.0s
> => => resolve docker.io/library/eclipse-temurin:21-jre@sha256:33c033fbc177c46ae097fc01575e6a0df665dbecc49d1cff2227b969672697cb 0.0s
> => [linux/amd64 1/7] FROM docker.io/library/eclipse-temurin:21-jre@sha256:33c033fbc177c46ae097fc01575e6a0df665dbecc49d1cff2227b969672697cb 0.0s
> => => resolve docker.io/library/eclipse-temurin:21-jre@sha256:33c033fbc177c46ae097fc01575e6a0df665dbecc49d1cff2227b969672697cb 0.0s
> => CACHED [linux/arm64 2/7] WORKDIR /opt 0.0s
> => CANCELED [linux/arm64 3/7] RUN groupadd -g 1001 -r artemis && useradd -r -u 1001 -g artemis artemis && apt-get -qq -o=Dpkg::Use-Pty=0 update && apt-get -qq -o=Dpkg::Use-Pty=0 install -y libaio1 && rm -rf /var/lib/apt/lists/* 4.8s
> => CACHED [linux/amd64 2/7] WORKDIR /opt 0.0s
> => ERROR [linux/amd64 3/7] RUN groupadd -g 1001 -r artemis && useradd -r -u 1001 -g artemis artemis && apt-get -qq -o=Dpkg::Use-Pty=0 update && apt-get -qq -o=Dpkg::Use-Pty=0 install -y libaio1 && rm -rf /var/lib/apt/lists/* 4.8s
> ------
> > [linux/amd64 3/7] RUN groupadd -g 1001 -r artemis && useradd -r -u 1001 -g artemis artemis && apt-get -qq -o=Dpkg::Use-Pty=0 update && apt-get -qq -o=Dpkg::Use-Pty=0 install -y libaio1 && rm -rf /var/lib/apt/lists/*:
> 0.062 useradd warning: artemis's uid 1001 is greater than SYS_UID_MAX 999
> 4.719 E: Package 'libaio1' has no installation candidate
> ------
> Dockerfile-ubuntu-21-jre:32
> --------------------
> 31 | # add user and group for artemis
> 32 | >>> RUN groupadd -g 1001 -r artemis && useradd -r -u 1001 -g artemis artemis \
> 33 | >>> && apt-get -qq -o=Dpkg::Use-Pty=0 update && \
> 34 | >>> apt-get -qq -o=Dpkg::Use-Pty=0 install -y libaio1 && \
> 35 | >>> rm -rf /var/lib/apt/lists/*
> 36 |
> --------------------
> ERROR: failed to solve: process "/bin/bash -o pipefail -c groupadd -g 1001 -r artemis && useradd -r -u 1001 -g artemis artemis && apt-get -qq -o=Dpkg::Use-Pty=0 update && apt-get -qq -o=Dpkg::Use-Pty=0 install -y libaio1 && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100{noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@activemq.apache.org
For additional commands, e-mail: issues-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact