mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
4fc45c95d1
currently, nfd framework can't be work on Arm64 platform. Fix points: 1, removed rdt on Arm64 platform 2, optimized the code related to multi-arch Change-Id: If605041f6d2243ae2afb3248edbf102083c6dcb4 Signed-off-by: Bin Lu <bin.lu@arm.com> Jira: ENTOS-432
27 lines
846 B
Docker
27 lines
846 B
Docker
FROM golang:1.8
|
|
|
|
# Build node feature discovery and set it as entrypoint.
|
|
ADD . /go/src/github.com/kubernetes-incubator/node-feature-discovery
|
|
|
|
WORKDIR /go/src/github.com/kubernetes-incubator/node-feature-discovery
|
|
|
|
ARG NFD_VERSION
|
|
|
|
RUN case $(dpkg --print-architecture) in \
|
|
arm64) \
|
|
echo "skip rdt on Arm64 platform" \
|
|
;; \
|
|
*) \
|
|
git clone --depth 1 https://github.com/01org/intel-cmt-cat.git \
|
|
&& cd intel-cmt-cat/lib; make install \
|
|
&& cd ../../rdt-discovery; make \
|
|
;; \
|
|
esac
|
|
|
|
RUN go get github.com/Masterminds/glide
|
|
RUN glide install --strip-vendor
|
|
RUN go install \
|
|
-ldflags "-s -w -X main.version=$NFD_VERSION" \
|
|
github.com/kubernetes-incubator/node-feature-discovery
|
|
|
|
ENTRYPOINT ["/go/bin/node-feature-discovery"]
|