mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-12-08 22:32:39 +01:00
updates and cleanups
Signed-off-by: Jess Frazelle <jess@mesosphere.com>
This commit is contained in:
28
gitiles/Dockerfile
Normal file
28
gitiles/Dockerfile
Normal file
@@ -0,0 +1,28 @@
|
||||
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
|
||||
|
||||
RUN git clone --depth 1 --recurse-submodules https://gerrit.googlesource.com/gitiles /gitiles \
|
||||
&& cd /gitiles \
|
||||
&& touch .nobuckcheck \
|
||||
&& git submodule update --init \
|
||||
&& buck build all
|
||||
|
||||
COPY ./start.sh /start.sh
|
||||
|
||||
ENTRYPOINT [ "/start.sh" ]
|
||||
12
gitiles/start.sh
Executable file
12
gitiles/start.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
ROOT="/gitiles"
|
||||
PROPERTIES=
|
||||
|
||||
if [ "x$1" != "x" ]; then
|
||||
PROPERTIES="-Dcom.google.gitiles.configPath=$1"
|
||||
fi
|
||||
PROPERTIES="$PROPERTIES -Dcom.google.gitiles.sourcePath=$ROOT"
|
||||
|
||||
exec java $PROPERTIES -jar "$ROOT/buck-out/gen/gitiles-dev/dev.jar"
|
||||
Reference in New Issue
Block a user