Commit Graph

25 Commits

Author SHA1 Message Date
tomsweeneyredhat 822a288ba9 Bump to v1.26.0-dev
[NO NEW TESTS NEEDED]

As the title says.

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2022-03-25 10:25:56 -04:00
tomsweeneyredhat cdcaaf51b3 Bump to v1.25.0
[NO NEW TESTS NEEDED]

As the title says.

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2022-03-25 10:07:31 -04:00
tomsweeneyredhat 97ba8c1bb2 Bump to v1.25.0-dev
[NO TESTS NEEDED]

As the title says.

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2022-01-26 16:52:23 -05:00
tomsweeneyredhat 29f6b4f706 Bump to v1.24.0
[NO TESTS NEEDED]

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2022-01-26 16:48:03 -05:00
Paul Holzinger d7ccff3edb
Fix default CNI paths
We need to use the default from containers.conf and not hardcode them in
buildah. This fixes an issue with the cni network backend since it would
try to access /etc/cni/net.d/ even as rootless user. This regression was
introduced in commit f9cff07b81.

Also hide the cni flags as we do not expect users to change this. The
recommended way is to change them in containers.conf.

[NO NEW TESTS NEEDED]

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2022-01-10 15:49:43 +01:00
Nalin Dahyabhai 85ed96bb92 define.TempDirForURL(): show CombinedOutput when a command fails
When define.TempDirForURL() runs an external command, if it fails,
include the command's output in the error that's handed back to its
caller so that the end-user has some idea of what happened.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2021-11-08 10:31:53 -05:00
Ashley Cui 326edb312e Add support for env var secret sources
Run secrets can now be created from an environment variable. The
environment variable is read and is briefly stored as a file on /dev/shm
when it's being used, and the file is removed after the RUN command is
finished.

Fixes: #3524

Signed-off-by: Ashley Cui <acui@redhat.com>
2021-10-26 13:18:00 -04:00
Daniel J Walsh 5fbfcf9794
Bump to v1.24.0-dev
[NO TESTS NEEDED]

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-09-13 16:38:37 -04:00
Daniel J Walsh 37fe4e86c2
Bump to v1.23.0
[NO TESTS NEEDED]

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-09-13 16:38:37 -04:00
Leigh McCulloch 7b15d26248 Fix build with .git url with branch
The build with git URL recognizes git URLs by either a git:// scheme prefix, or
any other URL with other schemes such as https:// and a .git suffix.

The build with git URL and branch recognizes the branch name as the fragment
part of the URL, the part after the #.

The .git suffix check is performed by checking that the suffix of the full URL
is .git, however this causes URLs that begin with scheme https://, and have a
.git path suffix, to not be recognized as git URLs when a branch name is
appended.

The logic for checking if the URL path is suffixed with .git should parse the
URL first and consider only the path when looking for the suffix. This change
is implemented in this commit.

This commit also removes the guard within the cloneToDirectory function because
it is unnecessary since every location the function is called the check has
already been carried out.

Signed-off-by: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com>
2021-09-06 00:17:38 -07:00
TomSweeneyRedHat c4346ef47f Bump to v1.23.0-dev [NO TESTS NEEDED]
[NO TESTS NEEDED]
As the title says.

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2021-08-02 14:18:04 -04:00
TomSweeneyRedHat e6ea308d6d Bump to v1.22.0 [NO TESTS NEEDED]
[NO TESTS NEEDED]

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2021-08-02 14:17:56 -04:00
Daniel J Walsh 1fff9bdbc4
Move to v1.22.0-dev
Since we have a release v1.21.0 going into long term branch, we need to
bump to the next version.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-06-02 15:27:05 -04:00
TomSweeneyRedHat 23924afa06 Bump to v1.21.1-dev [NO TESTS NEEDED]
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2021-05-19 17:58:27 -04:00
TomSweeneyRedHat 5e3515c5b0 Bump to v1.21.0 - [NO TESTS NEEDED]
[NO TESTS NEEDED] As the title says

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2021-05-19 17:47:55 -04:00
TomSweeneyRedHat e5c5760e87 Bump to v1.20.2-dev
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2021-04-13 18:08:07 -04:00
TomSweeneyRedHat 99f733350d Bump to v1.20.1
As the title says.

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2021-04-13 18:05:44 -04:00
Daniel J Walsh f66a6d660d
[NO TESTS NEEDED] Use --recurse-modules when building git context
If a git repository contains submodules, we need to check them all
out because the Containerfile/Dockerfile at the repo might use them.

Fixes: https://github.com/containers/buildah/issues/3104

It is too complicated to setup a recursive submodules git repo, so
setting no tests needed.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-03-26 07:55:58 -04:00
Daniel J Walsh c13f7e3c79
Bump to v1.20.1-dev
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-03-25 13:34:38 -04:00
Daniel J Walsh 293e02ac06
Bump to v1.20.0
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-03-25 13:28:06 -04:00
Daniel J Walsh 898eea8fbe
Make PolicyMap and PullPolicy names align
Currently it is impossible to switch from a PullPolicy type
and PolicyMap via strings.  This PR Makes the types align.

This is required to make passing of PullPolicy in podman-remote
to work.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-03-05 06:21:59 -05:00
Daniel J Walsh 514a3f1a91
Shrink the vendoring size of pkc/cli
This PR removes the pkg/auth which brings in docker/docker
since it really is not needed, and was only there to help users
discover the settings of where the authfile was, when the environment
variables were set.  Would almost never be of any value.

Move imagebuildah.BuildOptions to define.BuildOptions

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-03-03 14:18:35 -05:00
Daniel J Walsh 4704e6cb3f
Eliminate the use of containers/building import in pkg subdirs
We want to shrink the size of the import when importing pkg from
buildah. This should help us shrink the size of the golang bindings
in podman.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-02-12 12:43:08 -05:00
Daniel J Walsh f280cd0285
Add --policy flag to buildah pull
This allows the user to specify the pull policy for pulling images.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-11-13 03:38:27 -05:00
baude 681e3eff98 refactor pullpolicy to avoid deps
refeactor the pullpollicy to its own package so that it can be imported on its own without deps like containers/storage, etc. this will help consuming podman's go bindings.

Signed-off-by: baude <bbaude@redhat.com>
2020-10-12 13:17:31 -05:00