mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
455b5ca9e0
Signed-off-by: Jess Frazelle <jess@mesosphere.com>
35 lines
778 B
Docker
35 lines
778 B
Docker
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 \
|
|
) \
|
|
&& 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
|
|
|
|
ENTRYPOINT [ "/start.sh" ]
|