-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21325 from mheon/bump_490
Podman v4.9.0: Release notes and final cherry-picks
- Loading branch information
Showing
136 changed files
with
1,655 additions
and
1,303 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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
####> This option file is used in: | ||
####> podman build, farm build | ||
####> If file is edited, make sure the changes | ||
####> are applicable to all of those. | ||
#### **--annotation**=*annotation=value* | ||
|
||
Add an image *annotation* (e.g. annotation=*value*) to the image metadata. Can | ||
be used multiple times. | ||
|
||
Note: this information is not present in Docker image formats, so it is | ||
discarded when writing images in Docker formats. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
####> This option file is used in: | ||
####> podman build, farm build | ||
####> If file is edited, make sure the changes | ||
####> are applicable to all of those. | ||
#### **--build-arg-file**=*path* | ||
|
||
Specifies a file containing lines of build arguments of the form `arg=value`. | ||
The suggested file name is `argfile.conf`. | ||
|
||
Comment lines beginning with `#` are ignored, along with blank lines. | ||
All others must be of the `arg=value` format passed to `--build-arg`. | ||
|
||
If several arguments are provided via the `--build-arg-file` | ||
and `--build-arg` options, the build arguments are merged across all | ||
of the provided files and command line arguments. | ||
|
||
Any file provided in a `--build-arg-file` option is read before | ||
the arguments supplied via the `--build-arg` option. | ||
|
||
When a given argument name is specified several times, the last instance | ||
is the one that is passed to the resulting builds. This means `--build-arg` | ||
values always override those in a `--build-arg-file`. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
####> This option file is used in: | ||
####> podman build, farm build | ||
####> If file is edited, make sure the changes | ||
####> are applicable to all of those. | ||
#### **--build-arg**=*arg=value* | ||
|
||
Specifies a build argument and its value, which is interpolated in | ||
instructions read from the Containerfiles in the same way that environment variables are, but which are not added to environment variable list in the resulting image's configuration. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
####> This option file is used in: | ||
####> podman build, farm build | ||
####> If file is edited, make sure the changes | ||
####> are applicable to all of those. | ||
#### **--build-context**=*name=value* | ||
|
||
Specify an additional build context using its short name and its location. | ||
Additional build contexts can be referenced in the same manner as we access | ||
different stages in COPY instruction. | ||
|
||
Valid values are: | ||
|
||
* Local directory – e.g. --build-context project2=../path/to/project2/src (This option is not available with the remote Podman client. On Podman machine setup (i.e macOS and Winows) path must exists on the machine VM) | ||
* HTTP URL to a tarball – e.g. --build-context src=https://example.org/releases/src.tar | ||
* Container image – specified with a container-image:// prefix, e.g. --build-context alpine=container-image://alpine:3.15, (also accepts docker://, docker-image://) | ||
|
||
On the Containerfile side, reference the build context on all | ||
commands that accept the “from” parameter. Here’s how that might look: | ||
|
||
```dockerfile | ||
FROM [name] | ||
COPY --from=[name] ... | ||
RUN --mount=from=[name] … | ||
``` | ||
|
||
The value of [name] is matched with the following priority order: | ||
|
||
* Named build context defined with --build-context [name]=.. | ||
* Stage defined with AS [name] inside Containerfile | ||
* Image [name], either local or in a remote registry |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
####> This option file is used in: | ||
####> podman build, farm build | ||
####> If file is edited, make sure the changes | ||
####> are applicable to all of those. | ||
#### **--cache-from**=*image* | ||
|
||
Repository to utilize as a potential cache source. When specified, Buildah tries to look for | ||
cache images in the specified repository and attempts to pull cache images instead of actually | ||
executing the build steps locally. Buildah only attempts to pull previously cached images if they | ||
are considered as valid cache hits. | ||
|
||
Use the `--cache-to` option to populate a remote repository with cache content. | ||
|
||
Example | ||
|
||
```bash | ||
# populate a cache and also consult it | ||
buildah build -t test --layers --cache-to registry/myrepo/cache --cache-from registry/myrepo/cache . | ||
``` | ||
|
||
Note: `--cache-from` option is ignored unless `--layers` is specified. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
####> This option file is used in: | ||
####> podman build, farm build | ||
####> If file is edited, make sure the changes | ||
####> are applicable to all of those. | ||
#### **--cache-to**=*image* | ||
|
||
Set this flag to specify a remote repository that is used to store cache images. Buildah attempts to | ||
push newly built cache image to the remote repository. | ||
|
||
Note: Use the `--cache-from` option in order to use cache content in a remote repository. | ||
|
||
Example | ||
|
||
```bash | ||
# populate a cache and also consult it | ||
buildah build -t test --layers --cache-to registry/myrepo/cache --cache-from registry/myrepo/cache . | ||
``` | ||
|
||
Note: `--cache-to` option is ignored unless `--layers` is specified. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
####> This option file is used in: | ||
####> podman build, farm build | ||
####> If file is edited, make sure the changes | ||
####> are applicable to all of those. | ||
#### **--cache-ttl** | ||
|
||
Limit the use of cached images to only consider images with created timestamps less than *duration* ago. | ||
For example if `--cache-ttl=1h` is specified, Buildah considers intermediate cache images which are created | ||
under the duration of one hour, and intermediate cache images outside this duration is ignored. | ||
|
||
Note: Setting `--cache-ttl=0` manually is equivalent to using `--no-cache` in the | ||
implementation since this means that the user dones not want to use cache at all. |
Oops, something went wrong.