2016-04-06 12:32:01 +02:00
|
|
|
FROM java:8-alpine
|
|
|
|
MAINTAINER Jessica Frazelle <jess@docker.com>
|
|
|
|
|
|
|
|
# install buck
|
2016-04-06 19:21:51 +02:00
|
|
|
RUN buildDeps=' \
|
|
|
|
apache-ant \
|
|
|
|
bash \
|
|
|
|
git \
|
|
|
|
perl \
|
|
|
|
python \
|
|
|
|
zip \
|
|
|
|
' \
|
|
|
|
set -x \
|
2016-06-06 05:40:20 +02:00
|
|
|
&& apk --no-cache add $buildDeps \
|
|
|
|
--repository http://dl-3.alpinelinux.org/alpine/edge/community/ \
|
2016-04-06 19:21:51 +02:00
|
|
|
&& git clone --depth 1 https://github.com/facebook/buck.git /buck \
|
2016-04-06 16:04:12 +02:00
|
|
|
&& ( \
|
|
|
|
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 \
|
2016-04-06 19:21:51 +02:00
|
|
|
&& buck build gitiles-dev:dev \
|
2016-04-06 16:04:12 +02:00
|
|
|
) \
|
2016-04-06 19:21:51 +02:00
|
|
|
&& apk del $buildDeps \
|
2016-06-06 05:40:20 +02:00
|
|
|
&& rm -rf /buck
|
2016-04-06 12:32:01 +02:00
|
|
|
|
2016-04-06 19:21:51 +02:00
|
|
|
COPY start.sh /start.sh
|
2016-04-06 12:32:01 +02:00
|
|
|
|
|
|
|
ENTRYPOINT [ "/start.sh" ]
|