Commit Graph

92 Commits

Author SHA1 Message Date
Ed Bartosh
f94f6e64e4 intel-idxd-config-initcontainer: don't add source repos 2022-08-19 15:00:49 +03:00
Ed Bartosh
7aff35ea2d fpga,dsa,iaa: Fix CI issue
Due to a glibc version mismatch in the debian repos and the
unstable-slim and testing-slim docker image 3 CI jobs have been failing
for some time. The issue was fixed by switching to testing-slim base image
and started again when the bug was introduced to the image.

Using testing-slim image as a base should fix the issue.

Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
2022-08-17 12:11:13 +03:00
Mikko Ylinen
642c4f7b59 build: move to Go 1.19 and golangci-lint 1.48 because of that
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-08-15 10:13:37 +03:00
Ed Bartosh
70c9a55029 fpga,dsa,iaa: Fix CI issue
Due to a glibc version mismatch in the debian repos and the
unstable-slim docker image 3 CI jobs have been failing last several days.

Using testing-slim image as a base should fix the issue.
2022-08-11 20:37:07 +03:00
Oleg Zhurakivskyy
f1ec14d106 iaa: Add e2e tests
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
2022-06-09 15:00:25 +03:00
Mikko Ylinen
8a73008ab2 images: update to toybox 0.8.7
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-06-08 09:19:39 +03:00
Ed Bartosh
f9aed8f310 upgrade accel-config to v3.4.6.4
This is a preparation for IAA e2e enabling and testing if
it still works with DSA as expected.

This accel-config version has IAA test runner.
2022-06-07 18:13:10 +03:00
Ukri Niemimuukko
30d5a2a13b Allow usage of pre-created licenses and generate dockerfiles
As a build optimization, allow usage of pre-created licenses.
Together with usage of go mod vendor, the container build
times are significantly shorter.

Dockerfiles are generated from include-snippets on the fly.

Signed-off-by: Ukri Niemimuukko <ukri.niemimuukko@intel.com>
2022-05-30 19:36:24 +03:00
Mikko Ylinen
3eb0baee0f images: cleanup whitespace line endings
Just a trivial cleanup using:

$ sed -e 's/[[:space:]]$//' -i *.Dockerfile

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-05-09 12:29:53 +03:00
Ed Bartosh
f17f473f5e
Merge pull request #996 from ozhuraki/idxd-config-ro
idxd: Don't use root filesystem when working with templates
2022-05-05 12:24:04 +03:00
Oleg Zhurakivskyy
54961c3d75 idxd: Make root filesystem read-only
Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
2022-05-05 10:44:47 +03:00
Mikko Ylinen
d6dcd3e3c4 qat: move initcontainer script to standard path
Our images use /usr/local/bin paths so let's follow
that with qat-initcontainer too.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-05-05 08:51:02 +03:00
Oleg Zhurakivskyy
d973414d5d idxd: Update idxd-config-initcontainer to accel-config 3.4.6.3
Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
2022-04-26 12:58:30 +03:00
Mikko Ylinen
30158c81bc ci: move to Go 1.18
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-03-31 18:16:24 +03:00
Hyeongju Johannes Lee
df419b3a82 qat: add initimage to plugin
Signed-off-by: Hyeongju Johannes Lee <hyeongju.lee@intel.com>
2022-03-30 13:46:42 -07:00
Ed Bartosh
6b27cf1f7c Implement IAA plugin, operator, demo
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
2022-03-04 15:58:42 +02:00
Ed Bartosh
2cd1de0c8a
Merge pull request #897 from chaitanya1731/plugins-base-ubi
Images: Updated base image to use 'ubi8-micro' image from RedHat
2022-02-24 13:59:12 +02:00
Mikko Ylinen
4193242a32 images: update license install path in all images
An earlier commit updated the license install paths in our
distroless based images. This updates the remaining ones
to stay consistent.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-02-24 07:01:16 +02:00
chaitanya1731
4633f22b51 Images: Updated base image to use 'ubi8-micro' image from RedHat
Signed-off-by: chaitanya1731 <chaitanya.kulkarni@intel.com>
2022-02-23 13:56:40 -05:00
Chaitanya Kulkarni
8c078f58e1
Images/Script - Added LABELs to all plugins (#894)
Added LABELs (name, vendor, version, release, summary, description) to all plugins and updated
scripts/set-version.sh script to include the LABEL version='<image-tag>' by passing TAG parameter
to make set-version TAG=<image-tag>

Signed-off-by: chaitanya1731 <chaitanya.kulkarni@intel.com>
2022-02-18 10:18:33 +02:00
chaitanya1731
2bcd863593 Images: Moved license path to /install_root/licenses/
Signed-off-by: chaitanya1731 <chaitanya.kulkarni@intel.com>
2022-02-15 13:27:52 -05:00
Mikko Ylinen
00633107d7 images: move to use go-licenses
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-01-26 13:38:13 +02:00
Mikko Ylinen
fd034118b0 images: update license obligations
In Debian, uuid and uuid-dev are totally different things.
accel-config build depends on uuid-dev headers but the runtime
library is libuuid1. This is part of debian:sid-slim so we can
just drop installing uuid. Moreover, it's sufficient that we
only ship accel-config source.

Also, correctly ship OPAE SDK COPYING in the final image.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2022-01-14 13:59:11 +02:00
Mikko Ylinen
b16625e614 images: update toybox to v0.8.6
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2021-12-22 13:05:43 +02:00
Oleg Zhurakivskyy
e281aaa11e dsa: Update idxd-config-initcontainer to accel-config v3.4.3
accel-config v3.4.3 dropped libkmod, libudev dependencies, update
initcontainer to v3.4.3 and drop local customizations / workarounds.

Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
2021-12-07 14:04:57 +02:00
Oleg Zhurakivskyy
6bba74acef dsa: Rename idxd-initcontainer to idxd-config-initcontainer
Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
2021-11-30 15:32:29 +02:00
Oleg Zhurakivskyy
fee2e12996 idxd-initcontainer: Drop libkmod, libudev
- Make libkmod, libudev optional
- Include accel-config, libjson-c, libuuid sources

Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
2021-11-30 15:32:23 +02:00
Hyeongju Johannes Lee
8362028560 dlb: Add new device plugin
Signed-off-by: Hyeongju Johannes Lee <hyeongju.lee@intel.com>
2021-11-11 11:51:49 +02:00
Oleg Zhurakivskyy
a7c612f7fc dsa: Rename dsa initcontainer to idxd
Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
2021-11-09 12:00:44 +02:00
Mikko Ylinen
d195e4a308 images: update pre-pull images
'make pre-pull' pulls the latest (base) images so that the image
build can share the cached pulls.

Update the list of pre-pull images to what we actually use in our
Dockerfiles.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2021-10-19 12:37:36 +03:00
Mikko Ylinen
a0f81d7574 go.mod: move to Go 1.17
go mod tidy adds more requirements because of the changes in 1.17:

"Go versions 1.17 and higher retain more requirements in order to
support lazy module loading."

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2021-10-08 13:10:08 +03:00
Oleg Zhurakivskyy
efb357d47f images: Add intel-dsa-initcontainer
Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
2021-10-01 10:40:24 +03:00
Mikko Ylinen
1fc087e62a qat: kerneldrv: use debian unstable as base
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2021-09-28 08:23:09 +03:00
Mikko Ylinen
7ef78e3176 vpu: use debian unstable as base
To align with other images that use Debian, move intel-vpu-plugin
container image to use unstable too.

Both the build image and the final base image use libusb-1.0 which
is ABI compatible.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2021-09-27 14:54:44 +03:00
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
Hyeongju Johannes Lee
b90812961e Add checksum checks for toybox and qat driver
Add checksum checks for toybox and qat driver
Use toybox version 0.8.5 instead of 0.8.4
Update toybox-config

Signed-off-by: Hyeongju Johannes Lee <hyeongju.lee@intel.com>
2021-09-15 09:44:56 +03:00
Xinran Wang
60b0bfd265 Update qat driver in qat plugin image 2021-09-01 11:05:15 +00: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
06dbc1331b images: move intel-qat-plugin-kerneldrv to Debian
Also, update the documentation to reflect what is needed to
enable and use '-mode kernel'.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2021-06-02 13:39:39 +03:00
Mikko Ylinen
7000d30a35 images: update initcontainers and VPU plugin to new base images
This is the part 2 of the work to move our published container images
to new base images. The initcontainers will be based on
distroless/static and the VPU plugin is based on Debian.

Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2021-06-01 15:05:32 +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
280bdceb2a sgx: add separate admissionwebhook image
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2021-04-14 08:09:33 +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
aee9dd20f8 images: force buildah to use runc
buildah 1.19.4 and its dependencies when installed from the
libcontainers OBS repo, defaulted to crun and that made the
image builds to fail.

By forcing buildah to use runc instead, everything works OK.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2021-02-26 11:48:59 +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
Ed Bartosh
174643436a implement DSA plugin
Signed-off-by: Ed Bartosh <eduard.bartosh@intel.com>
2020-12-03 17:24:48 +02:00
Dmitry Rozhkov
1657b6ea95 operator: run as non-root 2020-11-16 13:42:57 +02:00
Mikko Ylinen
aed51bda06 openssl-qat-engine: update component versions
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2020-11-04 13:18:40 +02:00
Ukri Niemimuukko
505eadaf94 gpu-plugin nfd-hook
This adds an nfd-hook for the gpu-plugin, which will create labels
for the GPUs that can then be used for POD deployment purposes or
creation of GPU extended resources which allow then finer grained
GPU resource management.

The nfd-hook will install to the host system when the
intel-gpu-initcontainer is run. It is added into the plugin deployment
yaml.

Signed-off-by: Ukri Niemimuukko <ukri.niemimuukko@intel.com>
2020-10-01 12:02:57 +03:00