2016-04-06 12:32:01 +02:00
|
|
|
FROM java:8-alpine
|
2016-09-20 00:25:05 +02:00
|
|
|
MAINTAINER Jessie Frazelle <jess@linux.com>
|
2016-04-06 12:32:01 +02:00
|
|
|
|
|
|
|
# install buck
|
2016-04-06 19:21:51 +02:00
|
|
|
RUN buildDeps=' \
|
|
|
|
apache-ant \
|
|
|
|
bash \
|
2016-06-17 02:23:25 +02:00
|
|
|
curl \
|
2016-04-06 19:21:51 +02:00
|
|
|
git \
|
|
|
|
perl \
|
|
|
|
python \
|
|
|
|
zip \
|
|
|
|
' \
|
|
|
|
set -x \
|
2016-06-06 05:40:20 +02:00
|
|
|
&& apk --no-cache add $buildDeps \
|
2016-10-25 22:37:56 +02:00
|
|
|
--repository https://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 \
|
|
|
|
) \
|
2016-12-28 02:04:58 +01:00
|
|
|
&& git clone --depth 1 --recurse-submodules https://gerrit.googlesource.com/gitiles /gitiles \
|
2016-04-06 16:04:12 +02:00
|
|
|
&& ( \
|
|
|
|
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" ]
|