1
0
mirror of https://github.com/containers/buildah.git synced 2026-02-05 09:45:38 +01:00
Commit Graph

12 Commits

Author SHA1 Message Date
Joshua Arrevillaga
eea4838d88 ADD/COPY --link support added
What type of PR is this?
/kind feature

What this PR does / why we need it:
It implements --link for COPY and ADD instructions and enables the creation of
cachable layers that can be reused independently across builds.

Follows buildkit `--link` specifications

How to verify it
bats tests/bud.bats

Which issue(s) this PR fixes:
Fixes #4325

Does this PR introduce a user-facing change?
Yes, gives extra functionality to Containerfiles

Signed-off-by: Joshua Arrevillaga <2004jarrevillaga@gmail.com>
2025-07-09 17:14:28 -04:00
Nalin Dahyabhai
b9a65a9d86 add: add a new --timestamp flag
Add a --timestamp flag to the "add" and "copy" CLIs, along with a
corresponding field in AddAndCopyOptions.

When a timestamp is set, we'll force the timestamp on data copied in to
be the specified value while reading it, so that the content will have
the specified datestamp in the rootfs and when the image is committed.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-05-21 09:51:51 -04:00
Daniel J Walsh
aeb6ffeece Add support for COPY --exclude and ADD --exclude options
Fixes: https://github.com/containers/buildah/issues/5678

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-10-16 16:30:16 -04:00
Nalin Dahyabhai
5f18ba259a AddAndCopyOptions: add CertPath, InsecureSkipTLSVerify, Retry fields
Add CertPath and InsecureSkipTLSVerify flags to AddAndCopyOptions, and
connect the CLI flag values passed to `buildah add` and `buildah build`
so that Builder.Add() gets those.

Add MaxRetries and RetryDelay fields to AddAndCopyOptions, and connect
them to the values passed on the command line to `buildah add` and
`buildah build`.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2024-07-25 17:39:08 -04:00
Philippe Vlérick
547d9bf0e5 Update docs/buildah-add.1.md
Co-authored-by: Tom Sweeney <tsweeney@redhat.com>
Signed-off-by: Philippe Vlérick <pvlerick@gmail.com>
2024-03-18 08:23:50 +01:00
Philippe Vlérick
e635558d2a fix links to containerignore doc
Signed-off-by: Philippe Vlérick <pvlerick@gmail.com>
2024-03-14 11:07:47 +01:00
Jean-Francois Roy
99cad6ee1a Implement ADD checksum flag #5135
See https://docs.docker.com/build/dockerfile/release-notes/#160.

Fixes #5135

Signed-off-by: Jean-Francois Roy <jf@devklog.net>
2023-11-13 08:32:22 -08:00
Peter Whittaker
af38912583 Replace troff code with markdown in buildah-{copy,add}.1.md
Signed-off-by: Peter Whittaker <PeterWhittaker@SphyrnaSecurity.com>
2023-08-21 12:28:08 -04:00
Aditya R
f46ef3b2d7 buildah: support for --retry and --retry-delay for push/pull failures
Allows users to configure `--retry` attempts and `--retry-delay`
duration using two additional flags for commands

* buildah build
* buildah pull
* buildah push
* buildah from
* buildah add
* buildah copy

Closes: https://github.com/containers/buildah/issues/4018

Not sure how we can test retry attempts in CI, but added a test in
tests/bud.bats which verfies we parse and added flag in other options
for sanity parsing checking.

Signed-off-by: Aditya R <arajan@redhat.com>
2022-08-23 12:31:01 +05:30
Erik Sjölund
76e9dbf8a6 [CI:DOCS] Fix typos and improve language
Signed-off-by: Erik Sjölund <erik.sjolund@gmail.com>
2022-01-25 21:55:55 +01:00
Daniel J Walsh
973976a662 De-dockerize the man page as much as possible
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-10-09 08:29:57 -04:00
Daniel J Walsh
a9e66ec72b Add man page for Containerfile and .containerignore
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-09-29 11:19:10 -04:00