ibpsa / project1-boptest

Building Optimization Performance Tests
Other
107 stars 69 forks source link

Pinning docker image OS to linux version for Apple Silicon support #608

Closed dhblum closed 8 months ago

dhblum commented 8 months ago

As reported in https://github.com/ibpsa/project1-boptest/pull/607, this address an error about a missing x86_64 runtime file during the conda process within the test case Docker container when not pinned on Apple Silicon machines.

mattrobmattrob commented 8 months ago

Error for future reference:

$ docker-compose up
...
1.589 2024-01-22 16:51:21 (54.1 MB/s) - '/home/user/miniconda.sh' saved [74403966/74403966]
1.589
1.600 PREFIX=/home/user/miniconda
1.816 Unpacking payload ...
1.822 rosetta error: failed to open elf at /lib64/ld-linux-x86-64.so.2
1.822  /home/user/miniconda.sh: line 352:    38 Exit 141                extract_range $boundary1 $boundary2
1.822         39 Trace/breakpoint trap   | "$CONDA_EXEC" constructor --extract-tarball --prefix "$PREFIX"
------
failed to solve: process "/bin/sh -c cd $HOME && \twget https://repo.anaconda.com/miniconda/Miniconda3-py310_23.1.0-1-Linux-x86_64.sh -O $HOME/miniconda.sh && \t/bin/bash $HOME/miniconda.sh -b -p $HOME/miniconda && \t. miniconda/bin/activate && \tconda update -n base -c defaults conda && \tconda create --name pyfmi3 python=3.10 -y && \tconda activate pyfmi3 && \tconda install -c conda-forge pyfmi=2.11 -y && \tpip install flask-restful==0.3.9 werkzeug==2.2.3 && \tconda install pandas==1.5.3 flask_cors==3.0.10 matplotlib==3.7.1 requests==2.28.1" did not complete successfully: exit code: 133