Skip to content

Commit

Permalink
Fixes #1: Dockerfile for Yacy Grid Crawler
Browse files Browse the repository at this point in the history
Configure properties
  • Loading branch information
harshit98 committed Jul 25, 2017
1 parent 437f9fc commit f53e294
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
34 changes: 34 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
FROM ubuntu:latest
MAINTAINER Harshit Prasad

# Update
RUN apt-get update
RUN apt-get upgrade -y

# add packages
RUN apt-get install -y git openjdk-8-jdk

# install gradle required for build
RUN apt-get update && apt-get install -y software-properties-common
RUN add-apt-repository ppa:cwchien/gradle
RUN apt-get update
RUN apt-get install -y wget
RUN wget https://services.gradle.org/distributions/gradle-3.4.1-bin.zip
RUN mkdir /opt/gradle
RUN apt-get install -y unzip
RUN unzip -d /opt/gradle gradle-3.4.1-bin.zip
RUN PATH=$PATH:/opt/gradle/gradle-3.4.1/bin
ENV GRADLE_HOME=/opt/gradle/gradle-3.4.1
ENV PATH=$PATH:$GRADLE_HOME/bin
RUN gradle -v

RUN git clone https://github.com/harshit98/yacy_grid_crawler.git
WORKDIR /yacy_grid_crawler

# compile
RUN gradle build
RUN mkdir data/yacygridcrawler-8300/conf/ -p
RUN cp docker/config-crawler.properties data/yacygridcrawler-8300/conf/config.properties

# Expose web interface ports
EXPOSE 8300
5 changes: 5 additions & 0 deletions docker/config-crawler.mcp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
port = 8300
grid.mcp.address = 127.0.0.1:8100,yacygrid.com:8100
grid.ftp.address = anonymous:yacy@127.0.0.1:2121,anonymous:yacy@yacygrid.com:2121
grid.broker.address = anonymous:yacy@127.0.0.1:5672,anonymous:yacy@yacygrid.com:5672
grid.crawler.address = http://130.211.167.207:8100/

0 comments on commit f53e294

Please sign in to comment.