mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-30 19:54:46 +00:00
Merge pull request #88 from lubinsz/master
enable nfd framework on Arm64 platform
This commit is contained in:
commit
680f55d07b
1 changed files with 13 additions and 29 deletions
42
Dockerfile
42
Dockerfile
|
@ -1,29 +1,4 @@
|
||||||
# Taken from https://github.com/docker-library/golang/blob/master/1.6/Dockerfile
|
FROM golang:1.8
|
||||||
# to build our golang image with debian testing (stretch).
|
|
||||||
FROM buildpack-deps:stretch-scm
|
|
||||||
|
|
||||||
# gcc for cgo.
|
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
||||||
g++ \
|
|
||||||
gcc \
|
|
||||||
libc6-dev \
|
|
||||||
make \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
ENV GOLANG_VERSION 1.7.1
|
|
||||||
ENV GOLANG_DOWNLOAD_URL https://golang.org/dl/go$GOLANG_VERSION.linux-amd64.tar.gz
|
|
||||||
ENV GOLANG_DOWNLOAD_SHA256 43ad621c9b014cde8db17393dc108378d37bc853aa351a6c74bf6432c1bbd182
|
|
||||||
|
|
||||||
RUN curl -fsSL "$GOLANG_DOWNLOAD_URL" -o golang.tar.gz \
|
|
||||||
&& echo "$GOLANG_DOWNLOAD_SHA256 golang.tar.gz" | sha256sum -c - \
|
|
||||||
&& tar -C /usr/local -xzf golang.tar.gz \
|
|
||||||
&& rm golang.tar.gz
|
|
||||||
|
|
||||||
ENV GOPATH /go
|
|
||||||
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
|
|
||||||
|
|
||||||
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
|
|
||||||
WORKDIR $GOPATH
|
|
||||||
|
|
||||||
# Build node feature discovery and set it as entrypoint.
|
# Build node feature discovery and set it as entrypoint.
|
||||||
ADD . /go/src/github.com/kubernetes-incubator/node-feature-discovery
|
ADD . /go/src/github.com/kubernetes-incubator/node-feature-discovery
|
||||||
|
@ -31,9 +6,18 @@ ADD . /go/src/github.com/kubernetes-incubator/node-feature-discovery
|
||||||
WORKDIR /go/src/github.com/kubernetes-incubator/node-feature-discovery
|
WORKDIR /go/src/github.com/kubernetes-incubator/node-feature-discovery
|
||||||
|
|
||||||
ARG NFD_VERSION
|
ARG NFD_VERSION
|
||||||
RUN git clone --depth 1 https://github.com/01org/intel-cmt-cat.git
|
|
||||||
RUN cd intel-cmt-cat/lib; make install
|
RUN case $(dpkg --print-architecture) in \
|
||||||
RUN cd rdt-discovery; make
|
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 go get github.com/Masterminds/glide
|
||||||
RUN glide install --strip-vendor
|
RUN glide install --strip-vendor
|
||||||
RUN go install \
|
RUN go install \
|
||||||
|
|
Loading…
Add table
Reference in a new issue