You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by le...@apache.org on 2021/06/27 02:05:10 UTC

[nutch] branch master updated: NUTCH-2881 bug in 'nutch' symlink in docker container (#689)

This is an automated email from the ASF dual-hosted git repository.

lewismc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nutch.git


The following commit(s) were added to refs/heads/master by this push:
     new 08de742  NUTCH-2881 bug in 'nutch' symlink in docker container (#689)
08de742 is described below

commit 08de74266b2e502d6915831a6e19fea21b099e28
Author: Lewis John McGibbney <le...@gmail.com>
AuthorDate: Sat Jun 26 19:04:59 2021 -0700

    NUTCH-2881 bug in 'nutch' symlink in docker container (#689)
    
    * NUTCH-2881 bug in 'nutch' symlink in docker container
---
 docker/Dockerfile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/docker/Dockerfile b/docker/Dockerfile
index 0f06894..29ead46 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