-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
49 lines (32 loc) · 1.22 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM ubuntu:latest
# ---------------------------
# INSTALL DEPENDENCIES
# ---------------------------
RUN apt-get update
RUN apt-get install -y default-jre
RUN apt-get install -y default-jdk
# ---------------------------
# COPY CONFIGS INTO CONTAINER
# ---------------------------
# setup Apache Nutch
# copy downloaded Nutch binary distribution into container
COPY nutch/apache-nutch-1.17-bin.tar.gz apache-nutch-1.17-bin.tar.gz
# untar the binary
RUN tar -xvzf apache-nutch-1.17-bin.tar.gz
# copy nutch config into container
COPY nutch/nutch-site.xml apache-nutch-1.17/conf/
# create url folder
RUN mkdir -p apache-nutch-1.17/urls
# copy seeds into container
COPY nutch/seed.txt apache-nutch-1.17/urls/
# setup Apache SOLR
# copy downloaded SOLR binary into container
COPY solr/solr-8.5.1.tgz solr-8.5.1.tgz
# untar the binary
RUN tar -xvzf solr-8.5.1.tgz
# create resources for the SOLR core
RUN mkdir -p solr-8.5.1/server/solr/configsets/nutch/
RUN cp -r solr-8.5.1/server/solr/configsets/_default/* solr-8.5.1/server/solr/configsets/nutch/
RUN rm solr-8.5.1/server/solr/configsets/nutch/conf/managed-schema
# copy schema.xml into solr conf directory
COPY solr/schema.xml solr-8.5.1/server/solr/configsets/nutch/conf/schema.xml