7463 Commits

Author SHA1 Message Date
60624f948b podmanV2: implement build
Implement `podman build` for the local client.  The remote client will
require some rather large work in the backend and a new build endpoint
for the libpod rest API.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-04-17 10:26:50 +02:00
554c663b5a Fix bug where two configurations had been created
* registry.PodmanConfig() new returns a pointer to the source of truth

Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-04-16 16:49:59 -07:00
0d2b5532c4 Merge pull request #5852 from baude/v1prune
Podman V2 birth
2020-04-16 14:04:58 -07:00
241326a9a8 Podman V2 birth
remote podman v1 and replace with podman v2.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-04-16 15:53:58 -05:00
88c6fd06cd Merge pull request #5837 from vrothberg/ignore
[CI:DOCS] .gitignore: ignore v2 remote
2020-04-16 12:14:44 -07:00
57f3897289 Merge pull request #5848 from jwhonce/wip/options
V2 Enable rootless
2020-04-16 11:56:16 -07:00
8b178f12ce Merge pull request #5839 from rhatdan/troubleshoot
[CI:DOCS] Add SELinux volume information to troubleshoot.md
2020-04-16 11:30:03 -07:00
1d93d21254 V2 Enable rootless
* Enable running podman V2 rootless
* Fixed cobra.PersistentPreRunE usage in all the commands
* Leveraged cobra.PersistentPreRunE/cobra.PersistentPostRunE to manage:
  * rootless
  * trace (--trace)
  * profiling (--cpu-profile)
  * initializing the registry copies of Image/Container engines
* Help and Usage templates autoset for all sub-commands

Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-04-16 11:08:08 -07:00
5def211400 Merge pull request #5842 from baude/v2bloat2
podman v2 remove bloat v2
2020-04-16 10:52:58 -07:00
a8a61d9764 Add SELinux volume information to troubleshoot.md
This issue happens enough that we need to put it on
the top of the troubleshoot guide.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-04-16 13:25:11 -04:00
8c4d4b58ee Merge pull request #5597 from sujil02/systemd-updates
Update podman-generate-systemd man page
2020-04-16 10:15:09 -07:00
ba430bfe5e podman v2 remove bloat v2
rid ourseleves of libpod references in v2 client

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-04-16 12:04:46 -05:00
c1bafb8b5a Merge pull request #5844 from baude/apiv2filteridfix
allow filters to work when listing containers
2020-04-16 08:50:11 -07:00
e154249b46 allow filters to work when listing containers
enable filters when listing containers on the libpod endpoint.

Fixes: #5841

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-04-16 09:21:44 -05:00
8857ba20a0 Merge pull request #5835 from containers/dependabot/go_modules/github.com/containers/common-0.9.1
Bump github.com/containers/common from 0.9.0 to 0.9.1
2020-04-16 06:31:25 -07:00
a037d9cd4d Update podman-generate-systemd man page
Update links, content, and adding more examples to show how to run
the generated .service files as root and non-root. Fix for #5497

Signed-off-by: Sujil02 <sushah@redhat.com>
2020-04-16 09:17:27 -04:00
155a7d661e Merge pull request #5826 from cevich/gate_pip
Cirrus: Fix gate container build failure
2020-04-16 05:37:21 -07:00
09e821a8ea Merge pull request #5690 from rhatdan/selinux
Add support for selecting kvm and systemd labels
2020-04-16 05:29:19 -07:00
04e83f63a8 .gitignore: ignore v2 remote
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-04-16 12:14:23 +02:00
084cfb81da Merge pull request #5834 from rhatdan/version
Add version to podman info command
2020-04-16 03:09:15 -07:00
897847cccc Bump github.com/containers/common from 0.9.0 to 0.9.1
Bumps [github.com/containers/common](https://github.com/containers/common) from 0.9.0 to 0.9.1.
- [Release notes](https://github.com/containers/common/releases)
- [Commits](https://github.com/containers/common/compare/v0.9.0...v0.9.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-04-16 05:53:35 -04:00
62803f8d3b Add version to podman info command
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-04-15 21:30:56 -04:00
d6b3bc18f8 Merge pull request #5752 from mheon/pod_inspect_structs
Add basic structure of output for APIv2 pod inspect
2020-04-15 17:14:24 -07:00
c7d17613ec Merge pull request #5827 from baude/v2bloat
v2 bloat pruning phase 2
2020-04-15 15:00:13 -07:00
0f7162d791 Merge pull request #5817 from rhatdan/selinux1
Fix up SELinux labeling
2020-04-15 14:28:53 -07:00
82ce9703e1 Add basic structure of output for APIv2 pod inspect
This will replace the structs in use in libpod, which cannot be
used as they are also directly involved in the database
representation of pods and cannot be moved out of Libpod.

Signed-off-by: Matthew Heon <mheon@redhat.com>
2020-04-15 17:21:00 -04:00
30d2964ff8 v2 bloat pruning phase 2
this is second phase of removing unneeded bloat in the remote client. this is important to be able to reduce the client size as well as possible native compilation for windows/mac.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-04-15 16:09:27 -05:00
3500a8bc39 Merge pull request #5830 from baude/v2runtime
podmanv2 fix runtime assignment
2020-04-15 13:54:09 -07:00
c4ca3c71ff Add support for selecting kvm and systemd labels
In order to better support kata containers and systemd containers
container-selinux has added new types. Podman should execute the
container with an SELinux process label to match the container type.

Traditional Container process : container_t
KVM Container Process: containre_kvm_t
PID 1 Init process: container_init_t

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-04-15 16:52:16 -04:00
6e9622aa98 Merge pull request #5775 from sujil02/v2-container-prune
Ability to prune container in api V2
2020-04-15 13:42:36 -07:00
ac94a96a74 Fix up SELinux labeling
SELinux label options processing fixes, should allow system tests to pass.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-04-15 16:30:03 -04:00
195cb11276 Merge pull request #5671 from edsantiago/swagger-check
swagger-check: new CI tool to cross-check swagger
2020-04-15 13:17:31 -07:00
693a8039c8 Merge pull request #5776 from vrothberg/au
auto update: skip non-image policies
2020-04-15 13:15:10 -07:00
bbc0c4a973 podmanv2 fix runtime assignment
when provided by the command line, the runtime assignment needs to send the right attribute

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-04-15 14:49:51 -05:00
97bded8302 Merge pull request #5823 from mheon/update_readme_19
[CI:DOCS] Update README to reflect that latest version is v1.9.0
2020-04-15 14:53:12 -04:00
337e8d6d27 Merge pull request #5786 from containers/dependabot/go_modules/github.com/containers/common-0.9.0
build(deps): bump github.com/containers/common from 0.8.1 to 0.9.0
2020-04-15 11:41:46 -07:00
e394ff407c Cirrus: Fix gate container build failure
Signed-off-by: Chris Evich <cevich@redhat.com>
2020-04-15 13:51:25 -04:00
2aca1b7f9b logformat: handle apiv2 results, add anchor links
apiv2 tests emit TAP-compliant output; recognize it and
highlight it the same way we do BATS tests.

Add anchor links to TAP output, so other tools (e.g.
cirrus-flake-summarize) can link to particular lines

And, remove a "-f" from "wait" in test-apiv2; looks
like there's some version of bash used in some CI VM
that doesn't grok it.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2020-04-15 13:51:25 -04:00
ef297d466e Merge pull request #5767 from edsantiago/logformat_add_anchors_and_apiv2
logformat: handle apiv2 results, add anchor links
2020-04-15 10:50:15 -07:00
9b78bf9293 Merge pull request #5770 from baude/v2events
podmanv2 events
2020-04-15 18:37:18 +02:00
d522755b51 Update README to reflect that latest version is v1.9.0
Signed-off-by: Matthew Heon <mheon@redhat.com>
2020-04-15 11:59:59 -04:00
cc9b78f07c Merge pull request #5820 from mheon/bump-1.9.0
Bump to v1.9.0
2020-04-15 17:53:47 +02:00
ec4060aef6 Ability to prune container in api V2
Adds ability to prune containers for v2.
Adds client side prompt with force flag and filters options to prune.

Signed-off-by: Sujil02 <sushah@redhat.com>
2020-04-15 11:17:33 -04:00
4489440aaf Bump to v2.0.0-dev
Signed-off-by: Matthew Heon <mheon@redhat.com>
2020-04-15 10:51:33 -04:00
d985723506 Bump to v1.9.0
Signed-off-by: Matthew Heon <mheon@redhat.com>
v1.9.0
2020-04-15 10:51:28 -04:00
37ed662f32 Merge pull request #5814 from baude/v2specgenprunelibpod
v2specgen prune libpod
2020-04-15 16:38:52 +02:00
165aef7766 podmanv2 events
add the ability to monitor events

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-04-15 09:38:04 -05:00
a756161e80 Merge pull request #5813 from baude/v2edtests2
More system test fixes on regressions
2020-04-15 15:13:18 +02:00
ffcb99d832 Merge pull request #5818 from vrothberg/fix-nil-deref
podmanV2: fix nil deref
2020-04-15 13:04:00 +02:00
123158e83b podmanV2: fix nil deref
Fix a typo when looking up a flag causing a nil deref and all commands
to fail.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-04-15 11:57:35 +02:00