Signed-off-by: Jess Frazelle <jess@mesosphere.com>
This commit is contained in:
Jess Frazelle 2016-04-06 07:04:12 -07:00
parent 2535f66efc
commit 455b5ca9e0
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
2 changed files with 16 additions and 10 deletions

View File

@ -13,15 +13,21 @@ RUN apk --update add \
# 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
&& ( \
cd /buck \
&& ant \
&& ln -snfv ${PWD}/bin/buck /usr/bin/buck \
) \
&& git clone --depth 1 --recurse-submodules https://gerrit.googlesource.com/gitiles /gitiles \
&& ( \
cd /gitiles \
&& touch .nobuckcheck \
&& git submodule update --init \
&& buck build all \
&& mv buck-out/gen/gitiles/gitiles.war /gitiles.war \
) \
&& rm -rf /gitiles \
&& rm -rf /buck
COPY ./start.sh /start.sh

View File

@ -9,4 +9,4 @@ if [ "x$1" != "x" ]; then
fi
PROPERTIES="$PROPERTIES -Dcom.google.gitiles.sourcePath=$ROOT"
exec java $PROPERTIES -jar "$ROOT/buck-out/gen/gitiles-dev/dev.jar"
exec java $PROPERTIES -jar "$ROOT/buck-out/gen/gitiles/gitiles.war"