@@ -7,10 +7,7 @@ RUN apt-get update \
77 && apt-get -qq install -y --no-install-recommends \
88 apt-utils \
99 wget \
10- && rm -rf /var/lib/apt/lists/*
11-
1210# Utilities
13- RUN apt-get update \
1411 && apt-get -qq install -y --no-install-recommends \
1512 locales \
1613 ca-certificates \
@@ -29,11 +26,7 @@ RUN apt-get update \
2926 mpich \
3027 valgrind \
3128 jq \
32- && rm -rf /var/lib/apt/lists/*
33-
3429# Compilers, autotools
35- RUN apt-get update \
36- && apt-get -qq install -y --no-install-recommends \
3730 build-essential \
3831 pkg-config \
3932 autotools-dev \
@@ -46,38 +39,13 @@ RUN apt-get update \
4639 clang-tools-15 \
4740 gcc-12 \
4841 g++-12 \
49- && rm -rf /var/lib/apt/lists/*
50-
5142# Python
52- # NOTE: sudo pip install is necessary to get differentiated installations of
53- # python binary components for multiple python3 variants, --ignore-installed
54- # makes it ignore local versions of the packages if your home directory is
55- # mapped into the container and contains the same libraries
56- RUN apt-get update \
57- && apt-get -qq install -y --no-install-recommends \
58- libffi-dev \
43+ libffi-dev \
5944 python3.11-dev \
6045 python3-pip \
6146 python3-setuptools \
6247 python3-wheel \
63- && rm -rf /var/lib/apt/lists/*
64-
65- RUN for PY in python3.11 ; do \
66- sudo $PY -m pip install --upgrade --ignore-installed \
67- --break-system-packages \
68- "markupsafe==2.0.0" \
69- coverage cffi ply six pyyaml "jsonschema>=2.6,<4.0" \
70- sphinx sphinx-rtd-theme sphinxcontrib-spelling; \
71- sudo mkdir -p /usr/lib/${PY}/dist-packages; \
72- echo ../site-packages >/tmp/site-packages.pth; \
73- sudo mv /tmp/site-packages.pth /usr/lib/${PY}/dist-packages; \
74- done ; \
75- apt-get -qq purge -y python3-pip \
76- && apt-get -qq autoremove -y
77-
7848# Other deps
79- RUN apt-get update \
80- && apt-get -qq install -y --no-install-recommends \
8149 libsodium-dev \
8250 libzmq3-dev \
8351 libjansson-dev \
@@ -93,11 +61,7 @@ RUN apt-get update \
9361 libevent-dev \
9462 libarchive-dev \
9563 libpam-dev \
96- && rm -rf /var/lib/apt/lists/*
97-
9864# Testing utils and libs
99- RUN apt-get update \
100- && apt-get -qq install -y --no-install-recommends \
10165 faketime \
10266 libfaketime \
10367 pylint \
@@ -106,24 +70,36 @@ RUN apt-get update \
10670 aspell \
10771 aspell-en \
10872 time \
109- && rm -rf /var/lib/apt/lists/*
73+ && rm -rf /var/lib/apt/lists/* \
74+ # NOTE: sudo pip install is necessary to get differentiated installations of
75+ # python binary components for multiple python3 variants, --ignore-installed
76+ # makes it ignore local versions of the packages if your home directory is
77+ # mapped into the container and contains the same libraries
78+ ; for PY in python3.11 ; do \
79+ sudo $PY -m pip install --upgrade --ignore-installed \
80+ --break-system-packages \
81+ "markupsafe==2.0.0" \
82+ coverage cffi ply six pyyaml "jsonschema>=2.6,<4.0" \
83+ sphinx sphinx-rtd-theme sphinxcontrib-spelling; \
84+ sudo mkdir -p /usr/lib/${PY}/dist-packages; \
85+ echo ../site-packages >/tmp/site-packages.pth; \
86+ sudo mv /tmp/site-packages.pth /usr/lib/${PY}/dist-packages; \
87+ done ; \
88+ apt-get -qq purge -y python3-pip \
89+ && apt-get -qq autoremove -y
11090
11191RUN locale-gen en_US.UTF-8
11292
11393# NOTE: luaposix installed by rocks due to Ubuntu bug: #1752082 https://bugs.launchpad.net/ubuntu/+source/lua-posix/+bug/1752082
11494RUN luarocks install luaposix
11595
11696# Install caliper by hand for now:
117- RUN mkdir caliper \
118- && cd caliper \
119- && wget -O - https://github.com/LLNL/Caliper/archive/v1.7.0.tar.gz | tar xvz --strip-components 1 \
120- && mkdir build \
121- && cd build \
122- && CC=gcc CXX=g++ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DWITH_GOTCHA=Off \
123- && make -j 4 \
124- && make install \
125- && cd ../.. \
126- && rm -rf caliper
97+ COPY scripts/fetch-and-build-caliper.sh /fetch-and-build-caliper.sh
98+ RUN /fetch-and-build-caliper.sh
99+
100+ # Install catch by hand for now:
101+ COPY scripts/fetch-and-build-catch.sh /fetch-and-build-catch.sh
102+ RUN /fetch-and-build-catch.sh
127103
128104# Install openpmix, prrte
129105RUN mkdir prrte \
0 commit comments