Files
linuxkit/docs
Mikhail Malyshev 666bbfdbd5 pkg build: add env var support for mirror, org, builder image and config
Introduce environment variables for key CI/CD flags so that self-hosted
runners (e.g. GitHub Actions) can configure registry mirrors and push
targets without modifying calling Makefiles:

- LINUXKIT_MIRROR         - equivalent to --mirror (space/comma-separated);
                            CLI flags take precedence (last SetProxy wins)
- LINUXKIT_PKG_ORG        - equivalent to --org for all pkg subcommands
- LINUXKIT_BUILDER_IMAGE  - equivalent to --builder-image
- LINUXKIT_BUILDER_CONFIG - equivalent to --builder-config

All env var constants are consolidated in pkg_build.go alongside the
existing LINUXKIT_CACHE, LINUXKIT_BUILDER_NAME, LINUXKIT_BUILDERS.

Priority for all: CLI flag > env var > built-in default

Adds a new Environment Variables section to docs/packages.md with a
reference table covering all LINUXKIT_* vars and a note explaining the
two-layer mirror configuration required in CI (linuxkit pulls vs
buildkit Dockerfile pulls).

Signed-off-by: Roman Shaposhnik <rucoder@gmail.com>
Signed-off-by: Mikhail Malyshev <mike.malyshev@gmail.com>
2026-03-12 10:48:39 +00:00
..
2017-04-21 21:17:32 -05:00
2019-01-18 11:56:18 +13:00
2020-10-21 11:11:48 +03:00
2018-08-13 17:18:55 -07:00
2025-02-21 11:10:35 +02:00
2018-07-09 20:36:58 +01:00
2023-11-14 14:14:45 +02:00
2021-03-30 14:51:11 +01:00
2022-12-30 10:41:34 +02:00
2017-07-26 13:46:51 +03:00
2021-04-30 02:01:55 +03:00
2024-10-01 15:27:55 +03:00