Skip to content

Commit

Permalink
Update Dockerfile / JAVA_HOME - 2nd try (#805)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
derhecht and sebastian-nagel authored Mar 13, 2024
1 parent c390dfc commit 42b55f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down Expand Up @@ -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."
RUN echo "Successfully built image, see https://s.apache.org/m5933 for guidance on running a container instance."

0 comments on commit 42b55f6

Please sign in to comment.