Commit Graph

8429 Commits

Author SHA1 Message Date
Daniel J Walsh f8632bad82
Fix builds on 32 bit arches
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-05-27 09:52:36 -04:00
Valentin Rothberg d6fd0952f8 v2 libpod push: correct docs
The swagger documentation for the libpod push endpoint were not in sync
with the implementation.  Correct these docs to reflect the parameters
that are actually supported.

Fixes: #6388
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-05-27 15:26:46 +02:00
OpenShift Merge Robot 9cb5c87284
Merge pull request #6406 from vrothberg/stats-race
container stats: fix --no-stream race
2020-05-27 09:26:39 -04:00
Valentin Rothberg 3cef598fc2 container stats: fix --no-stream race
Fix a race in `podman container stats` by waiting for the client to
consume the data in the channel.  This requires a `sync.WaitGroup` (or
semaphore) in the client and to also close the channel the backend.

Fixes: #6405
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-05-27 13:51:48 +02:00
Boaz Shuster 1f8a78747a Add --format to pod inspect
Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>
2020-05-27 09:48:38 +03:00
OpenShift Merge Robot 119e13d4bc
Merge pull request #6396 from damdo/docs-fix-typo
docs: fix typo
2020-05-26 17:08:33 -04:00
Matthew Heon e26f9eda64 Add support for `readonly` option to --mount
This is just an alias to the `ro` option, but it's already in the
manpages (and Docker) so we might as well add support for it.

Fixes #6379

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-05-26 16:05:11 -04:00
OpenShift Merge Robot e704da0c52
Merge pull request #6385 from containers/dependabot/go_modules/github.com/opencontainers/selinux-1.5.2
Bump github.com/opencontainers/selinux from 1.5.1 to 1.5.2
2020-05-26 15:59:46 -04:00
Damiano Donati 26c8a826a6
docs: fix typo
- Similar is misspelled
- a `to` is missing after Similar

Signed-off-by: Damiano Donati <damiano.donati@gmail.com>
2020-05-26 20:59:40 +01:00
OpenShift Merge Robot d32d588504
Merge pull request #6363 from jwhonce/wip/attach
V2 Fix interface nil checks
2020-05-26 14:36:17 -04:00
OpenShift Merge Robot d6a7096d61
Merge pull request #6393 from rhatdan/dockerfile
Fix Dockerfile
2020-05-26 14:11:55 -04:00
Brent Baude 5dfddf04ee v2 copy endpoints
add copy endpoint inputs and outputs.  these endpoints are not implemented yet, nor are any bindings.  this allows us to update this later without having to change our api version.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-05-26 12:04:20 -05:00
Jhon Honce 1fb907198f V2 Fix interface nil checks
Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-05-26 10:00:15 -07:00
OpenShift Merge Robot 07ef44e2f3
Merge pull request #6390 from edsantiago/registry_show_errors
podman-registry: fix lost credentials
2020-05-26 11:28:07 -04:00
OpenShift Merge Robot 5c10533d49
Merge pull request #6394 from TomSweeneyRedHat/dev/tsweeney/uppercase
[CI:DOCS] Tweak casing in rootless doc
2020-05-26 11:25:22 -04:00
TomSweeneyRedHat c79c69f275 [CI:DOCS] Tweak casing in rootless doc
I just noticed a few 'podman' references that should be
'Podman' in the rootless doc.  This fixes it.

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2020-05-26 10:55:34 -04:00
Ed Santiago b81b865b52 podman-registry: many unrelated fixes
1) fix lost credentials.

    must_pass(), added in #6375, eats the credentials
    generated via 'podman run --entrypoint htpasswd'.
    Run that podman instance directly, and add explicit
    error check.

    (The error and stdout/stderr handling here has gotten
    cumbersome. There must be something I'm missing that
    could make it all simpler.)

 2) fix default podman path.

    When setting $PODMAN, default to the locally built
    one -- there may not be one in $PATH (e.g. in
    Ubuntu, see #6366). This in turn requires us to:

 3) run registry test in integration, not unit test

    It looks like unit tests run before podman is built,
    causing a chicken-egg dilemma. Try to solve that by
    running the new hack/podman-registry-go test in
    integration tests, not unit tests.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2020-05-26 08:21:46 -06:00
Daniel J Walsh 154debb804
Fix Dockerfile
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-05-26 09:53:27 -04:00
dependabot-preview[bot] a08f3a745a
Bump github.com/opencontainers/selinux from 1.5.1 to 1.5.2
Bumps [github.com/opencontainers/selinux](https://github.com/opencontainers/selinux) from 1.5.1 to 1.5.2.
- [Release notes](https://github.com/opencontainers/selinux/releases)
- [Commits](https://github.com/opencontainers/selinux/compare/v1.5.1...v1.5.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-05-26 06:07:34 -04:00
OpenShift Merge Robot 1077d2d0b7
Merge pull request #6321 from Luap99/podman-generate-systemd-unit-prefix
Allow to change the generated systemd unit name prefix
2020-05-25 06:46:17 -04:00
OpenShift Merge Robot 3fec749f56
Merge pull request #6375 from edsantiago/registry_show_errors
podman-registry helper script: handle errors
2020-05-25 06:43:35 -04:00
OpenShift Merge Robot 0b7b974868
Merge pull request #6238 from baude/v2compatnet
network compatibility endpoints for API
2020-05-25 04:46:47 -04:00
OpenShift Merge Robot f51d18a10f
Merge pull request #6359 from rhatdan/build4
Turn on Fedora31 testing.
2020-05-25 04:43:44 -04:00
OpenShift Merge Robot c27f8f488a
Merge pull request #6367 from rhatdan/VENDOR
Vendor in latest containers/buildah
2020-05-25 04:40:56 -04:00
OpenShift Merge Robot 3ea511566a
Merge pull request #6373 from lsm5/Makefile-custom-REMOTETAGS
Makefile: customizable $REMOTETAGS
2020-05-25 04:24:44 -04:00
Ed Santiago f75ad6d5c2 podman-registry helper script: handle errors
My initial revision of the podman-registry helper script
was written in haste, with an enormous tradeoff: no
visibility into any errors. We are now paying for this
in #6366: the script is failing on Ubuntu and we
have no way of knowing why.

This PR adds a must_pass() function used for critical
steps. This runs the action silently; if the command
fails, it displays the failing command name with
full output logs, cleans up the temporary workdir,
and exits with error status.

As a reminder, the reason this is necessary is that
our script convention is to output a series of
environment variables to stdout -- we must therefore
take pains not to emit anything else to stdout.
And, unfortunately, podman and openssl tend to be
rather verbose.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2020-05-24 08:10:54 -06:00
OpenShift Merge Robot b4cd54a2fa
Merge pull request #6309 from cortopy/nonroot_vol_docs
add section on rootless volumes in the docs
2020-05-24 06:37:30 -04:00
OpenShift Merge Robot 7bfaf17059
Merge pull request #6369 from rhatdan/build1
[CI:DOCS] Prepare image to turn on podman-commands test
2020-05-24 06:34:39 -04:00
Lokesh Mandvekar 7d64258b94 Makefile: customizable $REMOTETAGS
This change will allow the builder to specify custom REMOTETAGS.

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2020-05-24 06:20:17 -04:00
Juan Jimenez-Anca bf32a5c67d add section on rootless volumes
Signed-off-by: Juan Jimenez-Anca <cortopy@users.noreply.github.com>
2020-05-23 15:58:05 +01:00
Daniel J Walsh ab0681380f
[CI:DOCS] Prepare image to turn on podman-commands test
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-05-23 10:17:31 -04:00
OpenShift Merge Robot 56a95b0e7d
Merge pull request #6355 from jwhonce/wip/MethodNotAllowedHandler
Add MethodNotAllowedHandler() to add in debugging
2020-05-23 07:02:28 -04:00
Daniel J Walsh 935a716418
Vendor in latest containers/buildah
This will take a significant size away from the podman-remote executables.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-05-23 06:48:57 -04:00
Daniel J Walsh 2111217075
Turn on Fedora testing
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-05-23 06:32:02 -04:00
OpenShift Merge Robot e323d3e92d
Merge pull request #6360 from baude/addcruntogating
[CI:DOCS]add crun to gating image
2020-05-23 05:53:19 -04:00
OpenShift Merge Robot c166b21602
Merge pull request #6357 from rhatdan/build6
Follow up PR to fix issues found in #6341
2020-05-22 20:04:16 -04:00
OpenShift Merge Robot 9302ac3543
Merge pull request #6362 from TomSweeneyRedHat/dev/tsweney/fixresdoc
[CI:DOCS] Fix readthedocs link
2020-05-22 20:01:21 -04:00
TomSweeneyRedHat 91511272d0 [CI:DOCS] Fix readthedocs link
Touch up the link to the docs on readthedocs.  Using the fully
specified link like this will cause a CORS issue in many browsers.

Plus we're working on a Spanish variant of the site, so we probably
should point to the English variant.

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2020-05-22 18:18:37 -04:00
Brent Baude 4d826f0d0c [CI:DOCS]add crun to gating image
the gating tests for commands needs crun to exercise itself

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-05-22 14:46:06 -05:00
OpenShift Merge Robot e1193c8703
Merge pull request #6354 from mheon/bump-2.0.0-rc2
Bump to v2.0.0-RC2
2020-05-22 21:24:31 +02:00
Brent Baude c3af2faab2 network compatibility endpoints for API
add endpoints for networking compatibility with the API.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-05-22 13:48:52 -05:00
Jhon Honce 6f5bc712de Add MethodNotAllowedHandler() to add in debugging
Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-05-22 11:48:13 -07:00
OpenShift Merge Robot a6ee8bf2af
Merge pull request #6352 from baude/addconmontogate
[CI:DOCS]Add conmon to gating image
2020-05-22 20:30:22 +02:00
Daniel J Walsh b9425467ed
Follow up PR to fix issues found in #6341
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-05-22 14:26:48 -04:00
Matthew Heon 49a3d4ecdd Bump to v2.0.0-dev
Signed-off-by: Matthew Heon <mheon@redhat.com>
2020-05-22 14:26:42 -04:00
Matthew Heon a91020a356 Bump to v2.0.0-rc2
Signed-off-by: Matthew Heon <mheon@redhat.com>
2020-05-22 14:26:40 -04:00
OpenShift Merge Robot 4bc819328b
Merge pull request #6341 from rhatdan/build6
Attempt to turn on additional build tests
2020-05-22 20:14:19 +02:00
Brent Baude b21f342b5b [CI:DOCS]Add conmon to gating image
the gating image now needs conmon to perform the commands check

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-05-22 12:38:04 -05:00
Daniel J Walsh cd001a3a9e
Bump github.com/rootless-containers/rootlesskit from 0.9.4 to 0.9.5
Bumps [github.com/rootless-containers/rootlesskit](https://github.com/rootless-containers/rootlesskit) from 0.9.4 to 0.9.5.
- [Release notes](https://github.com/rootless-containers/rootlesskit/releases)
- [Commits](rootless-containers/rootlesskit@v0.9.4...v0.9.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-05-22 13:09:53 -04:00
Daniel J Walsh e41089244b
Attempt to turn on build_without_cgo tests
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-05-22 12:56:19 -04:00