Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-2883 Provide means to run server and webapp as persistent services in Docker container - move ARG instructions into FROM block they're used in (duplicate if necessary)

Sebastian Nagel0bda1bded2ba
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 7070ed170..d58b583e6 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -67,6 +67,8 @@ RUN echo "Nutch master branch source install with 'crawl' and 'nutch' scripts on
FROM base AS branch-version-1
RUN echo "Nutch master branch source install with 'crawl' and 'nutch' scripts on PATH and Nutch REST Server on $SERVER_HOST:$SERVER_PORT"
+ARG SERVER_PORT=8081
+ARG SERVER_HOST=0.0.0.0
ENV SERVER_PORT=$SERVER_PORT
ENV SERVER_HOST=$SERVER_HOST
@@ -84,6 +86,9 @@ ENTRYPOINT [ "supervisord", "--nodaemon", "--configuration", "/etc/supervisord.c
FROM base AS branch-version-2
RUN echo "Nutch master branch source install with 'crawl' and 'nutch' scripts on PATH, Nutch REST Server on $SERVER_HOST:$SERVER_PORT and WebApp on this container port $WEBAPP_PORT"
+ARG SERVER_PORT=8081
+ARG SERVER_HOST=0.0.0.0
+ARG WEBAPP_PORT=8080
ENV SERVER_PORT=$SERVER_PORT
ENV SERVER_HOST=$SERVER_HOST