[ 
https://issues.apache.org/jira/browse/HBASE-29849?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Kyle Purtell updated HBASE-29849:
----------------------------------------
    Summary: create-release do-release-docker.sh only works for x86_64  (was: 
create-release do-docker-build only works for x86_64)

> create-release do-release-docker.sh only works for x86_64
> ---------------------------------------------------------
>
>                 Key: HBASE-29849
>                 URL: https://issues.apache.org/jira/browse/HBASE-29849
>             Project: HBase
>          Issue Type: Bug
>          Components: build
>            Reporter: Andrew Kyle Purtell
>            Assignee: Andrew Kyle Purtell
>            Priority: Major
>
> The docker build script that is part of create-release in docker mode has a 
> hardwired path assuming "amd64" architecture, so it necessarily fails when 
> the create-release script is invoked on Apple silicon. 
> {noformat}
>  > [2/6] RUN DEBIAN_FRONTEND=noninteractive apt-get -qq -y update   && 
> DEBIAN_FRONTEND=noninteractive apt-get -qq -y install --no-install-recommends 
>     curl='7.81.0-*'     git='1:2.34.1-*'     gnupg='2.2.27-*'     
> libcurl4-openssl-dev='7.81.0-*'     libxml2-dev='2.9.13+dfsg-*'     
> libxml2-utils='2.9.13+dfsg-*'     lsof='4.93.2+dfsg-*'     
> openjdk-8-jdk='8u*'     openjdk-17-jdk='17*'     python3-pip='22.0.2+dfsg-*'  
>    subversion='1.14.1-*'     wget='1.21.2-*'     patch='2.7.6-*'   && apt-get 
> clean   && rm -rf /var/lib/apt/lists/*   && update-alternatives --set java 
> /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   && pip3 install 
> --no-cache-dir python-dateutil==2.8.2:
> 6178.2 update-alternatives: using 
> /usr/lib/jvm/java-17-openjdk-arm64/bin/jconsole to provide /usr/bin/jconsole 
> (jconsole) in auto mode
> 6178.2 Processing triggers for libc-bin (2.35-0ubuntu3.11) ...
> 6178.2 Processing triggers for ca-certificates (20240203~22.04.1) ...
> 6178.2 Updating certificates in /etc/ssl/certs...
> 6178.4 0 added, 0 removed; done.
> 6178.4 Running hooks in /etc/ca-certificates/update.d...
> 6178.4 
> 6178.5 done.
> 6178.5 done.
> 6178.6 update-alternatives: error: alternative 
> /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java for java not registered; not 
> setting
> #5 6178.6 update-alternatives: error: alternative 
> /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java for java not registered; not 
> setting
> #5 ERROR: process "/bin/sh -c DEBIAN_FRONTEND=noninteractive apt-get -qq -y 
> update   && DEBIAN_FRONTEND=noninteractive apt-get -qq -y install 
> --no-install-recommends     curl='7.81.0-*'     git='1:2.34.1-*'     
> gnupg='2.2.27-*'     libcurl4-openssl-dev='7.81.0-*'     
> libxml2-dev='2.9.13+dfsg-*'     libxml2-utils='2.9.13+dfsg-*'     
> lsof='4.93.2+dfsg-*'     openjdk-8-jdk='8u*'     openjdk-17-jdk='17*'     
> python3-pip='22.0.2+dfsg-*'     subversion='1.14.1-*'     wget='1.21.2-*'     
> patch='2.7.6-*'   && apt-get clean   && rm -rf /var/lib/apt/lists/*   && 
> update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 
>   && pip3 install --no-cache-dir python-dateutil==2.8.2" did not complete 
> successfully: exit code: 2
> {noformat}
> Note the "amd64" in this output.
> I can try to fix this with path globbing.
> If that doesn't work, we can clone the Dockerfile, make a version for 
> aarch64, and add a parameter to do-release-docker that allows one to specify 
> which Dockerfile to use.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to