Skip to content

Commit

Permalink
update gitiles
Browse files Browse the repository at this point in the history
Signed-off-by: Jess Frazelle <[email protected]>
  • Loading branch information
jessfraz committed May 15, 2020
1 parent 16e0810 commit c364e0f
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions gitiles/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,39 +1,27 @@
FROM ubuntu:bionic
FROM l.gcr.io/google/bazel:latest
LABEL maintainer "Jessie Frazelle <[email protected]>"

# https://gerrit.googlesource.com/gitiles/
ENV GITILES_VERSION v0.4

RUN apt-get update && apt-get install -y \
apt-transport-https \
bash \
ca-certificates \
curl \
git \
gnupg \
openjdk-8-jdk \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*

# install bazel
RUN set -x \
&& echo "deb [arch=amd64] https://storage.googleapis.com/bazel-apt stable jdk1.8" | tee /etc/apt/sources.list.d/bazel.list \
&& curl https://bazel.build/bazel-release.pub.gpg | apt-key add - \
&& apt-get update && apt-get install -y \
bazel \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& : install Bazel to build gitiles \
&& git clone --depth 1 --branch "${GITILES_VERSION}" https://gerrit.googlesource.com/gitiles /usr/src/gitiles \
&& ( \
cd /usr/src/gitiles \
&& bazel build java/com/google/gitiles/dev \
&& cp -rL bazel-bin bin \
&& rm -rf bazel-bin \
) \
&& : clean up unneeded packages and files \
&& apt purge -y --auto-remove bazel \
&& rm /etc/apt/sources.list.d/bazel.list
)

COPY start.sh /usr/bin/start.sh

Expand Down

0 comments on commit c364e0f

Please sign in to comment.