~samiam/MaraDNS

ref: 3.5.0021 MaraDNS/Docker-stuff/Dockerfile -rw-r--r-- 1.1 KiB
ca00f282 — Sam Trenholme MaraDNS release 3.5.0021 4 months ago
                                                                                
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
# This is a Dockerfile to make a Docker image to test installing MaraDNS on
# a fresh Ubuntu 20.04 virtual machine.
# This image can also run the "one source of truth" tests

FROM ubuntu:20.04
COPY killall /usr/bin/
COPY rg32hash.tar.gz /tmp/
COPY run.tests.sh /

RUN apt-get -y update && apt-get -y install unattended-upgrades && \
        unattended-upgrades -d && apt-get -y install gcc && \
        apt-get -y install git && \
	apt-get -y install make && cd /tmp && git clone \
	https://github.com/samboy/MaraDNS && cd MaraDNS && \
	./configure && make && make install && export FLAGS=-O3 && \
	cd deadwood-* && cd src/ && ./make.version.h && \
	make -f Makefile.sl6 && cp Deadwood /usr/local/sbin/ && \
	apt-get -y install net-tools && \
	cp /tmp/MaraDNS/tools/askmara-tcp /usr/bin/ && \
	cp /tmp/MaraDNS/tools/OneSourceOfTruth/do.osot.tests /tmp && \
	rm -fr /tmp/MaraDNS && cd /tmp && tar xvzf rg32hash.tar.gz && \
	cd rg32hash-source && make && cp rg32hash /usr/bin && \
	mkdir /etc/deadwood/ && apt-get -y install valgrind && \
	apt-get -y install clang && apt-get -y install diffutils 

CMD ["/bin/bash"]