mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00
Merge pull request #363 from mythi/updates
repo: drop .travis.yaml and update CODEOWNERS
This commit is contained in:
commit
f261b27423
2
.github/CODEOWNERS
vendored
2
.github/CODEOWNERS
vendored
@ -15,7 +15,7 @@ Makefile @rojkov @bart0sh @kad @mythi
|
|||||||
# Binaries
|
# Binaries
|
||||||
/cmd/ @rojkov @bart0sh
|
/cmd/ @rojkov @bart0sh
|
||||||
/cmd/fpga_tool/ @bart0sh @kad @rojkov
|
/cmd/fpga_tool/ @bart0sh @kad @rojkov
|
||||||
/cmd/qat_plugin/ @rojkov @mythi @swatisehgal
|
/cmd/qat_plugin/ @rojkov @mythi
|
||||||
/cmd/vpu_plugin/ @rojkov @mythi @alekdu
|
/cmd/vpu_plugin/ @rojkov @mythi @alekdu
|
||||||
|
|
||||||
# Framework
|
# Framework
|
||||||
|
66
.travis.yml
66
.travis.yml
@ -1,66 +0,0 @@
|
|||||||
language: go
|
|
||||||
|
|
||||||
dist: xenial
|
|
||||||
|
|
||||||
go:
|
|
||||||
- 1.13.x
|
|
||||||
|
|
||||||
cache:
|
|
||||||
directories:
|
|
||||||
- $GOPATH/pkg/mod
|
|
||||||
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- RUNC_VERSION=v1.0.0-rc10
|
|
||||||
- CRIO_VERSION=v1.17.0
|
|
||||||
- BUILDAH_VERSION=v1.14.0
|
|
||||||
- GO111MODULE=on
|
|
||||||
|
|
||||||
sudo: required
|
|
||||||
|
|
||||||
before_install:
|
|
||||||
- cdir=$(pwd)
|
|
||||||
## install buildah build deps
|
|
||||||
- sudo apt-get update
|
|
||||||
- sudo apt-get -y install e2fslibs-dev libfuse-dev libgpgme11-dev libdevmapper-dev libglib2.0-dev libprotobuf-dev libusb-1.0-0-dev
|
|
||||||
# build buildah
|
|
||||||
- mkdir -p $GOPATH/src/github.com/containers
|
|
||||||
- cd $GOPATH/src/github.com/containers
|
|
||||||
- git clone --single-branch --depth 1 -b $BUILDAH_VERSION https://github.com/containers/buildah
|
|
||||||
- cd buildah
|
|
||||||
- make buildah TAGS=""
|
|
||||||
- sudo cp buildah /usr/local/bin
|
|
||||||
# configure buildah
|
|
||||||
- sudo mkdir -p /etc/containers
|
|
||||||
- sudo mkdir -p /etc/cni/net.d
|
|
||||||
- sudo mkdir -p /opt/cni/bin
|
|
||||||
- sed -i -e 's/build.sh/build_linux.sh/' Makefile
|
|
||||||
- make install.cni.sudo
|
|
||||||
- echo -e '[registries.search]\nregistries = ["docker.io"]\n\n' | sudo tee /etc/containers/registries.conf
|
|
||||||
- sudo curl https://raw.githubusercontent.com/kubernetes-sigs/cri-o/$CRIO_VERSION/test/policy.json -o /etc/containers/policy.json
|
|
||||||
# install runc
|
|
||||||
- sudo curl -L https://github.com/opencontainers/runc/releases/download/$RUNC_VERSION/runc.amd64 -o /usr/bin/runc
|
|
||||||
- sudo chmod +x /usr/bin/runc
|
|
||||||
## checkers
|
|
||||||
- go get -v golang.org/x/lint/golint
|
|
||||||
- go get -v github.com/fzipp/gocyclo
|
|
||||||
- go get -v golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow
|
|
||||||
- cd $cdir
|
|
||||||
|
|
||||||
script:
|
|
||||||
- make go-mod-tidy
|
|
||||||
- make format
|
|
||||||
- make lint
|
|
||||||
- make BUILDTAGS=kerneldrv
|
|
||||||
- make vet
|
|
||||||
- make cyclomatic-check
|
|
||||||
- make test BUILDTAGS=kerneldrv
|
|
||||||
- make -e vendor
|
|
||||||
- make pre-pull
|
|
||||||
- make -j4 images
|
|
||||||
- make images BUILDER=buildah
|
|
||||||
- make demos
|
|
||||||
- make demos BUILDER=buildah
|
|
||||||
|
|
||||||
after_success:
|
|
||||||
- bash <(curl -s https://codecov.io/bash)
|
|
@ -29,7 +29,7 @@ RUN chmod a+x /go/bin/vpu_plugin \
|
|||||||
&& install -D /go/bin/vpu_plugin /install_root/usr/local/bin/intel_vpu_device_plugin \
|
&& install -D /go/bin/vpu_plugin /install_root/usr/local/bin/intel_vpu_device_plugin \
|
||||||
&& install -D ${DIR}/LICENSE /install_root/usr/local/share/package-licenses/intel-device-plugins-for-kubernetes/LICENSE \
|
&& install -D ${DIR}/LICENSE /install_root/usr/local/share/package-licenses/intel-device-plugins-for-kubernetes/LICENSE \
|
||||||
&& scripts/copy-modules-licenses.sh ./cmd/vpu_plugin /install_root/usr/local/share/package-licenses/ \
|
&& scripts/copy-modules-licenses.sh ./cmd/vpu_plugin /install_root/usr/local/share/package-licenses/ \
|
||||||
&& install -D /usr/share/package-licenses/libusb/COPYING -t /install_root/usr/local/share/package-licenses/libusb \
|
&& install -D /usr/share/package-licenses/libusb/* -t /install_root/usr/local/share/package-licenses/libusb \
|
||||||
&& install -D /lib64/libusb-1.0.so.0 /install_root/lib64
|
&& install -D /lib64/libusb-1.0.so.0 /install_root/lib64
|
||||||
|
|
||||||
FROM scratch as final
|
FROM scratch as final
|
||||||
|
Loading…
Reference in New Issue
Block a user