Skip to content

Commit ff02166

Browse files
[CI] Get rid of warnings in dockers using preffered ENV format
1 parent 626ddef commit ff02166

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

.github/docker/ubuntu-20.04.Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
FROM registry.hub.docker.com/library/ubuntu@sha256:f2034e7195f61334e6caff6ecf2e965f92d11e888309065da85ff50c617732b8
1212

1313
# Set environment variables
14-
ENV OS ubuntu
15-
ENV OS_VER 20.04
16-
ENV NOTTY 1
17-
ENV DEBIAN_FRONTEND noninteractive
14+
ENV OS=ubuntu
15+
ENV OS_VER=20.04
16+
ENV NOTTY=1
17+
ENV DEBIAN_FRONTEND=noninteractive
1818

1919
# Base development packages
2020
ARG BASE_DEPS="\
@@ -65,7 +65,7 @@ RUN mkdir -p --mode 777 /opt/umf/
6565
COPY third_party/requirements.txt /opt/umf/requirements.txt
6666

6767
# Add a new (non-root) 'test_user'
68-
ENV USER test_user
69-
ENV USERPASS pass
68+
ENV USER=test_user
69+
ENV USERPASS=pass
7070
RUN useradd -m -u 1001 "${USER}" -g sudo -p "$(mkpasswd ${USERPASS})"
7171
USER test_user

.github/docker/ubuntu-22.04.Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
FROM registry.hub.docker.com/library/ubuntu@sha256:e6173d4dc55e76b87c4af8db8821b1feae4146dd47341e4d431118c7dd060a74
1212

1313
# Set environment variables
14-
ENV OS ubuntu
15-
ENV OS_VER 22.04
16-
ENV NOTTY 1
17-
ENV DEBIAN_FRONTEND noninteractive
14+
ENV OS=ubuntu
15+
ENV OS_VER=22.04
16+
ENV NOTTY=1
17+
ENV DEBIAN_FRONTEND=noninteractive
1818

1919
# Base development packages
2020
# It seems that libtool is not directly needed
@@ -66,7 +66,7 @@ COPY third_party/requirements.txt /opt/umf/requirements.txt
6666
RUN pip3 install --no-cache-dir -r /opt/umf/requirements.txt
6767

6868
# Add a new (non-root) 'test_user'
69-
ENV USER test_user
70-
ENV USERPASS pass
69+
ENV USER=test_user
70+
ENV USERPASS=pass
7171
RUN useradd -m -u 1001 "${USER}" -g sudo -p "$(mkpasswd ${USERPASS})"
7272
USER test_user

.github/docker/ubuntu-24.04.Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
FROM registry.hub.docker.com/library/ubuntu@sha256:72297848456d5d37d1262630108ab308d3e9ec7ed1c3286a32fe09856619a782
1212

1313
# Set environment variables
14-
ENV OS ubuntu
15-
ENV OS_VER 24.04
16-
ENV NOTTY 1
17-
ENV DEBIAN_FRONTEND noninteractive
14+
ENV OS=ubuntu
15+
ENV OS_VER=24.04
16+
ENV NOTTY=1
17+
ENV DEBIAN_FRONTEND=noninteractive
1818

1919
# Base development packages
2020
ARG BASE_DEPS="\
@@ -60,7 +60,7 @@ COPY third_party/requirements.txt /opt/umf/requirements.txt
6060
RUN pip3 install --no-cache-dir --break-system-packages -r /opt/umf/requirements.txt
6161

6262
# Add a new (non-root) 'test_user'
63-
ENV USER test_user
64-
ENV USERPASS pass
63+
ENV USER=test_user
64+
ENV USERPASS=pass
6565
RUN useradd -m "${USER}" -g sudo -p "$(mkpasswd ${USERPASS})"
6666
USER test_user

0 commit comments

Comments
 (0)