1
0
mirror of https://github.com/jessfraz/dockerfiles.git synced 2025-04-26 05:35:41 +02:00
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

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

@ -9,4 +9,4 @@ if [ "x$1" != "x" ]; then
fi fi
PROPERTIES="$PROPERTIES -Dcom.google.gitiles.sourcePath=$ROOT" 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"