Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update: owners (#1376) Signed-off-by: Wen Zhou <[email protected]> (cherry picked from commit 4a15a8f) Signed-off-by: Wen Zhou <[email protected]> * Dockerfile, Makefile: make CGO_ENABLED configurable (#1382) The commit a107703 ("feat(fips): enable GO_ENABLED in build (#1001)") enabled CGO which makes problems for builders on non-x86 platforms. Make it as an in the Dockerfile keeping default the same (enabled), but make it possible to override with either environment (`export CGO_ENABLED=0`) or make (`make CGO_ENABLED=0 image-build`) Signed-off-by: Yauheni Kaliuta <[email protected]> (cherry picked from commit 2d94349) * Makefile: make USE_LOCAL overridable (#1384) Get USE_LOCAL image build flag from makefile variable to make it overridable with `make USE_LOCAL=true image` Do not allow to get its value for environment be default due to pretty generic name. This is shorter than the old recommendation of overriding IMAGE_BUILD_FLAGS. And since now CGO_ENABLED is also a flag, does not mess up with it. * USE_LOCAL=true uses existing manifests from opt/manifests for the produced image without downloading them with get_all_manifests.sh making it possible to both save time and make local amendments. Signed-off-by: Yauheni Kaliuta <[email protected]> (cherry picked from commit cea41dc) * Dockerfile: merges manifests builder stages to one (#1381) We can combine two build stages into one, as there is no need to always build both images (not done by podman) to only then decide from which one we want to copy manifests to the target image. Instead manifests stage will either copy local manifests or fetches using the script based on USE_LOCAL argument. Move USE_LOCAL and OVERWIRTE_MANIFESTS args under FROM since args have scope of the FROM they are declared in. It requires opt/manifests directory to exist, but since it's a part of git repo, it's fine. Original patch from: Bartosz Majsak <[email protected]> [1] [1] #773 Signed-off-by: Yauheni Kaliuta <[email protected]> (cherry picked from commit c1671ab) * fix: rhoai build has extra manifests than odh's - changes made in odh, missing manifests for rhoai since it is only using builder for main and others from manifests stage Signed-off-by: Wen Zhou <[email protected]> --------- Signed-off-by: Wen Zhou <[email protected]> Co-authored-by: Yauheni Kaliuta <[email protected]>
- Loading branch information