Commit Graph

19 Commits

Author SHA1 Message Date
Ed Bartosh
83f87ea55c change golang base to Debian bullseye
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
2021-09-27 11:53:45 +03:00
Mikko Ylinen
f59a1fb9dc Move to Go 1.16.x
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2021-06-02 13:41:15 +03:00
Mikko Ylinen
c3cf958c85 images: move most plugin images to distroless/static
All but one (VPU) of the published container images can be built with
static binaries which allows us to use distroless/static as the
base image. Moreover, when combined with stripping the plugin binaries,
we can get both build time and image size savings.

This is the part 1 (out of 2) of the rework. Part 2 will finish the
change by making some adjustments to VPU plugin image and moving the
FPGA/SGX/GPU initcontainers to distroless/static too.

Partial: #516

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
2021-05-19 09:44:47 +03:00
Mikko Ylinen
47e138acf1 Revert "ci: workaround buildah errors"
This reverts commit 6c02ff51fc.

crun fails to build the images [1] but when setting BUILDAH_RUNTIME
to runc the workaround is no longer needed.

[1] https://github.com/containers/podman/issues/9378

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2021-02-26 11:54:10 +02:00
Mikko Ylinen
6c02ff51fc ci: workaround buildah errors
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2021-02-16 12:09:49 +02:00
Mikko Ylinen
32ee51e7cc images: add Clear Linux workaround
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2020-12-23 12:15:06 +02:00
Mikko Ylinen
ae28b1c788 images: distribute copyleft sources
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2020-09-21 17:07:06 +03:00
Mikko Ylinen
3b9c57656d images: make os-core install implicit
swupd os-install fails (clearlinux/swupd-client/issues/1369) if
"--bundles=os-core" is used. It was confirmed that os-core is
always installed first regardless of what other --bundles are
specified.

To get the builds working, we move to rely on that implicit os-core
install.

Fixes: #330

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2020-03-12 18:55:01 +02:00
Antti Kervinen
5fe8174077 fpga_plugin: add kustomization files
- Add script/fpga-plugin-prepare-for-kustomization.sh, creates contents
  for the secret needed by the fpga plugin webhook.
- Single-command fpga plugin + webhook deployment for both modes:
  - `kubectl create -k deployments/fpga_plugin/overlays/af`
  - `kubectl create -k deployments/fpga_plugin/overlays/region`
- Change intel-fpga-plugin image CMD to ENTRYPOINT.
2020-02-24 16:32:26 +02:00
Mikko Ylinen
27783e7b94 images: add LICENSEs
This commit adds a script that is (primarily) used in Dockerfiles
to install runtime Go dependencies' LICENSE/NOTICE files into the
image and modifies the Dockerfiles to use the script.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2019-11-13 10:50:57 +02:00
Mikko Ylinen
d3354d0522 travis: Use vendored code for container builds
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2019-11-01 14:32:26 +02:00
Dmitry Rozhkov
097ce827de Add support for go mod
See https://github.com/kubernetes/kubernetes/issues/79384 for details on
how to update K8s dependencies.
2019-08-27 11:40:18 +03:00
Mikko Ylinen
04be52e0a1 fpga: move to clearlinux based images
Switch to clearlinux based image and rootfs and add
enablers to make builds reproducible.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2019-08-24 18:27:39 +03:00
Ubuntu
ded152e8a4 Move FPGA plugin to Distroless and Clearlinux
Signed-off-by: Ubuntu <hector.augusto.garcia.baleon@intel.com>
2019-06-14 18:11:32 +00:00
Dmitry Rozhkov
1732a69e6b bump up Go lang version
The version 1.11 is required to use the latest features of the
`text/template` standard library (mutable variables in templates).
2018-10-04 10:19:23 +03:00
Dmitry Rozhkov
eccd70c600 replace glog with simpler home-grown debug logging 2018-08-16 17:40:16 +03:00
Dmitry Rozhkov
fac7971f10 bump up Go version for Docker builds
This fixes build error:
github.com/intel/intel-device-plugins-for-kubernetes/internal/deviceplugin
../../internal/deviceplugin/server.go:186: cannot use srv (type *server) as type v1beta1.DevicePluginServer in argument to v1beta1.RegisterDevicePluginServer:
	*server does not implement v1beta1.DevicePluginServer (wrong type for Allocate method)
		have Allocate("context".Context, *v1beta1.AllocateRequest) (*v1beta1.AllocateResponse, error)
		want Allocate("github.com/intel/intel-device-plugins-for-kubernetes/vendor/golang.org/x/net/context".Context, *v1beta1.AllocateRequest) (*v1beta1.AllocateResponse, error)
2018-08-07 17:06:07 +03:00
Dmitry Rozhkov
0e810a6cd8 tweak intel-fpga-plugin.Dockerfile to send logs to stderr by default 2018-06-20 09:36:52 +03:00
Dmitry Rozhkov
6a34355da3 simplify Makefile 2018-06-07 15:42:39 +03:00