Unverified Commit 846e10c7 authored by Nikita Titov's avatar Nikita Titov Committed by GitHub
Browse files

[ci] prefer curl to wget (#3928)

* Update test_r_package.sh

* Update dockerfile.gpu

* Update dockerfile-python

* Update setup.sh

* Update setup.sh
parent 7b47ab8f
...@@ -17,7 +17,7 @@ if [[ $OS_NAME == "macos" ]]; then ...@@ -17,7 +17,7 @@ if [[ $OS_NAME == "macos" ]]; then
if [[ $TASK == "swig" ]]; then if [[ $TASK == "swig" ]]; then
brew install swig brew install swig
fi fi
wget -q -O conda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh curl -sL -o conda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh
else # Linux else # Linux
if [[ $IN_UBUNTU_LATEST_CONTAINER == "true" ]]; then if [[ $IN_UBUNTU_LATEST_CONTAINER == "true" ]]; then
# fixes error "unable to initialize frontend: Dialog" # fixes error "unable to initialize frontend: Dialog"
...@@ -47,7 +47,6 @@ else # Linux ...@@ -47,7 +47,6 @@ else # Linux
locales \ locales \
netcat \ netcat \
unzip \ unzip \
wget \
zip zip
if [[ $COMPILER == "clang" ]]; then if [[ $COMPILER == "clang" ]]; then
sudo apt-get install --no-install-recommends -y \ sudo apt-get install --no-install-recommends -y \
...@@ -69,8 +68,8 @@ else # Linux ...@@ -69,8 +68,8 @@ else # Linux
sudo apt-get update sudo apt-get update
sudo apt-get install --no-install-recommends -y libboost1.74-dev ocl-icd-opencl-dev sudo apt-get install --no-install-recommends -y libboost1.74-dev ocl-icd-opencl-dev
cd $BUILD_DIRECTORY # to avoid permission errors cd $BUILD_DIRECTORY # to avoid permission errors
wget -q https://github.com/microsoft/LightGBM/releases/download/v2.0.12/AMD-APP-SDKInstaller-v3.0.130.136-GA-linux64.tar.bz2 curl -sL -o AMD-APP-SDKInstaller.tar.bz2 https://github.com/microsoft/LightGBM/releases/download/v2.0.12/AMD-APP-SDKInstaller-v3.0.130.136-GA-linux64.tar.bz2
tar -xjf AMD-APP-SDK*.tar.bz2 tar -xjf AMD-APP-SDKInstaller.tar.bz2
mkdir -p $OPENCL_VENDOR_PATH mkdir -p $OPENCL_VENDOR_PATH
mkdir -p $AMDAPPSDK_PATH mkdir -p $AMDAPPSDK_PATH
sh AMD-APP-SDK*.sh --tar -xf -C $AMDAPPSDK_PATH sh AMD-APP-SDK*.sh --tar -xf -C $AMDAPPSDK_PATH
...@@ -83,8 +82,7 @@ else # Linux ...@@ -83,8 +82,7 @@ else # Linux
apt-get install --no-install-recommends -y \ apt-get install --no-install-recommends -y \
curl \ curl \
lsb-release \ lsb-release \
software-properties-common \ software-properties-common
wget
if [[ $COMPILER == "clang" ]]; then if [[ $COMPILER == "clang" ]]; then
apt-get install --no-install-recommends -y \ apt-get install --no-install-recommends -y \
clang \ clang \
...@@ -97,7 +95,7 @@ else # Linux ...@@ -97,7 +95,7 @@ else # Linux
cmake cmake
fi fi
if [[ $SETUP_CONDA != "false" ]]; then if [[ $SETUP_CONDA != "false" ]]; then
wget -q -O conda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh curl -sL -o conda.sh https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
fi fi
fi fi
......
...@@ -81,7 +81,7 @@ if [[ $OS_NAME == "macos" ]]; then ...@@ -81,7 +81,7 @@ if [[ $OS_NAME == "macos" ]]; then
sudo tlmgr --verify-repo=none update --self sudo tlmgr --verify-repo=none update --self
sudo tlmgr --verify-repo=none install inconsolata helvetic sudo tlmgr --verify-repo=none install inconsolata helvetic
wget -q https://cran.r-project.org/bin/macosx/R-${R_MAC_VERSION}.pkg -O R.pkg curl -sL https://cran.r-project.org/bin/macosx/R-${R_MAC_VERSION}.pkg -o R.pkg
sudo installer \ sudo installer \
-pkg $(pwd)/R.pkg \ -pkg $(pwd)/R.pkg \
-target / -target /
......
...@@ -10,11 +10,10 @@ RUN apt-get update && \ ...@@ -10,11 +10,10 @@ RUN apt-get update && \
build-essential \ build-essential \
gcc \ gcc \
g++ \ g++ \
git \ git && \
wget && \
# python environment # python environment
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \ curl -sL https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -o conda.sh && \
/bin/bash Miniconda3-latest-Linux-x86_64.sh -f -b -p $CONDA_DIR && \ /bin/bash conda.sh -f -b -p $CONDA_DIR && \
export PATH="$CONDA_DIR/bin:$PATH" && \ export PATH="$CONDA_DIR/bin:$PATH" && \
conda config --set always_yes yes --set changeps1 no && \ conda config --set always_yes yes --set changeps1 no && \
# lightgbm # lightgbm
......
...@@ -38,7 +38,6 @@ RUN apt-get update && \ ...@@ -38,7 +38,6 @@ RUN apt-get update && \
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
build-essential \ build-essential \
curl \ curl \
wget \
bzip2 \ bzip2 \
ca-certificates \ ca-certificates \
libglib2.0-0 \ libglib2.0-0 \
...@@ -70,7 +69,7 @@ ENV PATH $CONDA_DIR/bin:$PATH ...@@ -70,7 +69,7 @@ ENV PATH $CONDA_DIR/bin:$PATH
# Install miniconda # Install miniconda
RUN echo "export PATH=$CONDA_DIR/bin:"'$PATH' > /etc/profile.d/conda.sh && \ RUN echo "export PATH=$CONDA_DIR/bin:"'$PATH' > /etc/profile.d/conda.sh && \
wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \ curl -sL https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -o ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p $CONDA_DIR && \ /bin/bash ~/miniconda.sh -b -p $CONDA_DIR && \
rm ~/miniconda.sh rm ~/miniconda.sh
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment