mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Add protobuf to the kube build image
This commit is contained in:
parent
b1e4831265
commit
d12bbe0da9
@ -24,3 +24,16 @@ ENV KUBE_CROSSPLATFORMS \
|
||||
windows/amd64 windows/386
|
||||
|
||||
RUN cd /usr/src/go/src && for platform in ${KUBE_CROSSPLATFORMS}; do GOOS=${platform%/*} GOARCH=${platform##*/} ./make.bash --no-clean; done
|
||||
|
||||
# Download and install protoc for generating protobuf output
|
||||
RUN mkdir -p /usr/local/src/protobuf && cd /usr/local/src/protobuf &&\
|
||||
wget -q https://github.com/google/protobuf/releases/download/v3.0.0-beta-2/protobuf-cpp-3.0.0-beta-2.tar.gz &&\
|
||||
tar xzvf protobuf-cpp-3.0.0-beta-2.tar.gz &&\
|
||||
cd protobuf-3.0.0-beta-2 &&\
|
||||
./configure &&\
|
||||
make install &&\
|
||||
ldconfig &&\
|
||||
cd .. &&\
|
||||
rm -rf protobuf-3.0.0-beta-2 &&\
|
||||
protoc --version
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user