This is an automated email from the ASF dual-hosted git repository.
lewismc pushed a commit to branch branch-1.19
in repository https://gitbox.apache.org/repos/asf/nutch.git
The following commit(s) were added to refs/heads/branch-1.19 by this push:
new 0b04db65a Update Dockerfile / JAVA_HOME (#801)
0b04db65a is described below
commit 0b04db65ad32634aa1a63a191a404c52a5d29e46
Author: Jakob Berlin <[email protected]>
AuthorDate: Mon Mar 11 21:24:21 2024 +0100
Update Dockerfile / JAVA_HOME (#801)
Alpine is using ash shell by default which results in an not set JAVA_HOME
environment variable
---
docker/Dockerfile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 29ead46ba..ea734bd06 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -23,6 +23,8 @@ 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
+RUN echo 'export JAVA_HOME=/usr/lib/jvm/java-11-openjdk' >> $HOME/.ashrc
+ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk
env NUTCH_HOME='/root/nutch_source/runtime/local'
# Checkout and build the Nutch master branch (1.x)
@@ -34,4 +36,4 @@ RUN git clone https://github.com/apache/nutch.git
nutch_source && \
# 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
+RUN ln -sf $NUTCH_HOME/bin/crawl /usr/local/bin/