Miloslav Trmač
8153ea358a
Make libpod/lock/shm completely Linux-only
...
If the tests are not Linux-only, (go test ./...) still tries
to build and test the package.
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2020-03-21 00:21:59 +01:00
Miloslav Trmač
d48b0b5131
Add stubs for pkg/adapter/terminal_linux.go
...
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2020-03-21 00:21:59 +01:00
Miloslav Trmač
c6277e7433
Add a stub for libpod.Container.Top
...
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2020-03-21 00:21:59 +01:00
Miloslav Trmač
bdfe8e699e
Make cmd/podman/shared.GenerateCommand tests Linux-only
...
They rely on existence of /proc/self/exe .
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2020-03-21 00:21:59 +01:00
Miloslav Trmač
054addf7ac
Fix the libpod.LabelVolumePath stub
...
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2020-03-21 00:21:59 +01:00
Miloslav Trmač
e625b57d22
Only run TestGetImageConfigStopSignal on Linux
...
... because the implementation requires Linux-only pkg/signal
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2020-03-21 00:21:59 +01:00
Miloslav Trmač
036531c006
Fix the pkg/specgen/SpecGenerator.getSeccompConfig stub
...
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2020-03-20 23:25:15 +01:00
OpenShift Merge Robot
7a095af92a
Merge pull request #5571 from baude/v2exists
...
podmanv2 container exists|wait
2020-03-20 22:22:20 +01:00
OpenShift Merge Robot
6df1d2043b
Merge pull request #5574 from baude/podtest
...
[CI:DOCS]fix type issue in pod binding test
2020-03-20 21:00:28 +01:00
Brent Baude
f76aad0d47
[CI:DOCS]fix type issue in pod binding test
...
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-03-20 14:45:27 -05:00
Brent Baude
c81e065149
podmanv2 enable remote wait
...
enable remote container wait with condition
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-03-20 14:33:33 -05:00
Brent Baude
4a00409bf8
fix remote connection use of context
...
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-03-20 13:15:50 -05:00
Brent Baude
baf3a9b3a7
use boolreport for containerexists response
...
in the case of exists, use a boolreport structure so that responses can be consistent pointer and error
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-03-20 13:01:24 -05:00
Brent Baude
87293028e6
podmanv2 container exists|wait
...
enable container exists and wait for podmanv2
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-03-20 12:54:45 -05:00
OpenShift Merge Robot
ccc30c606e
Merge pull request #5539 from sujil02/issue-5461
...
Implemented --iidfile for podman commit
2020-03-20 11:45:32 +01:00
OpenShift Merge Robot
d927b43350
Merge pull request #5525 from baude/apiv2bindinglogs
...
apiv2 add bindings for logs|events
2020-03-19 23:49:44 +01:00
OpenShift Merge Robot
aa6c8c2e55
Merge pull request #5088 from mheon/begin_exec_rework
...
Begin exec rework
2020-03-19 22:09:40 +01:00
Sujil02
5efa6dae90
Implemented --iidfile for podman commit
...
Added flag to Write the image ID to the file with podman commit command.
Fix to issue #5461
Signed-off-by: Sujil02 <sushah@redhat.com>
2020-03-19 16:32:02 -04:00
OpenShift Merge Robot
c1ff17acfa
Merge pull request #5561 from jwhonce/wip/entities
...
[CI:DOCS] Add guidelines for writing podman V2 CLI commands
2020-03-19 20:48:08 +01:00
OpenShift Merge Robot
798d82951e
Merge pull request #5558 from mheon/bump-1.8.2
...
Bump to v1.8.2
2020-03-19 20:45:26 +01:00
Jhon Honce
46b338c77d
Add guildline for writing podman V2 CLI commands
...
Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-03-19 11:54:27 -07:00
OpenShift Merge Robot
cccd05cb5b
Merge pull request #5557 from baude/removebinary
...
[CI:DOCS]remove podmanv2 binary
2020-03-19 19:38:55 +01:00
Matthew Heon
aef32407eb
Bump to v1.8.3-dev
...
Signed-off-by: Matthew Heon <mheon@redhat.com>
2020-03-19 13:38:44 -04:00
Matthew Heon
028e3317eb
Bump to v1.8.2
...
Signed-off-by: Matthew Heon <mheon@redhat.com>
2020-03-19 13:38:41 -04:00
Brent Baude
9e886d3a4a
[CI:DOCS]remove podmanv2 binary
...
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-03-19 12:23:08 -05:00
OpenShift Merge Robot
1cb3e3a705
Merge pull request #5556 from mheon/release_notes_182_final
...
[CI:DOCS] Update release notes for v1.8.2 final release
2020-03-19 18:21:59 +01:00
OpenShift Merge Robot
093d9ef673
Merge pull request #5546 from jwhonce/wip/entities
...
V2 podman command
2020-03-19 18:19:43 +01:00
OpenShift Merge Robot
b43e249b1d
Merge pull request #5554 from baude/compatfix
...
fix reported compat issues
2020-03-19 17:34:39 +01:00
Matthew Heon
0286023437
Update release notes for v1.8.2 final release
...
Signed-off-by: Matthew Heon <mheon@redhat.com>
2020-03-19 12:24:55 -04:00
OpenShift Merge Robot
49a7856f2e
Merge pull request #5465 from edsantiago/man_page_option_checker
...
New test: man page cross-ref against --help
2020-03-19 16:53:02 +01:00
OpenShift Merge Robot
edcc73eeb2
Merge pull request #5551 from rhatdan/windows
...
Don't include SUBDIR in windows.zip
2020-03-19 16:06:27 +01:00
Brent Baude
d375424854
fix reported compat issues
...
honor -1 in in list containers for compatibility mode. it is commonly used to indicate no limit.
change the json id parameter to Id in container create.
Fixes : #5553
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-03-19 10:05:10 -05:00
OpenShift Merge Robot
1be6178915
Merge pull request #5445 from sujil02/podFilter-new
...
Filter pods through pod list api
2020-03-19 15:50:50 +01:00
Brent Baude
d1c26af144
apiv2 add bindings for logs|events
...
add go-bindings for logs and events. tests were also added.
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-03-19 09:38:00 -05:00
OpenShift Merge Robot
e87fe4dbbb
Merge pull request #5550 from giuseppe/rootless-hidepid
...
rootless: fix usage with hidepid=1
2020-03-19 14:07:58 +01:00
Daniel J Walsh
fea5f913e3
Don't include SUBDIR in windows.zip
...
The zip file should returne podman.exe plus the documentation
directory.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-03-19 08:57:54 -04:00
Giuseppe Scrivano
1091440e5d
rootless: fix usage with hidepid=1
...
when /proc is mounted with hidepid=1 a process doesn't see processes
from the outer user namespace. This causes an issue reading the
cmdline from the parent process.
To address it, always read the command line from /proc/self instead of
using /proc/PARENT_PID.
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-03-19 11:18:23 +01:00
Jhon Honce
fbe743501e
V2 podman command
...
Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-03-18 16:41:12 -07:00
OpenShift Merge Robot
bd9386ddac
Merge pull request #5542 from rhatdan/vendor
...
Vendor in containers/buildah v1.14.3
2020-03-18 22:16:23 +01:00
OpenShift Merge Robot
464a1cd485
Merge pull request #5540 from jwhonce/issues/5531
...
Reduce CPU usage when --timeout=0
2020-03-18 21:55:09 +01:00
OpenShift Merge Robot
d66d542820
Merge pull request #5544 from baude/apiv2serveswagger
...
serve swagger when present
2020-03-18 21:26:52 +01:00
OpenShift Merge Robot
c9c95a7e0b
Merge pull request #5543 from edsantiago/swagger_fixes
...
swagger: more consistency fixes
2020-03-18 21:24:21 +01:00
Brent Baude
52c8350530
serve swagger when present
...
register the swagger endpoint and add some error handling for when the swagger file does not exist
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-03-18 14:34:14 -05:00
Ed Santiago
f557cf91d2
swagger: more consistency fixes
...
Some new 'manifests' entries have the wrong {name} parameter
Signed-off-by: Ed Santiago <santiago@redhat.com>
2020-03-18 13:33:07 -06:00
Daniel J Walsh
67d0d1e509
Vendor in containers/buildah v1.14.3
...
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-03-18 14:26:40 -04:00
OpenShift Merge Robot
45e7cbfef6
Merge pull request #5480 from vrothberg/auto-updates
...
auto update containers in systemd units
2020-03-18 18:27:33 +01:00
Jhon Honce
651ddd3560
Reduce CPU usage when --timeout=0
...
* Add second go routine for when a Timer is not needed.
* goimports updated some project files
Fixes #5531
Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-03-18 10:27:25 -07:00
Ed Santiago
81005f463e
New test: man page cross-ref against --help
...
New hack/xref-helpmsgs-manpages script, added to CI 'gate'
task, runs 'podman [subcommand] --help' and cross-references
against man pages in docs/source/markdown/podman*.1.md
See #5453 and #5460 for instances of the problems the
script has found.
The careful reader will find an alarming number of special-case
bypasses. These are a tradeoff I am making: to get perfect
coverage with no handwaving, it would be necessary to make
drastic changes to some man pages, and I believe those would
be counterproductive.
Signed-off-by: Ed Santiago <santiago@redhat.com>
2020-03-18 11:03:26 -06:00
Matthew Heon
e89c6382ae
Add inspect for exec sessions
...
This produces detailed information about the configuration of an
exec session in a format suitable for the new HTTP API.
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-03-18 11:02:14 -04:00
Matthew Heon
118e78c5d6
Add structure for new exec session tracking to DB
...
As part of the rework of exec sessions, we need to address them
independently of containers. In the new API, we need to be able
to fetch them by their ID, regardless of what container they are
associated with. Unfortunately, our existing exec sessions are
tied to individual containers; there's no way to tell what
container a session belongs to and retrieve it without getting
every exec session for every container.
This adds a pointer to the container an exec session is
associated with to the database. The sessions themselves are
still stored in the container.
Exec-related APIs have been restructured to work with the new
database representation. The originally monolithic API has been
split into a number of smaller calls to allow more fine-grained
control of lifecycle. Support for legacy exec sessions has been
retained, but in a deprecated fashion; we should remove this in
a few releases.
Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-03-18 11:02:14 -04:00