updates and cleanups

Signed-off-by: Jess Frazelle <jess@mesosphere.com>
This commit is contained in:
Jess Frazelle
2016-04-06 03:32:01 -07:00
parent 7b22735e75
commit a85814d20e
7 changed files with 151 additions and 7 deletions

28
gitiles/Dockerfile Normal file
View File

@@ -0,0 +1,28 @@
FROM java:8-alpine
MAINTAINER Jessica Frazelle <jess@docker.com>
RUN apk --update add \
apache-ant \
bash \
git \
perl \
python \
zip \
--update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \
&& rm -rf /var/cache/apk/*
# install buck
RUN git clone --depth 1 https://github.com/facebook/buck.git /buck \
&& cd /buck \
&& ant \
&& ln -snfv ${PWD}/bin/buck /usr/bin/buck
RUN git clone --depth 1 --recurse-submodules https://gerrit.googlesource.com/gitiles /gitiles \
&& cd /gitiles \
&& touch .nobuckcheck \
&& git submodule update --init \
&& buck build all
COPY ./start.sh /start.sh
ENTRYPOINT [ "/start.sh" ]

12
gitiles/start.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/sh
set -e
ROOT="/gitiles"
PROPERTIES=
if [ "x$1" != "x" ]; then
PROPERTIES="-Dcom.google.gitiles.configPath=$1"
fi
PROPERTIES="$PROPERTIES -Dcom.google.gitiles.sourcePath=$ROOT"
exec java $PROPERTIES -jar "$ROOT/buck-out/gen/gitiles-dev/dev.jar"