Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix alpine image
Mister_X632536c6f576
diff --git a/.github/workflows/ant-build-release.yaml b/.github/workflows/ant-build-release.yamlindex 8d0d8c7f9..de61e6f80 100644--- a/.github/workflows/ant-build-release.yaml+++ b/.github/workflows/ant-build-release.yaml@@ -2,8 +2,6 @@ name: Build Executableon:push:- branches: # ONLY FOR TESTING- - "**"tags:- "v*.*.*"- "Release_*"@@ -18,7 +16,8 @@ jobs:build:strategy:matrix:- os: [macos-latest, ubuntu-latest, windows-latest]+ #os: [macos-latest, ubuntu-latest, windows-latest]+ os: [ubuntu-latest]runs-on: ${{ matrix.os }}diff --git a/.github/workflows/build-docker-image.yaml b/.github/workflows/build-docker-image.yamlindex 30e79b1d4..6016fca59 100644--- a/.github/workflows/build-docker-image.yaml+++ b/.github/workflows/build-docker-image.yaml@@ -23,8 +23,8 @@ jobs:include:- tag: "" # Default Dockerfileplatforms: linux/amd64,linux/arm64- # - tag: alpine- # platforms: linux/amd64,linux/arm64+ - tag: alpine+ platforms: linux/amd64,linux/arm64runs-on: ubuntu-lateststeps:diff --git a/docker/Dockerfile b/docker/Dockerfileindex ffb07f3fb..ca201b1f7 100644--- a/docker/Dockerfile+++ b/docker/Dockerfile@@ -6,7 +6,7 @@# run with# docker run -d --name yacy -p 8090:8090 -p 8443:8443 -v yacy_data:/opt/yacy_search_server/DATA --log-opt max-size=200m --log-opt max-file=2 yacy/yacy_search_server:latest-## build+## builder imageFROM eclipse-temurin:21-jdk AS builderRUN apt-get update && apt-get install -y --no-install-recommends \ant \@@ -20,6 +20,7 @@ COPY . /opt/yacy_search_server/RUN ant compile -f /opt/yacy_search_server/build.xml# Set initial admin password: "yacy" (encoded with custom yacy md5 function net.yacy.cora.order.Digest.encodeMD5Hex())+# Intially enable HTTPS: this is the most secure option for remote administrator authenticationRUN sed -i "/adminAccountBase64MD5=/c\adminAccountBase64MD5=MD5:8cffbc0d66567a0987a4aba1ec46d63c" /opt/yacy_search_server/defaults/yacy.init && \sed -i "/adminAccountForLocalhost=/c\adminAccountForLocalhost=false" /opt/yacy_search_server/defaults/yacy.init && \sed -i "/server.https=false/c\server.https=true" /opt/yacy_search_server/defaults/yacy.initdiff --git a/docker/Dockerfile.alpine b/docker/Dockerfile.alpineindex 9e83f2685..de8011195 100644--- a/docker/Dockerfile.alpine+++ b/docker/Dockerfile.alpine@@ -1,13 +1,35 @@# Build a docker image from latest YaCy sources on Alpine Linux# with wkhtmltopdf for PDF generation and Java 21-FROM surnet/alpine-wkhtmltopdf:3.21.2-0.12.6-full as wkhtmltopdf-FROM eclipse-temurin:21-alpine-3.21-# trace java version-RUN java -version+## builder image+FROM eclipse-temurin:21-jdk-alpine-3.21 AS builder++# Install needed packages not in base image+RUN apk add --no-cache curl git apache-ant++# set current working dir & copy sources+WORKDIR /opt+COPY . /opt/yacy_search_server/++RUN ant compile -f /opt/yacy_search_server/build.xml++# Set initial admin password: "yacy" (encoded with custom yacy md5 function net.yacy.cora.order.Digest.encodeMD5Hex())+# Intially enable HTTPS: this is the most secure option for remote administrator authentication+# Create user and group yacy: this user will be used to run YaCy main process+# Set ownership of yacy install directory to yacy user/group+RUN sed -i "/adminAccountBase64MD5=/c\adminAccountBase64MD5=MD5:8cffbc0d66567a0987a4aba1ec46d63c" /opt/yacy_search_server/defaults/yacy.init && \+ sed -i "/adminAccountForLocalhost=/c\adminAccountForLocalhost=false" /opt/yacy_search_server/defaults/yacy.init && \+ sed -i "/server.https=false/c\server.https=true" /opt/yacy_search_server/defaults/yacy.init++## build final image+FROM surnet/alpine-wkhtmltopdf:3.21.2-0.12.6-full AS wkhtmltopdf+FROM eclipse-temurin:21-jre-alpine-3.21 AS app-# Install dependencies for wkhtmltopdfRUN apk add --no-cache \+ imagemagick \+ xvfb \+ ghostscript \+ # Install dependencies for wkhtmltopdflibstdc++ \libx11 \libxrender \@@ -35,29 +57,9 @@ COPY --from=wkhtmltopdf /bin/wkhtmltopdf /bin/wkhtmltopdfCOPY --from=wkhtmltopdf /bin/wkhtmltoimage /bin/wkhtmltoimageCOPY --from=wkhtmltopdf /lib/libwkhtmltox* /lib/-# Install needed packages not in base image-RUN apk add --no-cache curl git imagemagick xvfb ghostscript apache-ant--# set current working dir & copy sources+RUN addgroup yacy && adduser -S -G yacy -H -D yacyWORKDIR /opt-COPY . /opt/yacy_search_server/--RUN ant compile -f /opt/yacy_search_server/build.xml && \- rm -rf /opt/yacy_search_server/.git && \- rm -rf /opt/ant--RUN \- # Set initial admin password: "yacy" (encoded with custom yacy md5 function net.yacy.cora.order.Digest.encodeMD5Hex())- sed -i "/adminAccountBase64MD5=/c\adminAccountBase64MD5=MD5:8cffbc0d66567a0987a4aba1ec46d63c" /opt/yacy_search_server/defaults/yacy.init && \- sed -i "/adminAccountForLocalhost=/c\adminAccountForLocalhost=false" /opt/yacy_search_server/defaults/yacy.init && \- # Intially enable HTTPS: this is the most secure option for remote administrator authentication- sed -i "/server.https=false/c\server.https=true" /opt/yacy_search_server/defaults/yacy.init && \- # Create user and group yacy: this user will be used to run YaCy main process- addgroup yacy && adduser -S -G yacy -H -D yacy && \- # Set ownership of yacy install directory to yacy user/group- chown yacy:yacy -R /opt/yacy_search_server--RUN rm -rf /opt/yacy_search_server/DATA+COPY --chown=yacy:yacy --from=builder /opt/yacy_search_server /opt/yacy_search_server# Expose HTTP and HTTPS default portsEXPOSE 8090 8443