@@ -12,7 +12,7 @@ FROM registry.hub.docker.com/library/ubuntu@sha256:72297848456d5d37d1262630108ab
1212
1313# Set environment variables
1414ENV OS ubuntu
15- ENV OS_VER 24 .04
15+ ENV OS_VER 20 .04
1616ENV NOTTY 1
1717ENV DEBIAN_FRONTEND noninteractive
1818
@@ -29,15 +29,28 @@ ARG UMF_DEPS="\
2929
3030# Dependencies for tests (optional)
3131ARG TEST_DEPS="\
32- libnuma-dev"
32+ libnuma-dev \
33+ libhwloc-dev \
34+ libtbb-dev\
35+ valgrind"
3336
3437# Miscellaneous for our builds/CI (optional)
3538ARG MISC_DEPS="\
3639 automake \
3740 clang \
41+ g++-11 \
3842 python3-pip \
3943 sudo \
40- whois"
44+ whois \
45+ lcov"
46+
47+ # Hwloc installation dependencies
48+ ARG HWLOC_DEPS="\
49+ dos2unix \
50+ libtool"
51+
52+ # Copy hwloc
53+ COPY .github/scripts/install_hwloc.sh /opt/umf/install_hwloc.sh
4154
4255# Update and install required packages
4356RUN apt-get update \
@@ -46,34 +59,21 @@ RUN apt-get update \
4659 ${UMF_DEPS} \
4760 ${TEST_DEPS} \
4861 ${MISC_DEPS} \
62+ ${HWLOC_DEPS} \
63+ && dos2unix /opt/umf/install_hwloc.sh \
64+ && bash -x /opt/umf/install_hwloc.sh \
65+ && ldconfig \
4966 && rm -rf /var/lib/apt/lists/* \
5067 && apt-get clean all
5168
52- # Install hwloc
53- COPY .github/scripts/install_hwloc.sh /opt/umf/install_hwloc.sh
54- RUN apt-get update \
55- && apt-get install -y dos2unix libtool \
56- && dos2unix /opt/umf/install_hwloc.sh \
57- && bash -x /opt/umf/install_hwloc.sh \
58- && ldconfig \
59- && rm -f /opt/umf/install_hwloc.sh
60-
61- # Install valgrind
62- RUN apt-get update && \
63- apt-get install -y valgrind clang cmake hwloc libhwloc-dev libnuma-dev libtbb-dev
64-
65- # Install lcov
66- RUN apt-get update && \
67- apt-get install lcov -y
68-
6969# Prepare a dir (accessible by anyone)
7070RUN mkdir -p --mode 777 /opt/umf/
7171
7272# Additional dependencies (installed via pip)
7373COPY third_party/requirements.txt /opt/umf/requirements.txt
7474RUN pip3 install --no-cache-dir --break-system-packages -r /opt/umf/requirements.txt
7575
76- # Add a new (non-root) 'test_user'
76+ # Add a new (non-root) 'test_user'
7777ENV USER test_user
7878ENV USERPASS pass
7979RUN useradd -m "${USER}" -g sudo -p "$(mkpasswd ${USERPASS})"
0 commit comments