Tonis Tiigi
c5322ca727
bake: add --var flag for setting variable values
...
This provides alternative way to set values for Bake
variables without adding them the global environment variables.
This can also be used then environment variable access
is disabled with BUILDX_BAKE_DISABLE_VARS_ENV_LOOKUP.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2026-01-15 23:17:28 -08:00
Tõnis Tiigi and GitHub
c6d1e397a8
Merge pull request #3352 from crazy-max/compose-pull-nocache
...
bake: pull and no-cache support for compose
2025-08-11 11:55:06 +03:00
CrazyMax
c365f015b1
compose: sanitize value of named contexts for target type
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2025-08-08 14:43:48 +02:00
CrazyMax
669fd1df2f
bake: pull and no-cache support for compose
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2025-08-05 11:49:37 +02:00
Guillaume Lours
19304c0c54
bump compose-go to v2.8.0
...
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com >
2025-07-23 13:16:22 +02:00
CrazyMax
98f04b1290
bake: fix compose files validation
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2025-07-22 10:18:14 +02:00
CrazyMax
c124b14978
bake: ignore unrelated fields when parsing compose files
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2025-07-04 08:09:14 +02:00
CrazyMax
68b49403a3
compose: evaluate vars from current env in dotenv file
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2025-07-01 09:43:17 +02:00
CrazyMax
40e3e5a27e
compose: ignore dotenv that is a directory
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2025-06-30 17:11:54 +02:00
CrazyMax
989978a42b
bake: multi ips support for extra hosts
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2025-06-16 11:55:17 +02:00
CrazyMax
b514ed45fb
bake: extra-hosts support
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2025-06-11 19:38:01 +02:00
CrazyMax
1383aa30c1
lint: modernize fix
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2025-05-13 20:44:57 +02:00
Tonis Tiigi
49bd7e4edc
bake: fix platforms field in compose yaml
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2025-04-07 14:14:40 -07:00
CrazyMax
e114dd09a5
bake: support compose service as build context
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2025-03-27 17:58:16 +01:00
Guillaume Lours
e762d3dbca
update compose build ssh path to an absolute one
...
the unit test doesn't define a working_dir so path generate on Windows is escaped
this use case is already covered and tested by compose-go CI
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com >
2025-01-08 11:57:35 +01:00
Jonathan A. Sternberg
3ccbb88e6a
bake: initial set of composable bake attributes
...
This allows using either the csv syntax or object syntax to specify
certain attributes.
This applies to the following fields:
- output
- cache-from
- cache-to
- secret
- ssh
There are still some remaining fields to translate. Specifically
ulimits, annotations, and attest.
Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com >
2024-11-21 12:31:11 -06:00
CrazyMax
7957b73a30
bake: use compose project name from env if set
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2024-07-04 16:37:07 +02:00
CrazyMax
5599699d29
test: compose cgroup property
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2024-06-25 18:22:50 +02:00
Sumner Warren and Sumner Warren
224c6a59bf
Bake: support compose ssh config
...
Signed-off-by: Sumner Warren <sumner.warren@gmail.com >
2024-05-13 08:46:17 -04:00
CrazyMax
64e2b2532a
bake: ulimits support
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2024-02-20 11:23:42 +01:00
CrazyMax
c2befc0c12
bake: shm-size support
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2024-02-20 11:23:42 +01:00
CrazyMax
5130700981
test: revert non-deterministic compose context path
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2024-01-31 14:15:57 +01:00
CrazyMax and CrazyMax
13beda8b11
vendor: update compose-go to v2.0.0-rc.3
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2024-01-31 14:15:57 +01:00
CrazyMax
159eac42f3
compose: test with develop section
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2023-09-30 06:46:51 +02:00
CrazyMax and CrazyMax
56d55a4137
test: fix non-deterministic compose context path
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2023-08-23 11:15:50 +02:00
CrazyMax
b01693f63e
bake: test compose include
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2023-08-04 17:24:30 +02:00
Guillaume Lours and CrazyMax
4a059d5144
adapt compose unit tests, build context is now transformed to absolute paths by compose-go
...
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com >
2023-08-04 17:23:12 +02:00
Guillaume Lours and CrazyMax
f3775c0046
bump compose-go version to v1.17.0 to fix issue with depends_on
...
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com >
2023-08-04 17:23:04 +02:00
CrazyMax
120f3a8918
bake: ignore profiles in compose definitions
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2023-06-22 17:44:35 +02:00
Justin Chadwell
e228c398f4
bake: support compose additional contexts
...
compose-go v1.13.0 supports the new additional_contexts to allow passing
additional build context during build, so we should map this to bake's
contexts property.
Signed-off-by: Justin Chadwell <me@jedevc.com >
2023-05-10 09:41:37 +01:00
Justin Chadwell
5d06406f26
bake: support compose inline dockerfile
...
compose-go v1.13.0 supports the new dockerfile_inline to allow including
a dockerfile inline in the compose definition, so we should map this to
bake's dockerfile-inline property.
Signed-off-by: Justin Chadwell <me@jedevc.com >
2023-05-10 09:39:00 +01:00
CrazyMax
df4957307f
bake: support null arg value
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-12-14 08:29:27 +01:00
CrazyMax
9c22be5d9c
bake: test compose file validation
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-08-18 11:34:41 +02:00
CrazyMax
982a332679
bake(compose): fix unskipped services without build context
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-08-18 11:34:40 +02:00
CrazyMax
7d8a6bc1d7
bake: load .env file from working dir for compose files
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-08-10 03:24:38 +02:00
CrazyMax
a378f8095e
test: misplaced expected value in assert
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-08-10 02:18:35 +02:00
CrazyMax
7f572eb044
bake: contexts support with x-bake
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-08-05 15:21:26 +02:00
CrazyMax
7ef679d945
bake(compose): allow dot in target name
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-07-31 16:53:44 +02:00
CrazyMax
12fde33d9b
bake: dedup compose main and extension fields values
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-06-23 21:58:05 +02:00
CrazyMax
a0f92829a7
bake: merge cache-from field from compose and x-bake
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-06-23 21:58:05 +02:00
CrazyMax
b438032a60
bake: support compose build cache_to
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-06-23 21:58:04 +02:00
CrazyMax
5ce3909c48
bake: fix compose consistency check
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-06-23 13:09:17 +02:00
CrazyMax
432c2b2650
bake: better handling of compose extension interface
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-06-14 23:23:43 +02:00
CrazyMax
6cb1b85d7b
bake: support compose build tags
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-06-14 18:45:57 +02:00
CrazyMax
e0350f671a
bake: support compose secrets env
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-06-14 18:45:23 +02:00
CrazyMax
c0f8a8314b
bake: support compose build secrets
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-04-14 01:28:00 +02:00
CrazyMax
243b428a58
compose: add test for port mapping
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-03-30 00:37:55 +02:00
CrazyMax
c74b2fe7a4
bake: restrict target name
...
This fix adds a restriction `[a-zA-Z0-9_-]+`
for target name. This is pretty much the same as the
container name restriction in moby.
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-01-26 10:29:21 +01:00
CrazyMax
5d715ada96
compose: resolve build args from service environment
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-01-06 11:59:49 +01:00
CrazyMax
3400fa5628
compose: test env_file
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-01-06 11:42:16 +01:00