Skip to content

Commit caf1fac

Browse files
authored
docs(boil): Add config section to README (#1538)
1 parent 5751a31 commit caf1fac

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

rust/boil/README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,42 @@ boil image list
3131
# Display a list of versions of the image located in the 'airflow' folder
3232
boil image list airflow
3333
```
34+
35+
## Configuration
36+
37+
### Global Configuration
38+
39+
Project-wide options are configured in the global `boil.toml` configuration file, which is located
40+
at the root of the repository. The config currently supports setting global build arguments and
41+
metadata used for image annotations and tag construction.
42+
43+
```toml
44+
[build-arguments]
45+
FOO = "bar" # Available in all image builds
46+
47+
[metadata]
48+
documentation = "https://docs.example.org" # URL to the documentation for images
49+
source = "https://source.example.org" # URL to the source of the images, like a Git forge
50+
authors = "Foo <foo@example.org>" # One or more source authors
51+
vendor-tag-prefix = "foo" # Prefix used in tag construction, eg. `1.2.3-foo4.5.6`
52+
vendor = "Foo" # Name of the vendor
53+
licenses = "Apache-2.0" # One or more licenses, space separated
54+
```
55+
56+
### Per-image Configuration
57+
58+
boil discovers images by globbing for `boil-config.toml` files in sub directories of the repository.
59+
These configuration files set image specific options, like build arguments, references to local
60+
images, and registry metadata.
61+
62+
```toml
63+
[metadata.registries]
64+
"oci.example.org" = { namespace = "my/namespace" } # Used for image checks
65+
66+
[versions."1.2.3".local-images] # Specify references to local images per version
67+
foo = "1.2.3"
68+
bar = "4.5.6"
69+
70+
[versions."1.2.3".build-arguments] # Specify build arguments per version
71+
FOO = "bar"
72+
```

0 commit comments

Comments
 (0)