From 1a15de864d60822432e2f634990e4e251b5940cd Mon Sep 17 00:00:00 2001 From: Frank Tornack Date: Sun, 29 Jan 2023 14:30:24 +0100 Subject: [PATCH] build Yacy in the Docker file --- docker/Dockerfile.ArchLinux | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/docker/Dockerfile.ArchLinux b/docker/Dockerfile.ArchLinux index 9691dd16e..321321a65 100644 --- a/docker/Dockerfile.ArchLinux +++ b/docker/Dockerfile.ArchLinux @@ -43,14 +43,24 @@ USER root # install the package RUN pacman -U --noconfirm /tmp/qt5-webkit/qt5-webkit*.pkg.tar.zst && \ rm -rf /tmp/qt5-webkit +USER build # build package for wkhtmltopdf from AUR RUN git clone https://aur.archlinux.org/wkhtmltopdf.git && \ cd wkhtmltopdf && \ -MAKEFLAGS="-j$(nproc)" makepkg --noconfirm && \ +MAKEFLAGS="-j$(nproc)" makepkg --noconfirm --skippgpcheck && \ cd .. USER root # install the package -RUN pacman -U --noconfirm /tmp/wkhtmltopdf/wkhtmltox*.pkg.tar.zst && \ +RUN pacman -U --noconfirm /tmp/wkhtmltopdf/wkhtmltopdf*.pkg.tar.zst && \ rm -rf /tmp/wkhtmltopdf - - +WORKDIR /opt +# download the latest version of yacy +RUN curl "https://codeload.github.com/yacy/yacy_search_server/zip/refs/heads/master" --output yacy.zip && \ +pacman -S unzip --noconfirm && \ +pacman -Scc --noconfirm && \ +unzip yacy.zip && \ +rm yacy.zip && \ +mv yacy_search_server-master yacy && \ +cd yacy && \ +ant compile -f build.xml && \ +rm -rf /opt/yacy/.github