File tree Expand file tree Collapse file tree 3 files changed +24
-20
lines changed Expand file tree Collapse file tree 3 files changed +24
-20
lines changed Original file line number Diff line number Diff line change 11
11
FROM registry.hub.docker.com/library/ubuntu@sha256:f2034e7195f61334e6caff6ecf2e965f92d11e888309065da85ff50c617732b8
12
12
13
13
# 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
18
18
19
19
# Base development packages
20
20
ARG BASE_DEPS="\
@@ -65,7 +65,7 @@ RUN mkdir -p --mode 777 /opt/umf/
65
65
COPY third_party/requirements.txt /opt/umf/requirements.txt
66
66
67
67
# 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
70
70
RUN useradd -m -u 1001 "${USER}" -g sudo -p "$(mkpasswd ${USERPASS})"
71
71
USER test_user
Original file line number Diff line number Diff line change 11
11
FROM registry.hub.docker.com/library/ubuntu@sha256:e6173d4dc55e76b87c4af8db8821b1feae4146dd47341e4d431118c7dd060a74
12
12
13
13
# 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
18
18
19
19
# 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
22
21
ARG BASE_DEPS="\
23
22
build-essential \
24
23
cmake \
@@ -37,10 +36,13 @@ ARG TEST_DEPS="\
37
36
valgrind"
38
37
39
38
# 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.
40
41
ARG MISC_DEPS="\
41
42
automake \
42
43
clang \
43
44
lcov \
45
+ pkg-config \
44
46
python3-pip \
45
47
sudo \
46
48
whois"
@@ -63,7 +65,7 @@ COPY third_party/requirements.txt /opt/umf/requirements.txt
63
65
RUN pip3 install --no-cache-dir -r /opt/umf/requirements.txt
64
66
65
67
# 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
68
70
RUN useradd -m -u 1001 "${USER}" -g sudo -p "$(mkpasswd ${USERPASS})"
69
71
USER test_user
Original file line number Diff line number Diff line change 11
11
FROM registry.hub.docker.com/library/ubuntu@sha256:72297848456d5d37d1262630108ab308d3e9ec7ed1c3286a32fe09856619a782
12
12
13
13
# 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
18
18
19
19
# Base development packages
20
+ # 'libtool' is required when hwloc is statically linked and built from source
20
21
ARG BASE_DEPS="\
21
22
build-essential \
22
23
cmake \
23
24
git \
25
+ libtool \
24
26
wget"
25
27
26
28
# UMF's dependencies
@@ -60,7 +62,7 @@ COPY third_party/requirements.txt /opt/umf/requirements.txt
60
62
RUN pip3 install --no-cache-dir --break-system-packages -r /opt/umf/requirements.txt
61
63
62
64
# 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
65
67
RUN useradd -m "${USER}" -g sudo -p "$(mkpasswd ${USERPASS})"
66
68
USER test_user
You can’t perform that action at this time.
0 commit comments