Skip to content

Commit 096f5d0

Browse files
authored
Fix conda build CondaToSNonInteractiveError issue [skip ci] (#963)
conda now requires accepting the default channel to proceed. Otherwise it would fail ``` [2025-07-15T19:41:39.043Z] CondaToSNonInteractiveError: Terms of Service have not been accepted for the following channels. Please accept or remove them before proceeding: [2025-07-15T19:41:39.043Z] • https://repo.anaconda.com/pkgs/main [2025-07-15T19:41:39.043Z] • https://repo.anaconda.com/pkgs/r ``` explicitly accept terms to avoid failing `CondaToSNonInteractiveError`. This has been verified in both local dev and internal CI Signed-off-by: Peixin Li <[email protected]>
1 parent fed0d5c commit 096f5d0

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

ci/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86
4141
&& mkdir /root/.conda \
4242
&& bash Miniconda3-latest-Linux-x86_64.sh -b \
4343
&& rm -f Miniconda3-latest-Linux-x86_64.sh \
44+
&& conda tos accept --override-channels -c conda-forge -c defaults \
4445
&& conda init && conda update -n base conda \
4546
&& conda install -n base conda-libmamba-solver \
4647
&& conda config --set solver libmamba

docker/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ RUN wget --quiet \
9191
&& mkdir /root/.conda \
9292
&& bash Miniconda3-py38_4.10.3-Linux-x86_64.sh -b \
9393
&& rm -f Miniconda3-py38_4.10.3-Linux-x86_64.sh \
94+
&& conda tos accept --override-channels -c conda-forge -c defaults \
9495
&& conda init
9596

9697
# install cuDF dependency, Fall back to use cudf 22.04 due to issue:

docker/Dockerfile.python

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-py38_4.10.3-Linu
4242
&& mkdir /root/.conda \
4343
&& bash Miniconda3-py38_4.10.3-Linux-x86_64.sh -b \
4444
&& rm -f Miniconda3-py38_4.10.3-Linux-x86_64.sh \
45+
&& conda tos accept --override-channels -c conda-forge -c defaults \
4546
&& conda init
4647

4748
# install cuML

0 commit comments

Comments
 (0)