buerokratt / NoOps

Bürokratt deployment scripts, automated tests, etc
MIT License
1 stars 8 forks source link

Allow rebuilding of Buerokratt RASA Docker images #108

Open RayDNoper opened 4 months ago

RayDNoper commented 4 months ago

Necessary for developing/testing ServiceModule on Apple Silicon

Acceptance Criteria

varmoh commented 3 months ago

Build on dev fails. @1AhmedYasser has the error log


=> ERROR [conda 12/14] RUN conda env create     --file=env-3.5.2.yaml     --prefix /opt/venv                                                                                                                                                                               63.8s 
------                                                                                                                                                                                                                                                                            
 > [conda 12/14] RUN conda env create     --file=env-3.5.2.yaml     --prefix /opt/venv:                                                                                                                                                                                           
1.754 Channels:                                                                                                                                                                                                                                                                   
1.754  - conda-forge                                                                                                                                                                                                                                                              
1.754  - linux-64                                                                                                                                                                                                                                                                 
1.754  - noarch                                                                                                                                                                                                                                                                   
1.754 Platform: linux-64
1.754 Collecting package metadata (repodata.json): ...working... done
45.40 Solving environment: ...working... done
50.74 
50.74 Downloading and Extracting Packages: ...working... done
50.74 Preparing transaction: ...working... done
51.03 Verifying transaction: ...working... done
52.63 Executing transaction: ...working... done
55.66 Installing pip dependencies: ...working... Pip subprocess error:
57.23 ERROR: tensorflow_addons-0.19.0-cp310-cp310-linux_aarch64.whl is not a supported wheel on this platform.
57.23 
57.23 Ran pip subprocess with arguments:
57.23 ['/opt/venv/bin/python', '-m', 'pip', 'install', '-U', '-r', '/app/condaenv.0uhld2s4.requirements.txt', '--exists-action=b']
57.23 Pip subprocess output:
57.23 
57.23 failed
57.23 
57.23 CondaEnvException: Pip failed
57.23 
------
Dockerfile:63
--------------------
  62 |     COPY ./tensorflow-addons-aarch64/whl /tmp/tfa-whl
  63 | >>> RUN conda env create \
  64 | >>>     --file=$ENV_FILE \
  65 | >>>     --prefix $VENV
  66 |     RUN rm -rf /tmp/*
--------------------
ERROR: failed to solve: process "/bin/sh -c conda env create     --file=$ENV_FILE     --prefix $VENV" did not complete successfully: exit code: 1
varmoh commented 3 months ago

Done, image build works