adimyth commented on issue #25899:
URL: https://github.com/apache/superset/issues/25899#issuecomment-1871891482

   @iFrozenPhoenix I tried building the image on an ARM machine with the 
following steps, it failed for me.
   
   1. Check the architecture of the machine
       ```bash
       dpkg --print-architecture
       arm64
       ```
   
       ```bash
       uname -m
       aarch64
       ```
   
   2. Clone the repository and set the build platform to arm64
       ```bash
       git clone https://github.com/apache/superset.git
   
       cd superset
       BUILDPLATFORM=arm64
       ```
   
   3. Build the docker image
       ```bash
       docker build -t superset-arm64 .
       ```
   
   Error log:
   ```bash
   [+] Building 125.7s (14/23)                                                  
                                                                                
                                                                                
                                                              docker:default
    => [internal] load build definition from Dockerfile                         
                                                                                
                                                                                
                                                                        6.5s
    => => transferring dockerfile: 5.78kB                                       
                                                                                
                                                                                
                                                                        0.0s
    => [internal] load .dockerignore                                            
                                                                                
                                                                                
                                                                        6.5s
    => => transferring context: 1.26kB                                          
                                                                                
                                                                                
                                                                        0.0s
    => [internal] load metadata for docker.io/library/python:3.9-slim-bookworm  
                                                                                
                                                                                
                                                                        1.4s
    => [internal] load metadata for docker.io/library/node:16-bookworm-slim     
                                                                                
                                                                                
                                                                        1.4s
    => [superset-node 1/7] FROM 
docker.io/library/node:16-bookworm-slim@sha256:89061680359f5d9103d24f0066e2c96a8018c24d5c4fe8eb8d59d16dd4ab64ba
                                                                                
                                                                                
         0.0s
    => [internal] load build context                                            
                                                                                
                                                                                
                                                                        0.7s
    => => transferring context: 463.22kB                                        
                                                                                
                                                                                
                                                                        0.7s
    => [lean  1/10] FROM 
docker.io/library/python:3.9-slim-bookworm@sha256:96be08c44307e781fd9ce8e05b49c969b4cb902ec23594f904739c58da3a09ed
                                                                                
                                                                                
             0.0s
    => CACHED [superset-node 2/7] RUN apt-get update -qq     && apt-get install 
-yqq --no-install-recommends         build-essential         python3            
                                                                                
                                                                        0.0s
    => CACHED [superset-node 3/7] WORKDIR /app/superset-frontend                
                                                                                
                                                                                
                                                                        0.0s
    => CACHED [superset-node 4/7] RUN 
--mount=type=bind,target=/frontend-mem-nag.sh,src=./docker/frontend-mem-nag.sh  
   /frontend-mem-nag.sh                                                         
                                                                                
                                  0.0s
    => CACHED [lean  2/10] WORKDIR /app                                         
                                                                                
                                                                                
                                                                        0.0s
    => CACHED [lean  3/10] RUN mkdir -p /app/pythonpath superset/static 
superset-frontend apache_superset.egg-info requirements     && useradd 
--user-group -d /app/superset_home -m --no-log-init --shell /bin/bash superset  
   && apt-get update -qq && apt-get install -yqq --no-install-recommends        
 build-  0.0s
    => CACHED [lean  4/10] COPY --chown=superset:superset setup.py MANIFEST.in 
README.md ./                                                                    
                                                                                
                                                                         0.0s
    => CACHED [lean  5/10] COPY --chown=superset:superset 
superset-frontend/package.json superset-frontend/                               
                                                                                
                                                                                
              0.0s
    => [superset-node 5/7] RUN 
--mount=type=bind,target=./package.json,src=./superset-frontend/package.json    
 
--mount=type=bind,target=./package-lock.json,src=./superset-frontend/package-lock.json
     npm ci                                                                     
                                117.0s
    => => # npm WARN deprecated fontsource-fira-code@4.0.0: Package relocated. 
Please install and migrate to @fontsource/fira-code.
    => => # npm WARN deprecated puppeteer@10.2.0: < 18.1.0 is no longer 
supported
    => => # npm WARN deprecated @babel/polyfill@7.12.1: 🚨 This package has been 
deprecated in favor of separate inclusion of a polyfill and regenerator-runtime 
(when needed). See the @babel/polyfill docs 
(https://babeljs.io/docs/en/babel-polyfill) for more information.
    => => # npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive 
security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
    => => # npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || 
>=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js 
environment. It is recommended you upgrade to 3.2.7 or 4.3.1. 
(https://github.com/visionmedia/debug/issues/797)
    => => # npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || 
>=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js 
environment. It is recommended you upgrade to 3.2.7 or 4.3.1. 
(https://github.com/visionmedia/debug/issues/797)
    => [lean  6/10] RUN 
--mount=type=bind,target=./requirements/local.txt,src=./requirements/local.txt  
   
--mount=type=bind,target=./requirements/development.txt,src=./requirements/development.txt
     
--mount=type=bind,target=./requirements/base.txt,src=./requirements/base.txt    
 --mount=type=cache,target  117.0s
    => => #   Preparing metadata (setup.py): finished with status 'done'
    => => # Collecting xlrd==2.0.1
    => => #   Using cached xlrd-2.0.1-py2.py3-none-any.whl (96 kB)
    => => # Requirement already satisfied: setuptools in 
/usr/local/lib/python3.9/site-packages (from celery==5.2.2->-r 
requirements/base.txt (line 43)) (58.1.0)
    => => # Building wheels for collected packages: apsw, bottleneck, 
cron-descriptor, func-timeout, pgsanity, pymeeus, python-geohash, shortid, 
wtforms-json, future, linear-tsv, mysqlclient, progress, pure-sasl, pydruid, 
python-ldap, thrift, unicodecsv, pyhive
    => => #   Building wheel for apsw (pyproject.toml): started
   ```
   
   And then it abruptly stopped with no followup logs or anything.
   
   Did it work for you? If so, can you please share the steps you followed?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org
For additional commands, e-mail: notifications-h...@superset.apache.org

Reply via email to