Skip to content

Commit 145b933

Browse files
authored
Merge pull request #1429 from lukaszstolarczuk/dockers
[CI] Dockers minor changes
2 parents c932813 + caf7b14 commit 145b933

File tree

3 files changed

+24
-20
lines changed

3 files changed

+24
-20
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: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@
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
20-
# It seems that libtool is not directly needed
21-
# but it is still required when Building UMF
20+
# 'libtool' is required when hwloc is statically linked and built from source
2221
ARG BASE_DEPS="\
2322
build-essential \
2423
cmake \
@@ -37,10 +36,13 @@ ARG TEST_DEPS="\
3736
valgrind"
3837

3938
# Miscellaneous for our builds/CI (optional)
39+
# 'pkg-config' is added only on one Ubuntu image to test both:
40+
# find_library and pkg-config methods of finding libraries.
4041
ARG MISC_DEPS="\
4142
automake \
4243
clang \
4344
lcov \
45+
pkg-config \
4446
python3-pip \
4547
sudo \
4648
whois"
@@ -63,7 +65,7 @@ COPY third_party/requirements.txt /opt/umf/requirements.txt
6365
RUN pip3 install --no-cache-dir -r /opt/umf/requirements.txt
6466

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

.github/docker/ubuntu-24.04.Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,18 @@
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
20+
# 'libtool' is required when hwloc is statically linked and built from source
2021
ARG BASE_DEPS="\
2122
build-essential \
2223
cmake \
2324
git \
25+
libtool \
2426
wget"
2527

2628
# UMF's dependencies
@@ -60,7 +62,7 @@ COPY third_party/requirements.txt /opt/umf/requirements.txt
6062
RUN pip3 install --no-cache-dir --break-system-packages -r /opt/umf/requirements.txt
6163

6264
# Add a new (non-root) 'test_user'
63-
ENV USER test_user
64-
ENV USERPASS pass
65+
ENV USER=test_user
66+
ENV USERPASS=pass
6567
RUN useradd -m "${USER}" -g sudo -p "$(mkpasswd ${USERPASS})"
6668
USER test_user

0 commit comments

Comments
 (0)