Commit graph

23873 commits

Author SHA1 Message Date
OpenShift Merge Robot
9f146b1b54
Merge pull request #4861 from giuseppe/add-cgroups-disabled-conmon
oci_conmon: do not create a cgroup under systemd
2020-01-22 17:00:48 +01:00
Robert P. J. Day
1e82702ff5 markdown: fix formatting of commands at bottom of podman-exec
Current (lack of) formatting crunches first two lines together.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
2020-01-22 10:57:16 -05:00
OpenShift Merge Robot
105a42a2a4
Merge pull request #4928 from mheon/release_notes_171
Update RELEASE_NOTES for v1.7.1
2020-01-22 16:29:29 +01:00
Robert P. J. Day
a78658a11a markdown: reword 'podman-inspect' to properly explain '--size'
Reword the man page to clarify that the '--size' option displays
the container size in addition to the normal output.

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
2020-01-22 10:02:06 -05:00
OpenShift Merge Robot
7e1afe0e68
Merge pull request #4931 from rpjday/docs/rmi/backquotes
markdown: remove extraneous backquote from "podman rmi"
2020-01-22 15:55:07 +01:00
OpenShift Merge Robot
55abb6d3fa
Merge pull request #4911 from giuseppe/rootless-set-containers-env
rootless: set C variables also on shortcut
2020-01-22 14:39:49 +01:00
Lokesh Mandvekar
eef3d3240a correct search-and-replace error
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2020-01-22 19:05:46 +05:30
Matthew Heon
554b8d2f2f Update release script to not manage epoch
We removed the Gitvalidation epoch in the Makefile. As such, we
don't need to adjust it anymore when we tag releases.

Signed-off-by: Matthew Heon <mheon@redhat.com>
2020-01-22 07:51:09 -05:00
Robert P. J. Day
fafa67e7b5 markdown: remove extraneous backquote from "podman rmi"
Extraneous backquote messes up rendering of "man podman-rmi".

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
2020-01-22 07:50:48 -05:00
Robert P. J. Day
fcf916a620 markdown: fix formatting/content typos in migrate man page
1) remove erroneous spaces after leading '**'
 2) remove duplicate SYNOPSIS section

Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca>
2020-01-22 06:16:12 -05:00
Matthew Heon
cb49c41aca Update RELEASE_NOTES for v1.7.1
Signed-off-by: Matthew Heon <mheon@redhat.com>
2020-01-22 05:15:27 -05:00
OpenShift Merge Robot
d52132b6ec
Merge pull request #4919 from vrothberg/fix-mod
go.mod: fix parse error
2020-01-22 10:10:54 +01:00
OpenShift Merge Robot
aa13779e9e
Merge pull request #4899 from baude/apiv2service
Apiv2service
2020-01-22 00:29:52 +01:00
baude
d4c2aaf38a Add service endpoint
add service endpoint for the new API.  Also supports the varlink
implementation.

Signed-off-by: baude <bbaude@redhat.com>

Refactor to allow developer more control of API server

* Add api.NewServerWithSettings() to create an API server with custom
  settings
* Add api.ListenUnix() to create a UDS net.Listener and setup UDS

Signed-off-by: Jhon Honce <jhonce@redhat.com>
Signed-off-by: baude <bbaude@redhat.com>

More service completion

Add podman service command that allows users to run either a RESTful or
varlink protocol API service.

Addition of docs and RESTful listening.

Signed-off-by: baude <bbaude@redhat.com>
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-01-21 16:35:45 -06:00
OpenShift Merge Robot
f63005e0f2
Merge pull request #4925 from cevich/fix_docs_no_snap
[CI:DOCS] Cirrus: Fix logic typo
2020-01-21 23:02:23 +01:00
OpenShift Merge Robot
1b69a8fa3a
Merge pull request #4915 from baude/reviewcorrections
[CI:DOCS]First pass at review comments
2020-01-21 22:44:56 +01:00
Chris Evich
ce16f264a2
Cirrus: Fix logic typo
Signed-off-by: Chris Evich <cevich@redhat.com>
2020-01-21 16:31:05 -05:00
Jhon Honce
68896b18e5 Update build images
* Add swagger annotations for all the query and response parameters
  for buildimages
* Improve populating the BuildOptions struct
* Improve swagger.json generation, removing tags.xml and move tag
  definiation into the swagger:meta block
* Update Makefile to be more robust, added target for validation

* TODO once validation passes add that step to the generation step

Signed-off-by: Jhon Honce <jhonce@redhat.com>
2020-01-21 14:19:42 -07:00
OpenShift Merge Robot
f467bb20bd
Merge pull request #4923 from cevich/docs_no_snap
[CI:DOCS] Cirrus: No upload snap for docs job
2020-01-21 21:45:51 +01:00
Chris Evich
fb8209ad78
Cirrus: No upload snap for docs job
Previously, the upload-snap job was running during post-merge
testing when the magic ci-docs string was present in the PR
description.  This fixes that and makes all the `only_if`'s
more consistent.

Signed-off-by: Chris Evich <cevich@redhat.com>
2020-01-21 15:00:58 -05:00
baude
78e4e83e92 [CI:DOCS]First pass at review comments
Tackling the first comments in the review pass.  More to come.

Signed-off-by: baude <bbaude@redhat.com>
Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-01-21 12:50:41 -06:00
Valentin Rothberg
a0c5762fe8 go.mod: fix parse error
Fix the go.mod parsing error caused by updating openshift/api.

Fixes: #4728
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2020-01-21 19:13:52 +01:00
OpenShift Merge Robot
fb2bd26f73
Merge pull request #4914 from baude/apidevel
[CI:DOCS] Add logo and dev statement
2020-01-21 16:13:37 +01:00
Sascha Grunert
2511b50800
Use cgroupv2 super magic from golang.org/x/sys/unix
We can use this constant from the already existing sys/unix package
instead of defining it by our own.

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-01-21 16:08:29 +01:00
Brent Baude
bf6f7c6fd8 Disable go mods on varlink builds in spec
Fixes test images test failure.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-01-21 08:49:28 -06:00
Brent Baude
f432999023 [CI:DOCS] Add logo and dev statement
Add statement to the info section stating this is experimental only for now.  Also add the podman logo to the right-hand navigation.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2020-01-20 13:59:55 -06:00
Giuseppe Scrivano
ab7744d3c1
rootless: set C variables also on shortcut
make sure the rootless env variables are set also when we are joining
directly the user+mount namespace without creating a new process.

It is required by pkg/unshare in containers/common.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-01-20 16:42:45 +01:00
OpenShift Merge Robot
9be64300d4
Merge pull request #4898 from baude/rtdapi3
[CI:DOCS]static files end up in _static on rtd
2020-01-18 11:43:42 +01:00
baude
47f9a63574 [CI:DOCS]static files end up in _static on rtd
Signed-off-by: baude <bbaude@redhat.com>
2020-01-17 16:13:30 -06:00
OpenShift Merge Robot
ce4bf33ccc
Merge pull request #4897 from baude/rtdapi2
[CI:DOCS] Correct link syntax
2020-01-17 23:06:04 +01:00
baude
9ea2024c55 [CI:DOCS] Correct link syntax
Signed-off-by: baude <bbaude@redhat.com>
2020-01-17 15:50:36 -06:00
OpenShift Merge Robot
37ec23b462
Merge pull request #4896 from baude/rtdapi
[CI:DOCS]Connect API docs and RTD
2020-01-17 22:26:56 +01:00
baude
cc0f7defdc [CI:DOCS]Connect API docs and RTD
Signed-off-by: baude <bbaude@redhat.com>
2020-01-17 15:12:35 -06:00
OpenShift Merge Robot
3b6a843eb2
Merge pull request #4895 from cevich/swagpublish
[CI:DOCS] Post-process swagger yaml and publish
2020-01-17 21:55:11 +01:00
baude
9be6f30a42
post-process swagger yaml for publish
Signed-off-by: baude <bbaude@redhat.com>
Signed-off-by: Chris Evich <cevich@redhat.com>
2020-01-17 15:41:33 -05:00
OpenShift Merge Robot
ab7e1a4c40
Merge pull request #4892 from cevich/fix_upload_image
Minor: Bugfix in upload image
2020-01-17 18:25:24 +01:00
Ed Santiago
c2f50499c9 Tests for API v2
Initial framework for testing the version 2 (HTTP) API.
Includes a collection of tests for some of the existing
endpoints. Not all tests are currently passing.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2020-01-17 09:59:22 -07:00
OpenShift Merge Robot
f5e614b63f
Merge pull request #4721 from openSUSE/tag-docs
Update `tag` documentation regarding 'alias' usage
2020-01-17 17:08:23 +01:00
Chris Evich
c183dddea6
Minor: Bugfix in upload image
The release upload process always involves two filenames, however the
second filename might (someday) be optional.  The code allowed for this,
however input validation did not.  This change fixes the validation.

Signed-off-by: Chris Evich <cevich@redhat.com>
2020-01-17 10:43:48 -05:00
OpenShift Merge Robot
acbb6c064d
Merge pull request #4873 from lsm5/debian-install-update
update install instructions for Debian, Raspbian and Ubuntu
2020-01-17 15:27:40 +01:00
Sascha Grunert
38ba9e6922
Update tag documentation regarding 'alias' usage
The word `alias` is not very common when speaking about image names and
tags. So we just refer to image name as the overall identifier of an
image.

Signed-off-by: Sascha Grunert <sgrunert@suse.com>
2020-01-17 08:51:36 +01:00
Lokesh Mandvekar
26b31fd29c update install instructions for Debian, Raspbian and Ubuntu
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2020-01-17 08:35:45 +05:30
OpenShift Merge Robot
74b89da27c
Merge pull request #4837 from mheon/rework_attach
Add an API for Attach over HTTP API
2020-01-16 21:10:53 +01:00
OpenShift Merge Robot
79fbe7252e
Merge pull request #4879 from vrothberg/install-golangci-updates
hack/install_golangci.sh: check env vars
2020-01-16 20:55:28 +01:00
Giuseppe Scrivano
1951ff168a
oci_conmon: do not create a cgroup under systemd
Detect whether we are running under systemd (if the INVOCATION_ID is
set).  If Podman is running under a systemd service, we do not need to
create a cgroup for conmon.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-01-16 20:29:28 +01:00
OpenShift Merge Robot
427e87449d
Merge pull request #4887 from vrothberg/fix-4886
e2e/run_signal_test.go: make it more robust
2020-01-16 20:23:37 +01:00
Matthew Heon
ac47e80b07 Add an API for Attach over HTTP API
The new APIv2 branch provides an HTTP-based remote API to Podman.
The requirements of this are, unfortunately, incompatible with
the existing Attach API. For non-terminal attach, we need append
a header to what was copied from the container, to multiplex
STDOUT and STDERR; to do this with the old API, we'd need to copy
into an intermediate buffer first, to handle the headers.

To avoid this, provide a new API to handle all aspects of
terminal and non-terminal attach, including closing the hijacked
HTTP connection. This might be a bit too specific, but for now,
it seems to be the simplest approach.

At the same time, add a Resize endpoint. This needs to be a
separate endpoint, so our existing channel approach does not work
here.

I wanted to rework the rest of attach at the same time (some
parts of it, particularly how we start the Attach session and how
we do resizing, are (in my opinion) handled much better here.
That may still be on the table, but I wanted to avoid breaking
existing APIs in this already massive change.

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2020-01-16 13:49:21 -05:00
Giuseppe Scrivano
70236f56f9
systemdgen: specify --cgroups=disabled-conmon for --new
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-01-16 18:59:09 +01:00
Giuseppe Scrivano
ba0a6f34e3
podman: add new option --cgroups=no-conmon
it allows to disable cgroups creation only for the conmon process.

A new cgroup is created for the container payload.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-01-16 18:56:51 +01:00
OpenShift Merge Robot
30245affe9
Merge pull request #4884 from vrothberg/systemd-ignore
systemdgen: add --ignore flag to generic services
2020-01-16 18:31:08 +01:00