mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
47c054e1db
The NodeFeatureGroup is an NFD-specific custom resource that is designed for grouping nodes based on their features. NFD-Master watches for NodeFeatureGroup objects in the cluster and updates the status of the NodeFeatureGroup object with the list of nodes that match the feature group rules. The NodeFeatureGroup rules follow the same syntax as the NodeFeatureRule rules. Signed-off-by: Carlos Eduardo Arango Gutierrez <eduardoa@nvidia.com>
25 lines
1,023 B
Text
25 lines
1,023 B
Text
ARG BUILDER_IMAGE
|
|
FROM ${BUILDER_IMAGE} as builder
|
|
|
|
# Install tools
|
|
RUN go install github.com/vektra/mockery/v2@v2.42.0 && \
|
|
go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.14.0 && \
|
|
go install golang.org/x/tools/cmd/goimports@v0.11.0 && \
|
|
go install github.com/golang/protobuf/protoc-gen-go@v1.4.3
|
|
|
|
RUN apt-get update && apt-get install unzip
|
|
|
|
RUN curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v25.3/protoc-25.3-linux-x86_64.zip && \
|
|
unzip protoc-25.3-linux-x86_64.zip -d /usr/local && \
|
|
rm protoc-25.3-linux-x86_64.zip && \
|
|
chmod a+x /usr/local/bin/protoc && \
|
|
find /usr/local -type d | xargs chmod 755 && \
|
|
find /usr/local -type f | xargs chmod a+r
|
|
|
|
|
|
# Expect to be working with nfd
|
|
WORKDIR /go/node-feature-discovery
|
|
|
|
# We need to set the /go/node-feature-discovery directory as a safe directory.
|
|
# This allows git commands to run in the container on MacOS systems.
|
|
RUN git config --file=/.gitconfig --add safe.directory /go/node-feature-discovery
|