Bug: Building a Cassandra website fails when running on arm64
Status: Resolved
Priority: Normal
Resolution: Fixed
Created: 13/Sep/23 21:09
Resolved: 14/Sep/23 13:16

It seems to me that building a Cassandra website is not supported when running on arm64 (tested on Mac M1). Running the build command throws the following exceptions below. 
Docker Version 4.23.0 (120376), the experimental feature "use Rosetta for x86/amd64 emulation on Apple Silicon" is enabled.


{code:java}
m@m1 cassandra-website % ./run.sh website build
Server Docker Engine version: 20.10.21

Executing docker command:
docker build -f ./site-content/Dockerfile -t apache/cassandra-website:latest  ./site-content/
[+] Building 7.2s (12/23)                                                                                                                                                                                                                                                                                               
 => [internal] load build definition from Dockerfile                                                                                                                                                                                                                                                               0.0s
 => => transferring dockerfile: 5.03kB                                                                                                                                                                                                                                                                             0.0s
 => [internal] load .dockerignore                                                                                                                                                                                                                                                                                  0.0s
 => => transferring context: 2B                                                                                                                                                                                                                                                                                    0.0s
 => [internal] load metadata for docker.io/library/ubuntu:18.04                                                                                                                                                                                                                                                    0.6s
 => [ 1/19] FROM docker.io/library/ubuntu:18.04@sha256:152dc042452c496007f07ca9127571cb9c29697f42acbfad72324b2bb2e43c98                                                                                                                                                                                            0.0s
 => [internal] load build context                                                                                                                                                                                                                                                                                  0.0s
 => => transferring context: 42B                                                                                                                                                                                                                                                                                   0.0s
 => CACHED [ 2/19] RUN echo "Building with arguments:"     && echo " - BUILD_USER_ARG=build"     && echo " - UID_ARG=1000"     && echo " - GID_ARG=1000"     && echo " - NODE_VERSION_ARG=v12.16.2"     && echo " - ENTR_VERSION_ARG=4.6"                                                                          0.0s
 => CACHED [ 3/19] RUN apt update &&     apt install -y         openjdk-8-jdk         openjdk-11-jdk         python3         python3-pip         ant         ant-optional         make         git         gpg         wget         sudo                                                                           0.0s
 => CACHED [ 4/19] RUN apt-get install -y python-markupsafe                                                                                                                                                                                                                                                        0.0s
 => [ 5/19] RUN apt-get install -y python-jinja2                                                                                                                                                                                                                                                                   2.0s
 => [ 6/19] RUN pip3 install requests                                                                                                                                                                                                                                                                              1.9s
 => [ 7/19] RUN wget https://nodejs.org/download/release/v12.16.2/node-v12.16.2-linux-x64.tar.gz &&     tar -C /usr/local --strip-components 1 -xzf node-v12.16.2-linux-x64.tar.gz &&     rm node-v12.16.2-linux-x64.tar.gz                                                                                        2.4s 
 => ERROR [ 8/19] RUN npm i -g @antora/cli@2.3 @antora/site-generator-default@2.3 @djencks/asciidoctor-openblock                                                                                                                                                                                                   0.3s 
------                                                                                                                                                                                                                                                                                                                  
 > [ 8/19] RUN npm i -g @antora/cli@2.3 @antora/site-generator-default@2.3 @djencks/asciidoctor-openblock:                                                                                                                                                                                                              
#11 0.304 qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory                                                                                                                                                                                                                          
------                                                                                                                                                                                                                                                                                                                  
executor failed running [/bin/sh -c npm i -g @antora/cli@2.3 @antora/site-generator-default@2.3 @djencks/asciidoctor-openblock]: exit code: 255                                                                                                                                                                         
Error: No such object: apache/cassandra-website:latest
{code}
{code:java}
entr: cannot create kqueue: Function not implemented

https://docs.docker.com/desktop/troubleshoot/known-issues/
{code}