Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run stride docker on M2 #69

Open
elcolie opened this issue Nov 24, 2023 · 0 comments
Open

Unable to run stride docker on M2 #69

elcolie opened this issue Nov 24, 2023 · 0 comments

Comments

@elcolie
Copy link

elcolie commented Nov 24, 2023

M2 OSX 14.1.1

Version

4.25.2 (129061)

Engine: 24.0.6

Compose: v2.23.0-desktop.1

Credential Helper: v0.7.0

Kubernetes: v1.28.2

Step to reproduce:

  1. checkout stride repo
  2. docker compose build --no-cache

Errors:

❯ docker compose build --no-cache
[+] Building 3.2s (14/22)                                                                                                                             docker:desktop-linux
 => [stride internal] load build definition from Dockerfile.stride                                                                                                    0.0s
 => => transferring dockerfile: 2.25kB                                                                                                                                0.0s
 => [stride internal] load .dockerignore                                                                                                                              0.0s
 => => transferring context: 2B                                                                                                                                       0.0s
 => [stride internal] load metadata for docker.io/devitocodes/bases:cpu-gcc                                                                                           2.3s
 => [stride internal] load metadata for docker.io/continuumio/miniconda3:latest                                                                                       2.2s
 => [stride auth] devitocodes/bases:pull token for registry-1.docker.io                                                                                               0.0s
 => [stride auth] continuumio/miniconda3:pull token for registry-1.docker.io                                                                                          0.0s
 => CACHED [stride anaconda 1/1] FROM docker.io/continuumio/miniconda3:latest@sha256:5ee0ed861bce8f67acb0a3e8a416891781db54302d93bf20a3c6301d7683d7b9                 0.0s
 => CACHED [stride builder 1/6] FROM docker.io/devitocodes/bases:cpu-gcc@sha256:0d9b27e3a265f2b54bca77afdb91f725530eded47f043b66d33adbfc2be059b0                      0.0s
 => [stride internal] load build context                                                                                                                              0.0s
 => => transferring context: 21.27kB                                                                                                                                  0.0s
 => [stride user 2/9] RUN mkdir -p /app &&     groupadd -r -g 1000 app &&     useradd -r -u 1000 -g app -d /app -s /sbin/nologin -c "Docker image user" app &&     c  0.4s
 => [stride builder 2/6] COPY --from=anaconda /opt/conda /opt/conda                                                                                                   0.6s
 => [stride builder 3/6] ADD . /app/stride                                                                                                                            0.0s
 => [stride builder 4/6] RUN rm -rf /app/stride/.git && rm -rf /app/stride/legacy                                                                                     0.1s
 => ERROR [stride builder 5/6] RUN . /opt/conda/etc/profile.d/conda.sh &&     conda update -n base -c defaults conda &&     conda env create -f /app/stride/environm  0.1s
------
 > [stride builder 5/6] RUN . /opt/conda/etc/profile.d/conda.sh &&     conda update -n base -c defaults conda &&     conda env create -f /app/stride/environment.yml &&     conda activate stride &&     /opt/conda/envs/stride/bin/pip install -e /app/stride/ &&     conda install -c conda-forge mayavi:
0.136 /bin/sh: 9: /opt/conda/bin/conda: not found
------
failed to solve: process "/bin/sh -c . /opt/conda/etc/profile.d/conda.sh &&     conda update -n base -c defaults conda &&     conda env create -f /app/stride/environment.yml &&     conda activate stride &&     /opt/conda/envs/stride/bin/pip install -e /app/stride/ &&     conda install -c conda-forge mayavi" did not complete successfully: exit code: 127
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant