From 3879447743394032865c45b4ce58183c8a54a874 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Mon, 30 Sep 2024 20:25:16 -0700 Subject: [PATCH] try creating a new conda environment --- .github/workflows/test-notebooks.yml | 8 +++++--- Dockerfile | 6 +++--- context/entrypoint.sh | 6 ++++-- dockerhub-readme.md | 2 +- raft-ann-bench/README.md | 2 +- raft-ann-bench/cpu/Dockerfile | 7 ++----- raft-ann-bench/gpu/Dockerfile | 5 ++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/test-notebooks.yml b/.github/workflows/test-notebooks.yml index 9e0cff24..764e0be1 100644 --- a/.github/workflows/test-notebooks.yml +++ b/.github/workflows/test-notebooks.yml @@ -67,7 +67,7 @@ jobs: steps: - name: Install required tools run: | - mamba install -n base --freeze-installed \ + mamba install -n rapids --freeze-installed \ curl \ git - name: Install gha-tools @@ -88,12 +88,14 @@ jobs: rapids-logger "nvidia-smi" nvidia-smi - name: Test notebooks - run: /home/rapids/test_notebooks.py -i /home/rapids/notebooks -o /home/rapids/notebooks_output + run: | + . /opt/conda/etc/profile.d/conda.sh; conda activate rapids + /home/rapids/test_notebooks.py -i /home/rapids/notebooks -o /home/rapids/notebooks_output - name: Install awscli if: '!cancelled()' run: | PATH="$PATH:$GHA_TOOLS_DIR" - rapids-mamba-retry install -n base awscli + rapids-mamba-retry install -n rapids awscli - uses: aws-actions/configure-aws-credentials@v4 if: '!cancelled()' with: diff --git a/Dockerfile b/Dockerfile index 2c8beb83..f3b4a3a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -57,7 +57,7 @@ conda config --show-sources conda list --show-channel-urls # Install RAPIDS -mamba install -y -n base \ +mamba env create -y -n rapids \ "rapids=${RAPIDS_VER}.*" \ "python=${PYTHON_VER}.*" \ "cuda-version=${CUDA_VER%.*}.*" \ @@ -90,12 +90,12 @@ COPY --from=dependencies --chown=rapids /test_notebooks_dependencies.yaml test_n COPY --from=dependencies --chown=rapids /notebooks /home/rapids/notebooks RUN <> /etc/bash.bashrc +echo ". /opt/conda/etc/profile.d/conda.sh; conda activate rapids" >> /etc/bash.bashrc EOF # we need perl temporarily for the remaining benchmark perl scripts @@ -27,10 +27,7 @@ RUN apt-get install perl -y # an older conda with newer packages still works well # ref: https://github.com/rapidsai/ci-imgs/issues/185 RUN <> /etc/bash.bashrc +echo ". /opt/conda/etc/profile.d/conda.sh; conda activate rapids" >> /etc/bash.bashrc EOF # we need perl temporarily for the remaining benchmark perl scripts RUN apt-get install perl -y RUN <