forked from k0sproject/k0s
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce K0S_BUILDMODE Makefile variable
Allow to select how to build k0s, similar to what EMBEDDED_BIND_BUILDMODE is doing for the embedded binaries. The two supported values are "docker", which is the default and builds k0s the usual way, and "host", which bypasses Docker and uses the toolchains present on the host system. Doing this was already partly possible via `make GO_ENV=''`, but this still called out to Docker to build the k0s build image and for the codegen tasks. The K0S_BUILDMODE variable bypasses Docker correctly for all make requisites of k0s, including codegen. Note that this doesn't impact the embedded binaries, so they need to be skipped via EMBEDDED_BIND_BUILDMODE=none to have a completely Docker-free build. This allows for building and testing k0s on systems that don't have Docker, or on architectures for which there are no appropriate Docker images available. Signed-off-by: Tom Wieczorek <[email protected]>
- Loading branch information
Showing
2 changed files
with
45 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters