blob: a9630c1391a543a23b6670230df2dce7a6b9e909 [file] [log] [blame]
USER root
# Install kubctl.
RUN apt-get update && apt-get upgrade -y && apt-get install -y curl bash software-properties-common gnupg2 \
&& mkdir -p /usr/local/bin \
&& curl$(curl -s -o /usr/local/bin/kubectl \
&& chmod +x /usr/local/bin/kubectl
# Install docker.
RUN curl -fsSL | apt-key add - \
# TODO(rmistry): bullseye does not have an entry in yet. When it does
# update "buster" to be "$(lsb_release -cs)".
&& add-apt-repository "deb [arch=amd64] buster stable" \
&& apt-get update \
# TODO(rmistry): Docker client version 19.03.09 has this bug:
# The bug has been fixed in v19.03.10 but that version has not been released yet. Remove
# the specific versions below after the version is released.
&& apt-get install -y docker-ce=5:19.03.8~3-0~debian-buster docker-ce-cli=5:19.03.8~3-0~debian-buster \
&& service docker start
COPY . /
USER skia
ENTRYPOINT ["/usr/local/bin/docker_pushes_watcher"]
CMD ["--logtostderr"]