Skip to content

Commit

Permalink
πŸ‘·β€β™‚οΈ Install the kubebuilder tools in the build image instead. (#1775)
Browse files Browse the repository at this point in the history
Signed-off-by: Noah Kantrowitz <[email protected]>
  • Loading branch information
coderanger authored May 3, 2021
1 parent 89da00b commit 52a691f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/build-tools.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 52a691f

Please sign in to comment.