Created
February 15, 2015 16:52
-
-
Save t-yuki/602a2966475d75dcde88 to your computer and use it in GitHub Desktop.
gerrit-build
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
# gerrit-build | |
# | |
FROM dockerfile/java:openjdk-7-jdk | |
MAINTAINER Yukinari Toyota <[email protected]> | |
RUN \ | |
sed -i".bak" 's/http:\/\/archive.ubuntu.com\/ubuntu/http:\/\/ftp.jaist.ac.jp\/pub\/Linux\/ubuntu/' /etc/apt/sources.list && \ | |
sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \ | |
apt-get update && \ | |
DEBIAN_FRONTEND=noninteractive apt-get install -y sudo git && \ | |
DEBIAN_FRONTEND=noninteractive apt-get install -y openjdk-7-jdk ant maven2 | |
RUN git clone https://gerrit.googlesource.com/buck | |
RUN git clone https://gerrit.googlesource.com/gerrit | |
RUN cd gerrit; git checkout v2.10 | |
RUN cd buck; git checkout `cat ../gerrit/.buckversion` | |
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y zip | |
RUN cd buck; ant | |
ENV PATH $PATH:/data/buck/bin | |
ENV JAVA_TOOL_OPTIONS -Dfile.encoding=UTF8 | |
RUN cd gerrit; buck build gerrit | |
RUN git clone https://github.com/lucamilanesio/github-api.git | |
RUN cd github-api; mvn install -DskipTests=true | |
RUN git clone https://gerrit.googlesource.com/plugins/github | |
RUN cd github; mvn install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment