diff --git a/tools/build-tools.Dockerfile b/tools/build-tools.Dockerfile index e4769a9e01e..5fa082a5b15 100644 --- a/tools/build-tools.Dockerfile +++ b/tools/build-tools.Dockerfile @@ -65,6 +65,12 @@ RUN RELEASE_VERSION=v1.0.1 && \ cp operator-sdk-${RELEASE_VERSION}-x86_64-linux-gnu /usr/local/bin/operator-sdk && \ rm operator-sdk-${RELEASE_VERSION}-x86_64-linux-gnu +# Install kubebuilder tools +RUN os=$(go env GOOS) && \ + arch=$(go env GOARCH) && \ + curl -L https://go.kubebuilder.io/dl/2.3.1/${os}/${arch} | tar -xz -C /tmp/ && \ + mv /tmp/kubebuilder_2.3.1_${os}_${arch} /usr/local/kubebuilder + ENV PATH=${PATH}:/usr/local/go/bin \ GOROOT=/usr/local/go \ GOPATH=/go