rapidsai / miniforge-cuda

https://hub.docker.com/r/rapidsai/miniforge-cuda/
12 stars 9 forks source link

Use `&&` in with `RUN` commands #60

Closed jakirkham closed 6 months ago

jakirkham commented 6 months ago

Make sure each statement completes successfully before running the next.

jakirkham commented 6 months ago

Seeing this failure on CI

#10 [stage-0 5/8] RUN   umask g+ws &&   mamba install -y -n base python="3.9"  &&   mamba update --all -y -n base &&   find /opt/conda -follow -type f -name '*.a' -delete &&   find /opt/conda -follow -type f -name '*.pyc' -delete &&   conda clean -afy
#10 8.557 
#10 8.557 Looking for: ['python=3.9']
#10 8.557 
#10 8.557 Could not solve for environment specs
#10 8.557 The following packages are incompatible
#10 8.557 ├─ python 3.9**  is requested and can be installed;
#10 8.557 └─ truststore is not installable because it requires
#10 8.557    └─ python >=3.10  but there are no viable options
#10 8.557       ├─ python [3.10.0|3.10.1|...|3.12.2] conflicts with any installable versions previously reported;
#10 8.557       └─ python 3.12.0rc3 would require
#10 8.557          └─ _python_rc, which does not exist (perhaps a missing channel).
#10 ERROR: process "/bin/sh -c umask g+ws &&   mamba install -y -n base python=\"${PYTHON_VERSION}\"  &&   mamba update --all -y -n base &&   find /opt/conda -follow -type f -name '*.a' -delete &&   find /opt/conda -follow -type f -name '*.pyc' -delete &&   conda clean -afy" did not complete successfully: exit code: 1
------
 > [stage-0 5/8] RUN   umask g+ws &&   mamba install -y -n base python="3.9"  &&   mamba update --all -y -n base &&   find /opt/conda -follow -type f -name '*.a' -delete &&   find /opt/conda -follow -type f -name '*.pyc' -delete &&   conda clean -afy:
8.557 Looking for: ['python=3.9']
8.557 
8.557 Could not solve for environment specs
8.557 The following packages are incompatible
8.557 ├─ python 3.9**  is requested and can be installed;
8.557 └─ truststore is not installable because it requires
8.557    └─ python >=3.10  but there are no viable options
8.557       ├─ python [3.10.0|3.10.1|...|3.12.2] conflicts with any installable versions previously reported;
8.557       └─ python 3.12.0rc3 would require
8.557          └─ _python_rc, which does not exist (perhaps a missing channel).
------
Dockerfile:21
--------------------
  20 |     
  21 | >>> RUN \
  22 | >>>   # Ensure new files/dirs have group write/setgid permissions
  23 | >>>   umask g+ws && \
  24 | >>>   # install expected Python version
  25 | >>>   mamba install -y -n base python="${PYTHON_VERSION}"  && \
  26 | >>>   mamba update --all -y -n base && \
  27 | >>>   find /opt/conda -follow -type f -name '*.a' -delete && \
  28 | >>>   find /opt/conda -follow -type f -name '*.pyc' -delete && \
  29 | >>>   conda clean -afy
  30 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c umask g+ws &&   mamba install -y -n base python=\"${PYTHON_VERSION}\"  &&   mamba update --all -y -n base &&   find /opt/conda -follow -type f -name '*.a' -delete &&   find /opt/conda -follow -type f -name '*.pyc' -delete &&   conda clean -afy" did not complete successfully: exit code: 1
jakirkham commented 6 months ago

Think this is related to the recent update: https://github.com/rapidsai/miniforge-cuda/pull/58

Going to go ahead and revert that for now so we can fix the images here (and the RAPIDS Docker images downstream of this)

We can investigate a proper fix in a follow up

raydouglass commented 6 months ago

54 resolves this, so closing this PR