summaryrefslogtreecommitdiff
path: root/testenv/Dockerfile
blob: e630ebbd36c1f6ca8104889b9965bac8c18c1748 (plain)
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
FROM archlinux/base

RUN dd if=/dev/zero of=/root/loop.img bs=1024 count=1048576

RUN pacman -Syu --noconfirm \
	&& pacman -S --needed --noconfirm \
		base \
		base-devel \
		git \
		expac \
		jshon \
	&& (pacman -Sc --noconfirm || true)

RUN useradd -r -c "Packer build user" -s /sbin/nologin packer \
	&& cd /tmp \
	&& sudo -u packer git clone https://aur.archlinux.org/packer-kit.git \
	&& cd packer-kit \
	&& sudo -u packer makepkg \
	&& pacman --noconfirm -U packer-kit-*.pkg.tar.xz \
	&& cd - \
	&& rm -rf /tmp/packer-kit

RUN pacman -Syy \
	&& mkdir /.npm /home/packer \
	&& chmod 777 /.npm /home/packer \
	&& packer-user -S --needed --noconfirm \
		python \
		python-pip \
		python-tox \
		python-systemd \
		python-dbus \
		python-mako \
		nginx-mainline \
		ustreamer \
		socat \
		htmlhint \
		eslint \
	&& rm -rf /.npm /home/packer \
	&& (pacman -Sc --noconfirm || true)

RUN mkdir -p /etc/kvmd/nginx

CMD /bin/bash