Dockerfile 3.27 KB
Newer Older
1
FROM @SOURCE_IMAGE@
2
3
MAINTAINER BIND 9 Developers <bind9-dev@isc.org>
ENV DEBIAN_FRONTEND noninteractive
4
ENV LIBUV_VERSION 1.33.1
5
6
7
ENV ATF_VERSION 0.21
ENV LUTOK_VERSION 0.4
ENV KYUA_VERSION 0.13
Ondřej Surý's avatar
Ondřej Surý committed
8
RUN apt-get -y update
9
RUN apt-get -y dist-upgrade
10
RUN apt-get -y install curl
11
RUN if [ -n "@CLANG@" ]; then \
Ondřej Surý's avatar
Ondřej Surý committed
12
	curl -sSL -o /etc/apt/trusted.gpg.d/llvm.asc https://apt.llvm.org/llvm-snapshot.gpg.key; \
13
14
	echo "deb http://apt.llvm.org/@VERSION@/ llvm-toolchain-@VERSION@ main" > /etc/apt/sources.list.d/llvm.list; \
	echo "deb http://apt.llvm.org/@VERSION@/ llvm-toolchain-@VERSION@-8 main" >> /etc/apt/sources.list.d/llvm.list; \
15
	echo "deb http://apt.llvm.org/@VERSION@/ llvm-toolchain-@VERSION@-9 main" >> /etc/apt/sources.list.d/llvm.list; \
16
17
18
	fi
RUN apt-get -y update
RUN apt-get -y dist-upgrade
Witold Krecicki's avatar
Witold Krecicki committed
19
20
21
22
23
RUN apt-get -y install		\
	autoconf		\
	automake		\
	autotools-dev		\
	bash-completion		\
Ondřej Surý's avatar
Ondřej Surý committed
24
	bc			\
25
	bear			\
Witold Krecicki's avatar
Witold Krecicki committed
26
27
28
	bison			\
	build-essential		\
	ccache			\
29
	clang			\
30
	coccinelle		\
31
	cppcheck		\
32
	docbook-xsl		\
33
	gdb			\
Witold Krecicki's avatar
Witold Krecicki committed
34
	git			\
35
	idn2			\
Witold Krecicki's avatar
Witold Krecicki committed
36
	libcap2-dev		\
Ondřej Surý's avatar
Ondřej Surý committed
37
	libcmocka-dev		\
Witold Krecicki's avatar
Witold Krecicki committed
38
39
40
	libdb-dev		\
	libgeoip-dev		\
	libidn2-0-dev		\
41
	libio-socket-inet6-perl	\
Witold Krecicki's avatar
Witold Krecicki committed
42
	libjson-c-dev		\
43
	libjson-perl		\
Witold Krecicki's avatar
Witold Krecicki committed
44
45
46
47
48
49
50
51
52
	libkrb5-dev		\
	libldap2-dev		\
	liblmdb-dev		\
	liblua5.1-0-dev		\
	liblua5.2-dev		\
	libnet-dns-perl		\
	libtool			\
	libsqlite3-dev		\
	libssl-dev		\
53
	libxml-simple-perl	\
Witold Krecicki's avatar
Witold Krecicki committed
54
	libxml2-dev		\
55
	libxml2-utils		\
Witold Krecicki's avatar
Witold Krecicki committed
56
57
58
59
	net-tools		\
	perl			\
	pkg-config		\
	procps			\
60
61
62
	python			\
	python-ply		\
	python-dnspython	\
Witold Krecicki's avatar
Witold Krecicki committed
63
64
65
	python3			\
	python3-ply		\
	python3-dnspython	\
66
67
	python3-sphinx		\
	python3-sphinx-rtd-theme	\
Witold Krecicki's avatar
Witold Krecicki committed
68
	sudo			\
69
	xsltproc		\
70
	zlib1g-dev
71
RUN if [ "@VERSION@" != "jessie" ]; then apt-get -y install libmaxminddb-dev libuv1-dev; fi
72
73
RUN if [ -n "@CLANG@" ]; then \
	apt-get -y install \
74
75
76
77
78
79
		llvm-9 \
		lldb-9 \
		clang-9 \
		clang-tools-9 \
		clang-format-9 \
		clang-tidy-9; \
80
	fi
81
82
83
RUN if [ "@VERSION@" = "sid" ]; then \
	apt-get -y install \
		llvm \
84
		lldb \
85
86
87
		clang \
		clang-tools \
		clang-format \
88
		clang-tidy; \
89
	fi
90
RUN if [ -n "@UNCRUSTIFY@" ]; then apt-get -y install uncrustify; fi
91
RUN if [ -n "@DNSTAP@" ]; then apt-get -y install libfstrm-dev libprotobuf-c-dev protobuf-c-compiler; fi
92
93
RUN if [ "@SOFTHSM@" -ge "2" ]; then apt-get -y install libsofthsm2 softhsm2; fi
RUN if [ "@SOFTHSM@" -lt "2" ]; then apt-get -y install libsofthsm softhsm; fi
94
95
RUN if [ "@VERSION@" = "jessie" ]; then curl -sSL https://github.com/libuv/libuv/archive/v$LIBUV_VERSION.tar.gz | tar -xz -C /usr/src; fi
RUN if [ "@VERSION@" = "jessie" ]; then cd /usr/src/libuv-$LIBUV_VERSION && ./autogen.sh && ./configure --prefix /usr && make && make install; fi
96
RUN curl -sSL https://github.com/jmmv/atf/releases/download/atf-$ATF_VERSION/atf-$ATF_VERSION.tar.gz | tar -xz -C /usr/src
97
98
RUN cd /usr/src/atf-$ATF_VERSION && autoreconf -fi && ./configure --prefix /usr && make && make install
RUN ldconfig
99
RUN curl -sSL https://github.com/jmmv/lutok/releases/download/lutok-$LUTOK_VERSION/lutok-$LUTOK_VERSION.tar.gz | tar -xz -C /usr/src
100
101
RUN cd /usr/src/lutok-$LUTOK_VERSION && autoreconf -fi && ./configure --prefix /usr && make && make install
RUN ldconfig
102
RUN curl -sSL https://github.com/jmmv/kyua/releases/download/kyua-$KYUA_VERSION/kyua-$KYUA_VERSION.tar.gz | tar -xz -C /usr/src
103
RUN cd /usr/src/kyua-$KYUA_VERSION && autoreconf -fi && ./configure --prefix /usr && make && make install
104
RUN ldconfig