Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-2295 Nutch master docker container broken - upgrade base image to Ubuntu 16.04 - fetch Nutch sources via git

Sebastian Nagel7d21158b934f
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 404f8c69f..c5ba8073a 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -13,28 +13,21 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-FROM ubuntu:14.04
+FROM ubuntu:16.04
MAINTAINER Michael Joyce <[email protected]>
WORKDIR /root/
-# Get the package containing apt-add-repository installed for adding repositories
-RUN apt-get update && apt-get install -y software-properties-common
-# Add the repository that we'll pull java down from.
-RUN add-apt-repository -y ppa:webupd8team/java && apt-get update && apt-get upgrade -y
-
-# Get Oracle Java 1.7 installed
-RUN echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections && apt-get install -y oracle-java7-installer oracle-java7-set-default
-
-# Install various dependencies
-RUN apt-get install -y ant openssh-server vim telnet subversion rsync curl build-essential
+# Install dependencies
+RUN apt update
+RUN apt install -y ant openssh-server vim telnet git rsync curl openjdk-8-jdk-headless
# Set up JAVA_HOME
-RUN echo 'export JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::")' >> $HOME/.bashrc
+RUN echo 'export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64' >> $HOME/.bashrc
# Checkout and build the nutch trunk
-RUN svn checkout https://svn.apache.org/repos/asf/nutch/trunk/ nutch_source && cd nutch_source && ant
+RUN git clone https://github.com/apache/nutch.git nutch_source && cd nutch_source && ant runtime
# Convenience symlink to Nutch runtime local
RUN ln -s nutch_source/runtime/local $HOME/nutch