Skip to content

Commit

Permalink
Fixes #1: Dockerfile for Yacy Grid Crawler
Browse files Browse the repository at this point in the history
  • Loading branch information
harshit98 committed Jul 25, 2017
1 parent 437f9fc commit 68a7188
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions conf/config.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ 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/
33 changes: 33 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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

# Expose web interface ports
EXPOSE 8300

0 comments on commit 68a7188

Please sign in to comment.