blob: d958a5011d27924cbae9ad43eaaca955842d0da6 (
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
44
45
46
47
48
49
50
|
FROM archlinux/base
RUN dd if=/dev/zero of=/root/loop.img bs=1024 count=1048576
RUN pacman -Syu --noconfirm \
&& pacman -S --noconfirm \
base \
base-devel \
git \
expac \
jshon \
&& (pacman -Sc --noconfirm || true)
RUN useradd -r -d / packer \
&& cd /tmp \
&& sudo -u packer git clone https://aur.archlinux.org/packer-color.git \
&& cd packer-color \
&& sudo -u packer makepkg \
&& pacman --noconfirm -U packer-color-*.pkg.tar.xz \
&& ln -s /usr/bin/packer-color /usr/local/bin/packer \
&& cp /usr/bin/packer-color /usr/local/bin/user-packer \
&& sed -i -e "s|makepkg \$MAKEPKGOPTS |chown -R packer:packer \$dir; makepkg \$MAKEPKGOPTS |g" \
/usr/local/bin/user-packer \
&& sed -i -e "s|makepkg \$MAKEPKGOPTS --asroot -f|sudo -u packer makepkg \$MAKEPKGOPTS -f|g" \
/usr/local/bin/user-packer \
&& cd - \
&& rm -rf /tmp/packer-color
RUN pacman -Syy \
&& mkdir /.npm \
&& chmod 777 /.npm \
&& user-packer -S --noconfirm \
python \
python-pip \
python-systemd \
python-dbus \
nginx-mainline \
ustreamer \
socat \
htmlhint \
eslint \
&& rm -rf /.npm \
&& (pacman -Sc --noconfirm || true)
COPY testenv/requirements.txt requirements.txt
RUN pip install -r requirements.txt
RUN mkdir -p /etc/kvmd/nginx
CMD /bin/bash
|