Skip to content

Apache DataFusion SQL Query Engine

ARROW-4321: [CI] Setup conda-forge channel globally in docker containers

Krisztián Szűcs40ea975e3006
diff --git a/ci/docker_install_conda.sh b/ci/docker_install_conda.sh
index 427ee76e8e..73c7162b98 100755
--- a/ci/docker_install_conda.sh
+++ b/ci/docker_install_conda.sh
@@ -27,3 +27,16 @@ rm /tmp/miniconda.sh
ln -s ${CONDA_PREFIX}/etc/profile.d/conda.sh /etc/profile.d/conda.sh
echo ". ${CONDA_PREFIX}/etc/profile.d/conda.sh" >> ~/.bashrc
echo "conda activate base" >> ~/.bashrc
+
+# Configure conda
+source $MINICONDA/etc/profile.d/conda.sh
+conda config --set show_channel_urls True
+
+# Help with SSL timeouts to S3
+conda config --set remote_connect_timeout_secs 12
+
+# Setup conda-forge
+conda config --add channels conda-forge
+
+# Update packages
+conda update --all -q -y
diff --git a/ci/travis_install_conda.sh b/ci/travis_install_conda.sh
index ade6392ce2..49a2f21ef6 100755
--- a/ci/travis_install_conda.sh
+++ b/ci/travis_install_conda.sh
@@ -67,7 +67,6 @@ else
# Help with SSL timeouts to S3
conda config --set remote_connect_timeout_secs 12
- conda config --add channels https://repo.continuum.io/pkgs/free
conda config --add channels conda-forge
fi
diff --git a/dev/lint/Dockerfile b/dev/lint/Dockerfile
index 71d7ec85a8..c7901e1f90 100644
--- a/dev/lint/Dockerfile
+++ b/dev/lint/Dockerfile
@@ -24,7 +24,7 @@ RUN apt-get install -y -q \
clang-tidy \
iwyu
-RUN conda install -c conda-forge flake8 && \
+RUN conda install flake8 && \
conda clean --all -y
# https://bugs.launchpad.net/ubuntu/+source/iwyu/+bug/1769334