Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-2881 bug in 'nutch' symlink in docker container (#689)

Lewis John McGibbney08de74266b2e
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 0f06894bb..29ead46ba 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -23,6 +23,7 @@ RUN apk update
RUN apk --no-cache add apache-ant bash git openjdk11
RUN echo 'export JAVA_HOME=/usr/lib/jvm/java-11-openjdk' >> $HOME/.bashrc
+env NUTCH_HOME='/root/nutch_source/runtime/local'
# Checkout and build the Nutch master branch (1.x)
RUN git clone https://github.com/apache/nutch.git nutch_source && \
@@ -31,5 +32,6 @@ RUN git clone https://github.com/apache/nutch.git nutch_source && \
rm -rf build/ && \
rm -rf /root/.ivy2/
-# Convenience symlink to Nutch runtime local
-RUN ln -s nutch_source/runtime/local $HOME/nutch
+# Create symlinks for runtime/local/bin/nutch and runtime/local/bin/crawl
+RUN ln -sf $NUTCH_HOME/bin/nutch /usr/local/bin/
+RUN ln -sf $NUTCH_HOME/bin/crawl /usr/local/bin/
\ No newline at end of file