mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 09:10:30 +08:00
don't use packer-kit
This commit is contained in:
parent
692dbcac11
commit
47d7e4f234
@ -2,40 +2,39 @@ FROM archlinux/base
|
|||||||
|
|
||||||
RUN dd if=/dev/zero of=/root/loop.img bs=1024 count=1048576
|
RUN dd if=/dev/zero of=/root/loop.img bs=1024 count=1048576
|
||||||
|
|
||||||
|
RUN echo "Server = http://mirror.yandex.ru/archlinux/\$repo/os/\$arch" > /etc/pacman.d/mirrorlist
|
||||||
|
|
||||||
RUN pacman -Syu --noconfirm \
|
RUN pacman -Syu --noconfirm \
|
||||||
&& pacman -S --needed --noconfirm \
|
&& pacman -S --needed --noconfirm \
|
||||||
base \
|
base \
|
||||||
base-devel \
|
base-devel \
|
||||||
|
vim \
|
||||||
git \
|
git \
|
||||||
expac \
|
libjpeg \
|
||||||
jshon \
|
libevent \
|
||||||
|
libutil-linux \
|
||||||
|
python \
|
||||||
|
python-pip \
|
||||||
|
python-tox \
|
||||||
|
python-systemd \
|
||||||
|
python-dbus \
|
||||||
|
python-mako \
|
||||||
|
nginx-mainline \
|
||||||
|
socat \
|
||||||
|
eslint \
|
||||||
|
npm \
|
||||||
&& (pacman -Sc --noconfirm || true)
|
&& (pacman -Sc --noconfirm || true)
|
||||||
|
|
||||||
RUN useradd -r -c "Packer build user" -m -d /var/packer -s /sbin/nologin packer \
|
RUN npm install htmlhint -g
|
||||||
&& cd /tmp \
|
|
||||||
&& sudo -u packer git clone https://github.com/pi-kvm/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 pkg-install -S \
|
|
||||||
python \
|
|
||||||
python-pip \
|
|
||||||
python-tox \
|
|
||||||
python-systemd \
|
|
||||||
python-dbus \
|
|
||||||
python-mako \
|
|
||||||
nginx-mainline \
|
|
||||||
socat \
|
|
||||||
htmlhint \
|
|
||||||
eslint
|
|
||||||
|
|
||||||
ARG USTREAMER_MIN_VERSION
|
ARG USTREAMER_MIN_VERSION
|
||||||
ENV USTREAMER_MIN_VERSION $USTREAMER_MIN_VERSION
|
ENV USTREAMER_MIN_VERSION $USTREAMER_MIN_VERSION
|
||||||
RUN echo $USTREAMER_MIN_VERSION
|
RUN echo $USTREAMER_MIN_VERSION
|
||||||
RUN pkg-install -S ustreamer
|
RUN git clone https://github.com/pi-kvm/ustreamer \
|
||||||
|
&& cd ustreamer \
|
||||||
|
&& make PREFIX=/usr install \
|
||||||
|
&& cd - \
|
||||||
|
&& rm -rf ustreamer
|
||||||
|
|
||||||
COPY testenv/requirements.txt requirements.txt
|
COPY testenv/requirements.txt requirements.txt
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user