forked from yacy/yacy_grid_crawler
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #1: Dockerfile for Yacy Grid Crawler
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |