forked from dyninst/dyninst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.ubuntu
51 lines (45 loc) · 1.5 KB
/
Dockerfile.ubuntu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
ARG version
FROM ubuntu:${version}
ARG build_elfutils="no"
#####################################################
#
# Base container for an Ubuntu environment
#
# The dependencies are purposefully unversioned
# so that the distribution-default ones are used.
#
# If the distro's elfutils is too old, it can be
# built by using `--build-arg build_elfutils=yes`.
#
#####################################################
LABEL maintainer="@hainest,@vsoch"
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=America/Chicago
RUN apt-get -qq update && \
apt-get -qq install -y --no-install-recommends \
build-essential \
cmake \
libboost-atomic-dev \
libboost-chrono-dev \
libboost-date-time-dev \
libboost-filesystem-dev \
libboost-thread-dev \
libboost-timer-dev \
libtbb-dev \
gettext \
bzip2 \
zlib1g-dev \
m4 \
libiberty-dev \
pkg-config \
clang \
libomp-dev
COPY docker/build_elfutils.sh .
COPY docker/dependencies.versions .
RUN if test x"${build_elfutils}" = xyes; then \
apt install -qq -y --no-install-recommends libcurl4-openssl-dev wget libzstd-dev libbz2-dev liblzma-dev; \
bash build_elfutils.sh; \
else \
apt install -qq -y --no-install-recommends elfutils libelf-dev libdw-dev libdebuginfod-dev; \
fi \
&& rm -f build_elfutils.sh