Commit Graph

34 Commits

Author SHA1 Message Date
Tuomas Katila
393f0ca73f images: set 0.30.0 tag for the release
Signed-off-by: Tuomas Katila <tuomas.katila@intel.com>
2024-05-14 13:29:10 +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
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
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
db58cd58bc build: move to Go 1.20
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2023-03-22 14:17:24 +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
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
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
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
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
Ed Bartosh
368f34c76b fpga: run webhook container with user privileges
Modified deployment template and script to run admission controller
webhook with user credentials.
2020-01-14 16:31:32 +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
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
562f8fe722 fpga-admissionwebhook: add initial implementation 2018-06-19 14:55:59 +03:00