Commit Graph

42 Commits

Author SHA1 Message Date
Ed Bartosh
e58369ed13 rename deprecated prestart to createRuntime
`prestart` hook is marked as deprecated in the OCI runtime spec:
https://github.com/opencontainers/runtime-spec/blob/main/config.md#posix-platform-hooks

Renamed `prestart` to the `createRuntime` as suggested in the spec.

Replaced `CDI hook` with `OCI hook` to be more clear. CDI is just a
way to update OCI config and theoretically there is no such thing as
CDI hook.
2024-05-22 19:54:53 +03:00
Ed Bartosh
8eac8b5edd fpga: remove generation of the CRI-O hook 2024-05-22 14:57:03 +03:00
Mikko Ylinen
f0628ca7c0 images: update toybox to v0.8.11
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2024-04-23 18:17:15 +03:00
Mikko Ylinen
9ae018bfa6 build: Go 1.22
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2024-02-12 10:33:53 +02:00
Mikko Ylinen
e02c480ab7 images: use buildkit again
The Toybox images had two issues:

1. Distroless does not support /bin -> /usr/bin so we needed to
create it manually to get /bin/bash for Toybox. However, with this
Openshift image validation complains that we are touching the "base"
image.

2. We could not use buildkit since it fails with /bin symlink
copied over /bin directory from Distroless.

The simple fix is just to move away from all /bin/sh and /bin/bash
and use "/usr/bin/env bash" to resolve the path instead. This allows
to keep /bin untouched.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2023-12-08 08:01:22 +02:00
Tuomas Katila
b2ca7d3c51 build: use stricter build flags
Signed-off-by: Tuomas Katila <tuomas.katila@intel.com>
2023-11-09 10:40:46 +02:00
Mikko Ylinen
50cb557cec build: move to Go 1.21.x
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2023-09-26 15:37:12 +03:00
Mikko Ylinen
900d0ebf9c images: have base image specific toybox config
Our *.Dockefile's allow builders to specify FINAL_BASE base image
to which static binaries are copied for the final image.

Initcontainers install toybox with a minimum set of "coreutils"
needed but with some final base images the minimum set can be
even smaller since they may already have /bin/sh, ls etc. installed.

Make initcontainers to have base image specific toybox-config.
For now, "static" for distroles/static and "ubi8-micro" for
UBI base image configs are created.

At the same time, move the toybox build to "usrmerge" based
setup where everything is installed to /usr/bin and /bin is
a symlink to /usr/bin. buildkit does not seem to like it so
disable buildkit usage for now.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2023-09-08 09:38:18 +03:00
Mikko Ylinen
8964bb2489 images: update OCP base image to ubi9-micro
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2023-09-08 09:38:18 +03:00
Mikko Ylinen
47b84bbb60 images: update to toybox v0.8.10
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2023-08-07 09:10:08 +03:00
Mikko Ylinen
db58cd58bc build: move to Go 1.20
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2023-03-22 14:17:24 +02:00
Mikko Ylinen
2c0d2eb187 images: update toybox v0.8.9
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2023-01-13 15:41:21 +02:00
Tuomas Katila
e9267e43c9 Improve dockerfiles based on feedback from hadolint
Co-authored-by: Mikko Ylinen <mikko.ylinen@intel.com>
Signed-off-by: Tuomas Katila <tuomas.katila@intel.com>
2022-10-14 08:22:57 +03:00
Hyeongju Johannes Lee
098023c4ec images: update to toybox 0.8.8
Signed-off-by: Hyeongju Johannes Lee <hyeongju.lee@intel.com>
2022-10-11 13:53:45 +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
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
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
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
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
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
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
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
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
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
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
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
Alexander D. Kanevskiy
9d585ea0b8
Merge pull request #209 from bart0sh/PR0061-fix-deployment-setup
fpga: fix deployment setup
2019-08-27 16:26:13 +03: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
Ed Bartosh
a4c124777a fpga: fix deployment setup
- used ENTRYPOINT instead of CMD in plugin and admission webhook
  Dockerfiles to avoid duplicating commands in the pod yamls
- fixed path to deploy.sh script in fpga initcontainer Dockerfile
2019-08-27 11:03:03 +03:00
Alexander Kanevskiy
6fd729f12c Cleanup and fixes for FPGA initcontainer
- Simplify initcontainer, we don't need OPAE anymore
- Remove old initcontainer related files
2019-08-25 02:37:07 +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
Alexander Kanevskiy
186ec6613c FPGA: migrate to ClearLinux environment
- Migrate to OPAE 1.3.2
- Build all the tools from the source
- ignore files in workspace
- minimal fpga_tool utility to check gbs/aocx file parsing and flashing
- implemented kernel IOCTL based flashing of bitstreams
- add PCI and sysfs functions
2019-08-24 02:55:19 +03:00