Skip to content

Commit fb9201a

Browse files
authored
[CI] use key=value form for Dockerfile ENV statements (dmlc#10685)
1 parent e02b376 commit fb9201a

16 files changed

+24
-24
lines changed

tests/ci_build/Dockerfile.aarch64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ENV PATH=/opt/miniforge/bin:$PATH
1616
ENV CC=/opt/rh/gcc-toolset-10/root/usr/bin/gcc
1717
ENV CXX=/opt/rh/gcc-toolset-10/root/usr/bin/c++
1818
ENV CPP=/opt/rh/gcc-toolset-10/root/usr/bin/cpp
19-
ENV GOSU_VERSION 1.10
19+
ENV GOSU_VERSION=1.10
2020

2121
# Create new Conda environment
2222
COPY conda_env/aarch64_test.yml /scripts/

tests/ci_build/Dockerfile.clang_tidy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM nvidia/cuda:$CUDA_VERSION_ARG-devel-ubuntu22.04
33
ARG CUDA_VERSION_ARG
44

55
# Environment
6-
ENV DEBIAN_FRONTEND noninteractive
6+
ENV DEBIAN_FRONTEND=noninteractive
77

88
# Install all basic requirements
99
RUN \
@@ -26,7 +26,7 @@ RUN \
2626
RUN \
2727
pip3 install pyyaml
2828

29-
ENV GOSU_VERSION 1.10
29+
ENV GOSU_VERSION=1.10
3030

3131
# Install lightweight sudo (not bound to TTY)
3232
RUN set -ex; \

tests/ci_build/Dockerfile.cpu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM ubuntu:22.04
22

33
# Environment
4-
ENV DEBIAN_FRONTEND noninteractive
4+
ENV DEBIAN_FRONTEND=noninteractive
55
SHELL ["/bin/bash", "-c"] # Use Bash as shell
66

77
# Install all basic requirements
@@ -20,8 +20,8 @@ ENV CC=gcc-10
2020
ENV CXX=g++-10
2121
ENV CPP=cpp-10
2222

23-
ENV GOSU_VERSION 1.10
24-
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/
23+
ENV GOSU_VERSION=1.10
24+
ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
2525

2626
# Install gRPC
2727
RUN git clone -b v1.49.1 https://github.com/grpc/grpc.git \

tests/ci_build/Dockerfile.gpu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ARG RAPIDS_VERSION_ARG
55
ARG NCCL_VERSION_ARG
66

77
# Environment
8-
ENV DEBIAN_FRONTEND noninteractive
8+
ENV DEBIAN_FRONTEND=noninteractive
99
SHELL ["/bin/bash", "-c"] # Use Bash as shell
1010

1111
# Install all basic requirements
@@ -33,8 +33,8 @@ RUN \
3333
mamba clean --all --yes && \
3434
conda run --no-capture-output -n gpu_test pip install buildkite-test-collector
3535

36-
ENV GOSU_VERSION 1.10
37-
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/
36+
ENV GOSU_VERSION=1.10
37+
ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
3838

3939
# Install lightweight sudo (not bound to TTY)
4040
RUN set -ex; \

tests/ci_build/Dockerfile.gpu_build_r_rockylinux8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ run \
4242
wget -nv -nc https://cmake.org/files/v3.29/cmake-3.29.5-linux-x86_64.sh --no-check-certificate && \
4343
bash cmake-3.29.5-linux-x86_64.sh --skip-license --prefix=/usr
4444

45-
ENV GOSU_VERSION 1.10
45+
ENV GOSU_VERSION=1.10
4646

4747
# Install lightweight sudo (not bound to TTY)
4848
RUN set -ex; \

tests/ci_build/Dockerfile.gpu_build_rockylinux8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ENV CXX=/opt/rh/gcc-toolset-10/root/usr/bin/c++
3434
ENV CPP=/opt/rh/gcc-toolset-10/root/usr/bin/cpp
3535
ENV CUDAHOSTCXX=/opt/rh/gcc-toolset-10/root/usr/bin/c++
3636

37-
ENV GOSU_VERSION 1.10
37+
ENV GOSU_VERSION=1.10
3838

3939
# Install RMM (Patch out -Werror)
4040
RUN git clone -b v${RAPIDS_VERSION_ARG}.00 https://github.com/rapidsai/rmm.git --recurse-submodules --depth 1 && \

tests/ci_build/Dockerfile.gpu_dev_ver

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ARG RAPIDS_VERSION_ARG
88
ARG NCCL_VERSION_ARG
99

1010
# Environment
11-
ENV DEBIAN_FRONTEND noninteractive
11+
ENV DEBIAN_FRONTEND=noninteractive
1212
SHELL ["/bin/bash", "-c"] # Use Bash as shell
1313

1414
# Install all basic requirements
@@ -36,8 +36,8 @@ RUN \
3636
mamba clean --all --yes && \
3737
conda run --no-capture-output -n gpu_test pip install buildkite-test-collector
3838

39-
ENV GOSU_VERSION 1.10
40-
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/
39+
ENV GOSU_VERSION=1.10
40+
ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
4141

4242
# Install lightweight sudo (not bound to TTY)
4343
RUN set -ex; \

tests/ci_build/Dockerfile.i386

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM i386/debian:sid
22

3-
ENV DEBIAN_FRONTEND noninteractive
3+
ENV DEBIAN_FRONTEND=noninteractive
44
SHELL ["/bin/bash", "-c"]
55

66
RUN \

tests/ci_build/Dockerfile.jvm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ ENV CPP=/opt/rh/gcc-toolset-10/root/usr/bin/cpp
2727
# Install Python packages
2828
RUN pip install numpy pytest scipy scikit-learn wheel kubernetes awscli
2929

30-
ENV GOSU_VERSION 1.10
30+
ENV GOSU_VERSION=1.10
3131

3232
# Install lightweight sudo (not bound to TTY)
3333
RUN set -ex; \

tests/ci_build/Dockerfile.jvm_cross

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ARG JDK_VERSION=8
33
ARG SPARK_VERSION=3.5.1
44

55
# Environment
6-
ENV DEBIAN_FRONTEND noninteractive
6+
ENV DEBIAN_FRONTEND=noninteractive
77

88
# Install all basic requirements
99
RUN \
@@ -34,7 +34,7 @@ ENV PATH=/opt/miniforge/bin:/opt/spark/bin:/opt/maven/bin:$PATH
3434
# Install Python packages
3535
RUN pip install numpy scipy pandas scikit-learn
3636

37-
ENV GOSU_VERSION 1.10
37+
ENV GOSU_VERSION=1.10
3838

3939
# Install lightweight sudo (not bound to TTY)
4040
RUN set -ex; \

0 commit comments

Comments
 (0)