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 42b55f6a9 Update Dockerfile / JAVA_HOME - 2nd try (#805)
42b55f6a9 is described below

commit 42b55f6a9b369d8e7f6b93735107abb187f65c39
Author: Jakob Berlin <j.ber...@ewerk.com>
AuthorDate: Wed Mar 13 06:11:30 2024 +0100

    Update Dockerfile / JAVA_HOME - 2nd try (#805)
    
    * Nutch 1.19 release
    - update current year in API docs etc.
    - update version number
    - add changes / release notes
    - update links to Hadoop API docs
    
    * Update Dockerfile / JAVA_HOME
    
    Alpine is using ash shell by default which results in an not set JAVA_HOME 
environment variable
    
    * Update Dockerfile
    
    Remove empty line at the end
    
    ---------
    
    Co-authored-by: Sebastian Nagel <sna...@apache.org>
---
 docker/Dockerfile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/docker/Dockerfile b/docker/Dockerfile
index cffa00a95..fb93fe98a 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -46,6 +46,7 @@ RUN apk --no-cache add apache-ant bash git openjdk11 
supervisor
 
 # Establish environment variables
 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'
 
@@ -112,4 +113,4 @@ EXPOSE $WEBAPP_PORT
 ENTRYPOINT [ "supervisord", "--nodaemon", "--configuration", 
"/etc/supervisord.conf" ]
 
 FROM branch-version-$BUILD_MODE AS final
-RUN echo "Successfully built image, see https://s.apache.org/m5933 for 
guidance on running a container instance."
\ No newline at end of file
+RUN echo "Successfully built image, see https://s.apache.org/m5933 for 
guidance on running a container instance."

Reply via email to