Skip to content

Instantly share code, notes, and snippets.

@t-yuki
Created February 15, 2015 16:52
Show Gist options
  • Save t-yuki/602a2966475d75dcde88 to your computer and use it in GitHub Desktop.
Save t-yuki/602a2966475d75dcde88 to your computer and use it in GitHub Desktop.
gerrit-build
# gerrit-build
#
FROM dockerfile/java:openjdk-7-jdk
MAINTAINER Yukinari Toyota <xxseyxx@gmail.com>
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