Skip to content

Commit

Permalink
build-tools integrates docker for building and publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
believening authored and YonkaFang committed Feb 6, 2023
1 parent d2176f2 commit d442f93
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions docker/Dockerfile.build-tools
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
FROM golang:1.16.15-bullseye
FROM golang:1.17.13-bullseye

WORKDIR /workspaces

RUN apt-get update && apt-get install -y \
RUN apt-get update && apt-get install -y --no-install-recommends \
lsb-release \
software-properties-common \
jq \
unzip && \
apt-get clean

# install docker
ENV DOCKER_VERSION=5:23.0.0-1~debian.11~bullseye
ENV CONTAINERD_VERSION=1.6.16-1
ADD https://download.docker.com/linux/debian/gpg /etc/apt/keyrings/docker.gpg
RUN apt-key add /etc/apt/keyrings/docker.gpg && \
add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
RUN apt-get update && apt-get install -y --no-install-recommends \
docker-ce="${DOCKER_VERSION}" \
docker-ce-cli="${DOCKER_VERSION}" \
containerd.io="${CONTAINERD_VERSION}" && \
apt-get clean

# version of toolchains
ENV CONTROLLER_GEN_VERSION=v0.7.0
ENV ISTIO_TOOLS_VERSION=1.12.0
Expand Down

0 comments on commit d442f93

Please sign in to comment.