mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
Added support for snapshots generation to Docker images
This commit is contained in:
parent
92e10d7d1c
commit
053df1f312
|
@ -1,10 +1,11 @@
|
|||
# Build a docker image from latest YaCy sources
|
||||
|
||||
# Base image : latest stable official jdk image from Docker (Debian based)
|
||||
FROM openjdk:latest
|
||||
# Base image : latest Debian stable official jdk 8 image from Docker
|
||||
FROM openjdk:8-stretch
|
||||
|
||||
# Install needed packages not in base image
|
||||
RUN apt-get update && apt-get install -yq curl && \
|
||||
# Install needed packages not in base image
|
||||
# (curl for sh scripts in /bin, and wkhtmltopdf,imagemagick,xvfb and ghostscript to enable PDF and image snapshot generation)
|
||||
RUN apt-get update && apt-get install -yq curl wkhtmltopdf imagemagick xvfb ghostscript && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# trace java version
|
||||
|
|
|
@ -1,13 +1,15 @@
|
|||
# Build a docker image from latest YaCy sources on Alpine Linux
|
||||
|
||||
# Base image : latest stable official jdk image from Docker based on Alpine Linux
|
||||
FROM openjdk:alpine
|
||||
# Base image : latest stable official jdk 8 image from Docker based on Alpine Linux
|
||||
FROM openjdk:8-alpine
|
||||
|
||||
# trace java version
|
||||
RUN java -version
|
||||
|
||||
# Install needed packages not in base image
|
||||
RUN apk add --no-cache curl
|
||||
# (curl for sh scripts in /bin, and wkhtmltopdf,imagemagick,xvfb and ghostscript to enable PDF and image snapshot generation)
|
||||
RUN apk add --no-cache curl imagemagick xvfb ghostscript && \
|
||||
apk add wkhtmltopdf --no-cache --repository https://dl-3.alpinelinux.org/alpine/edge/testing/
|
||||
|
||||
# set current working dir
|
||||
WORKDIR /tmp
|
||||
|
@ -81,4 +83,4 @@ VOLUME ["/opt/yacy_search_server/DATA"]
|
|||
USER yacy
|
||||
|
||||
# Start yacy as a foreground process (-f) to display console logs and to wait for yacy process
|
||||
CMD ["/bin/sh","/opt/yacy_search_server/startYACY.sh","-f"]
|
||||
CMD ["/bin/sh","/opt/yacy_search_server/startYACY.sh","-f"]
|
|
@ -27,11 +27,11 @@ To build the Alpine variant :
|
|||
|
||||
`luccioman/yacy:latest`
|
||||
|
||||
This image is based on latest stable official Debian [openjdk](https://hub.docker.com/_/openjdk/) image provided by Docker. Embed Yacy compiled from latest git repository sources.
|
||||
This image is based on latest stable official Debian stable [openjdk](https://hub.docker.com/_/openjdk/) 8 image provided by Docker. Embed Yacy compiled from latest git repository sources.
|
||||
|
||||
`luccioman/yacy:latest-alpine`
|
||||
|
||||
This image is based on latest stable official Alpine Linux [openjdk](https://hub.docker.com/_/openjdk/) image provided by Docker. Embed Yacy compiled from latest git repository sources.
|
||||
This image is based on latest stable official Alpine Linux [openjdk](https://hub.docker.com/_/openjdk/) 8 image provided by Docker. Embed Yacy compiled from latest git repository sources.
|
||||
|
||||
## Default admin account
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user