mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 03:21:28 +01:00
update gitiles
Signed-off-by: Jess Frazelle <jess@oxide.computer>
This commit is contained in:
parent
16e081044d
commit
c364e0fe33
|
@ -1,39 +1,27 @@
|
||||||
FROM ubuntu:bionic
|
FROM l.gcr.io/google/bazel:latest
|
||||||
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
|
||||||
|
|
||||||
# https://gerrit.googlesource.com/gitiles/
|
# https://gerrit.googlesource.com/gitiles/
|
||||||
ENV GITILES_VERSION v0.4
|
ENV GITILES_VERSION v0.4
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
apt-transport-https \
|
|
||||||
bash \
|
bash \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
git \
|
git \
|
||||||
gnupg \
|
|
||||||
openjdk-8-jdk \
|
openjdk-8-jdk \
|
||||||
--no-install-recommends \
|
--no-install-recommends \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# install bazel
|
# install bazel
|
||||||
RUN set -x \
|
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 \
|
&& git clone --depth 1 --branch "${GITILES_VERSION}" https://gerrit.googlesource.com/gitiles /usr/src/gitiles \
|
||||||
&& ( \
|
&& ( \
|
||||||
cd /usr/src/gitiles \
|
cd /usr/src/gitiles \
|
||||||
&& bazel build java/com/google/gitiles/dev \
|
&& bazel build java/com/google/gitiles/dev \
|
||||||
&& cp -rL bazel-bin bin \
|
&& cp -rL bazel-bin bin \
|
||||||
&& rm -rf bazel-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
|
COPY start.sh /usr/bin/start.sh
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user