6293 Commits

Author SHA1 Message Date
5190407619 Assure validate includes lint
Fixed issue where lint was not run on CI, so we missed to prevent regressions.

Signed-off-by: Sorin Sbarnea <ssbarnea@redhat.com>
2020-01-30 18:39:56 +00:00
ee0b328b72 Merge pull request #5025 from delight/feature/ubuntu_doc_adjustment
Feature/ubuntu doc adjustment
2020-01-30 06:53:58 -08:00
83044fe6c0 Merge pull request #5017 from vrothberg/fix-4829
Makefile cleanups
2020-01-30 06:40:22 -08:00
1729350f66 Merge pull request #4951 from rpjday/docs/unshare
markdown: fix grammar/formatting, standardize on markdown
2020-01-30 06:40:16 -08:00
e83e9f5d71 Merge pull request #5019 from cevich/fix_gate_epoch
Cirrus: Set EPOCH_TEST_COMMIT during gate task
2020-01-30 06:26:39 -08:00
8d765ac018 adjusts install.md (Ubuntu): replaces ${NAME} with hard-encoded Ubuntu to support all *buntu flavors
- combines downloading and registering of the apt-secure key into a piped oneliner
2020-01-30 13:33:05 +01:00
9066051d13 adjusts install.md (Ubuntu): registries.conf setup is now in containers-image package 2020-01-30 12:59:24 +01:00
4ec893a748 speed up Makefile
Speed up the Makefile by removing variable references from the release
targets.  Now, the variables will only be (lazily) evaluated when they
are actually needed and not for each invocation of the Makefile which
has it down considerably.

Fixes: #4829
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-01-30 08:44:34 +01:00
7b14c02d0d Makefile: systemd: echo instead of warn
Just echo the message instead of warning to not impact the exit code.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-01-30 08:44:34 +01:00
79ceb31edf Makefile: remove redundant BUILDFLAGS
We don't set it, so there's no need to keep it.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-01-30 08:44:34 +01:00
9fa8b723c8 Makefile: consistent PHONY use
Add a .PHONY line over each target instead of mixing this notation with
a separate but incomplete single list.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-01-30 08:44:26 +01:00
0428eb6111 Makefile: remove dead vagrant target
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-01-30 08:44:10 +01:00
5aadd45f7c Makefile: move systemd buildtag check
Move the systemd-buildtag check into the `bin/podman` target.
No need to execute the check for all invocations of the
Makefile.

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-01-30 08:44:10 +01:00
eb28365703 Merge pull request #5018 from mheon/new_anon_field
Deprecate & remove IsCtrSpecific in favor of IsAnon
2020-01-29 14:01:52 -08:00
12bd7e927c Cirrus: Set EPOCH_TEST_COMMIT during gate task
For whatever reason, this required variable is not set when `make` is
doing validation within automation.  Fix this by establishing the
value based on data provided from the CI system.  Since this data
is specific to automation executing against a PR, limit this specific
job to not run during testing of branches (post-merge).  This is safe
since we can assume the PR would not have been merged, if the basics
checked during gating did not pass.

Signed-off-by: Chris Evich <cevich@redhat.com>
2020-01-29 15:48:35 -05:00
0e21fc8860 Merge pull request #5015 from baude/bindingtestfixes
apiv2 binding test fixes
2020-01-29 12:30:46 -08:00
5d93c731af Deprecate & remove IsCtrSpecific in favor of IsAnon
In Podman 1.6.3, we added support for anonymous volumes - fixing
our old, broken support for named volumes that were created with
containers. Unfortunately, this reused the database field we used
for the old implementation, and toggled volume removal on for
`podman run --rm` - so now, we were removing *named* volumes
created with older versions of Podman.

We can't modify these old volumes in the DB, so the next-safest
thing to do is swap to a new field to indicate volumes should be
removed. Problem: Volumes created with 1.6.3 and up until this
lands, even anonymous volumes, will not be removed. However, this
is safer than removing too many volumes, as we were doing before.

Fixes #5009

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-01-29 14:04:51 -05:00
a8b4e986f7 apiv2 binding test fixes
a recent refactor in the bindings broke the tests.  quick fixes to get them working again.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-01-29 12:41:39 -06:00
955866c97d Merge pull request #5013 from vrothberg/fix-4916
history: fix size computing
2020-01-29 07:23:32 -08:00
c9fb6d1668 history: fix size computing
Get the layer's size whether it relates to the first history entry or
not.  This fixes issues where the first entry would always be shown
to be of size 0.

Fixes: #4916
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-01-29 14:54:24 +01:00
8241c1ae94 Merge pull request #5011 from vrothberg/fix-4814
run `varlink_generate` on Linux only
2020-01-29 05:49:47 -08:00
633610769e run varlink_generate on Linux only
Running the `varlink_generate` make target on non-Linux machines is not
supported, so restrict it to Linux only.

Fixes: #4814
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-01-29 12:17:42 +01:00
b2ae45cda1 Merge pull request #5008 from baude/badconf
display file name of bad cni conf
2020-01-28 15:55:26 -08:00
50eaf6de92 Merge pull request #4973 from rhatdan/sort
Throw error on invalid sort value
2020-01-28 15:05:30 -08:00
dce5b6176c display file name of bad cni conf
if one of the cni conf files is badly formatted or cannot be loaded, we now display the error as well as the filename.

Fixes: #2909
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-01-28 16:21:59 -06:00
66bb873390 Merge pull request #5007 from baude/disablelogin
rootless login/logout tests fail
2020-01-28 14:13:31 -08:00
38d2ef0cbd Throw error on invalid sort value
We define the valid sort values, so we should throw an error
on invalid sort values.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-01-28 16:34:18 -05:00
bb7f72bbd6 Merge pull request #4997 from jwhonce/issues/4364
Update remote client bridge documentation.
2020-01-28 13:24:06 -08:00
1c10cb30ea rootless login/logout tests fail
On F31 CI tests, we have uncovered several failing tests as rootless that need to be fixed.  For the interim, we are going to disable those tests.  Issue #5006 has been created to track and complete this.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-01-28 15:20:05 -06:00
63b1656f4c Merge pull request #4993 from baude/playkubepull
honor pull policy in play kube
2020-01-28 12:35:12 -08:00
bf097c9e21 Update remote client bridge documentation.
* Add PODMAN_VARLINK_BRIDGE examples.

Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-01-28 13:31:09 -07:00
d8f2333b29 Merge pull request #4984 from baude/pullarchoverride
expose --arch-override option for pull
2020-01-28 11:39:56 -08:00
31a1f44fe6 honor pull policy in play kube
When a container specification has a pull policy, we should honor it when recreating the pods/containers from yaml.  furthermore, ini kube, if a tag is :latest, then the always pull policy is automatically instituted.

Fixes: #4880

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-01-28 13:36:10 -06:00
8692467ad7 Merge pull request #5005 from rpjday/docs/tildes_HOME
docs: replace '~' with $HOME in markdown as '~' isn't rendered properly
2020-01-28 10:54:05 -08:00
c2cde7de61 Merge pull request #4989 from containers/dependabot/go_modules/github.com/opencontainers/selinux-1.3.1
build(deps): bump github.com/opencontainers/selinux from 1.3.0 to 1.3.1
2020-01-28 10:41:41 -08:00
3426c34b77 Merge pull request #4964 from openSUSE/apparmor-signals
apparmor: allow receiving of signals from 'podman kill'
2020-01-28 10:30:57 -08:00
8c825cdaae docs: replace '~' with $HOME in markdown as '~' isn't rendered properly
Apparently, a tilde is currently rendered as a single space, making
a mess of command examples that use it, so use $HOME instead.

https://github.com/mattermost/mattermost-server/issues/8228

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
2020-01-28 12:56:55 -05:00
6cb0f85933 Merge pull request #4988 from containers/dependabot/go_modules/github.com/rootless-containers/rootlesskit-0.7.2
build(deps): bump github.com/rootless-containers/rootlesskit from 0.7.1 to 0.7.2
2020-01-28 08:46:35 -08:00
ef68d37820 Merge pull request #5003 from lsm5/debian-doc-update
install.md: registries.conf setup in containers-image package
2020-01-28 08:35:43 -08:00
a8bd3473e0 Merge pull request #4980 from baude/bindingdocs
[CI:DOCS]Binding overhauls
2020-01-28 08:21:18 -08:00
9019fa5099 install.md: registries.conf setup in containers-image package
No need for separate setup steps with podman 1.7.0~5.

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2020-01-28 10:42:08 -05:00
54587335be [CI:DOCS]Binding overhauls
Add binding for networks and begin documentation for binding methods for godoc.  Also, add major functions to their own subpackages so reduce the amount of of method confusion.  So instead of: bindings.ListImages(), we now do a [bindings].images.List().

Also, the connection is passed to each binding method via a context to allow for future growth.

Lastly, add first set of tests.  There are a couple of things to work out for rootless tests yet.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-01-28 08:42:18 -06:00
d07c263106 Merge pull request #4999 from rpjday/docs/network_rst
docs: fix incomplete heading underlining in network.rst
2020-01-28 05:08:37 -08:00
b94f313fe6 Merge pull request #4996 from baude/rootlessnetns
[CI:DOCS]rootless exec cannot join root namespace
2020-01-28 04:54:50 -08:00
3b574dde6c Merge pull request #4995 from rpjday/docs/podman_stop
docs: add missing hyphen for '-t' option, command '$' prompts
2020-01-28 04:44:15 -08:00
2460bacbf9 docs: fix incomplete heading underlining in network.rst
Lack of proper underlining generates processing diagnostic.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
2020-01-28 06:44:07 -05:00
9d30e9f2b6 Merge pull request #4974 from rhatdan/man
Cleanup man pages exit code descriptions
2020-01-28 03:28:18 -08:00
a0c234f852 build(deps): bump github.com/rootless-containers/rootlesskit
Bumps [github.com/rootless-containers/rootlesskit](https://github.com/rootless-containers/rootlesskit) from 0.7.1 to 0.7.2.
- [Release notes](https://github.com/rootless-containers/rootlesskit/releases)
- [Commits](https://github.com/rootless-containers/rootlesskit/compare/v0.7.1...v0.7.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-01-28 12:21:11 +01:00
c38e22de23 docs: add missing hyphen for '-t' option, command '$' prompts
Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
2020-01-28 05:31:52 -05:00
12b379a623 build(deps): bump github.com/opencontainers/selinux from 1.3.0 to 1.3.1
Bumps [github.com/opencontainers/selinux](https://github.com/opencontainers/selinux) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/opencontainers/selinux/releases)
- [Commits](https://github.com/opencontainers/selinux/compare/1.3.0...v1.3.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-01-28 11:16:17 +01:00