Commit Graph

795 Commits

Author SHA1 Message Date
Daniel J Walsh 8241546743 Setup default ulimits to nproc & nofile of current process
In root running containers we want to approach the MAX  Number of processes and
open files, so that services running Podman will work when they have lots of open
files or processes.  In rootless containers this number can not be changed.  This
patch will only increase the numbers if the process is allowed.

Docker set the limit to 2**20 (1048576), it looks like this was the max for RHEL5 OS.
So we fall back to attempt to set this limit if the MAC_PROC limit is not allowed.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-02-03 13:50:28 -05:00
Daniel J Walsh 2fd779a0a9 Merge pull request #51 from TomSweeneyRedHat/dev/tsweeney/coc1
Initial Code of Conduct
2020-02-02 10:55:10 -05:00
TomSweeneyRedHat b1d9cd2bea Initial Code of Conduct
This is the initial Code of Conduct document for use across
all of the projects under the github.com/containers repository.

The projects will each link to this document from each of their
repos.

This document was pulled from libpod which had pulled it from
Kubernetes who had pulled it from the CNCF.

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2020-02-01 16:35:55 -05:00
Daniel J Walsh cf8ef09ecf Merge pull request #50 from rhatdan/version
Bump to v0.1.3
2020-01-29 11:40:34 -06:00
Daniel J Walsh 6742c8c00a Move to v0.1.4-dev
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-01-29 10:42:53 -06:00
Daniel J Walsh 49fe8f1809 Bump to v0.1.3
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-01-29 10:42:25 -06:00
Valentin Rothberg 48e88ba18d Merge pull request #49 from rhatdan/version
Stop validating networkconfig by default
2020-01-29 13:21:34 +01:00
Daniel J Walsh 95fb926363 Stop validating networkconfig by default
This is causing issues in rootless and remote mode.  We should not be creating
directories on the fly.
Also stop exporting functions that are not used by Buildah and Podman.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-01-29 06:10:15 -05:00
Daniel J Walsh e6b7fab9d1 Merge pull request #48 from rhatdan/version
Fix a couple of defaults
2020-01-27 14:42:13 +01:00
Daniel J Walsh aa32712804 Fix a couple of defaults
The default alternative path for seccomp.json should be /etc/containers/seccomp.json

The DefaultNetwork in network config should be bridge

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-01-27 04:05:25 +01:00
Daniel J Walsh 7dcd763753 Merge pull request #47 from rhatdan/version
Bump to version v0.1.2
2020-01-20 23:26:44 -05:00
Daniel J Walsh da4ecbc696 Move to v0.1.3-dev
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-01-20 23:17:39 -05:00
Daniel J Walsh d5f57f1d87 Bump to v0.1.2
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-01-20 23:17:09 -05:00
Daniel J Walsh f6044d41ef Merge pull request #46 from giuseppe/unshare-cgo
unshare: add getenv from cgo
2020-01-20 22:40:12 -05:00
Giuseppe Scrivano 758b4e2730 unshare: add getenv from cgo
if CGO is enabled, make sure to use C.getenv instead of os.Getenv to
read environment variables.  It is required since rootless libpod
joins the user namespace through Cgo.

The variables set via C.setenv are not visible through os.Getenv, as
the latter uses sync.Once to read the variables once.

Requires: https://github.com/containers/libpod/pull/4911

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-01-20 15:53:55 +01:00
Daniel J Walsh a4c1864f4f Merge pull request #45 from rhatdan/master
Bump to v0.1.1
2020-01-17 08:23:27 -05:00
Daniel J Walsh 69f0b47c1c Move to v0.1.2-dev
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-01-17 07:48:16 -05:00
Daniel J Walsh 57dfe60780 Bump to v0.1.1
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-01-17 07:47:51 -05:00
Valentin Rothberg beb649a713 Merge pull request #44 from rhatdan/version
Fix definitions for cross compilers
2020-01-17 10:38:26 +01:00
Daniel J Walsh b3d6ec550e Fix definitions for cross compilers
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-01-16 16:58:38 -05:00
Daniel J Walsh 122f31ab5b Merge pull request #42 from rhatdan/version
Bump to Version v0.1.0
2020-01-15 06:26:17 -05:00
Daniel J Walsh b484416f22 Move to 0.1.1-dev
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-01-14 13:38:32 -05:00
Daniel J Walsh a79f17071b Bump to 0.1.0
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-01-14 13:38:00 -05:00
Daniel J Walsh d623019b93 Merge pull request #39 from giuseppe/drop-cgroups
pkg/cgroups: delete it
2020-01-10 06:54:30 -05:00
Giuseppe Scrivano 990e0fc7c3 pkg/cgroups: delete it
at the moment the cgroups package is used only by Podman and by CRI-O
(that is already vendoring libpod).  So let's simplify and not have a
duplicate here.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2020-01-09 08:45:00 +01:00
Giuseppe Scrivano 26ed555c0e Merge pull request #38 from rhatdan/codespell
Run code through codespell
2020-01-08 16:03:52 +01:00
Daniel J Walsh 789d9a515f Run code through codespell
Fix spelling mistakes found using codespell.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-01-08 08:56:50 -05:00
Daniel J Walsh c29d7fbca1 Merge pull request #37 from rhatdan/caps
Add new Capability function to parse Capabilities
2020-01-08 06:47:52 -05:00
Daniel J Walsh 3e1c3932bf Add new Capability function to parse Capabiltiies
The Capability check handles merging of Default capabiltiies along
with user specified add and drop capabilities.

Fork docker/docker/oci/caps file to prevent a huge vendor

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-01-07 17:57:04 -05:00
Daniel J Walsh 5760a49664 HooksDir should be in LibpodConfig
This field is owned by libpod and is not part of containers.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-01-07 17:53:02 -05:00
Daniel J Walsh 65041957dd Merge pull request #36 from rhatdan/selinux
Fix handling of SELinux labeling
2020-01-06 09:10:03 -05:00
Daniel J Walsh 2603f5de14 Fix handling of SELinux labeling
Also re-add DefaultMountsFile since we need a holding place to be
used in libpod.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-01-04 05:45:17 -05:00
Daniel J Walsh 195a127c3a Merge pull request #35 from rhatdan/version
Bump to v0.0.7
2020-01-03 14:28:11 -05:00
Daniel J Walsh e17a5a6d94 Move to v0.0.8-dev
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-01-03 14:07:07 -05:00
Daniel J Walsh bf9df00c5e Bump to v0.0.7
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-01-03 14:06:33 -05:00
Daniel J Walsh cc5cb58fc3 Merge pull request #34 from rhatdan/manpage
Update/Fix man page and fix several bugs in definition.
2020-01-03 14:03:36 -05:00
Daniel J Walsh 74d7f91c66 Update/Fix man page and fix several bugs in definition.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2020-01-03 13:57:01 -05:00
Daniel J Walsh 38ef603802 Merge pull request #33 from rhatdan/version
Bump to v0.0.6
2019-12-29 07:42:36 -05:00
Daniel J Walsh 4f0fa63812 Move to v0.0.7-dev
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-12-29 06:02:58 -05:00
Daniel J Walsh eccc86b2ae Bump to v0.0.6
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-12-29 06:02:16 -05:00
Daniel J Walsh a3850c2a93 Merge pull request #29 from rhatdan/master
Add missing fields to be used with podman
2019-12-29 05:57:58 -05:00
Daniel J Walsh b406a112e1 Add new fields to containers.conf
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-12-28 07:22:07 -05:00
Daniel J Walsh c4d2aafd65 Add missing fields to be used with podman
We also want to be able to default namespaces to host, so that HPC
machines can default to not using most of the namespaces by default.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-12-28 07:19:15 -05:00
Daniel J Walsh 163e22fa0d Merge pull request #28 from rhatdan/master
Bump to v0.0.5 to fix module issue
2019-12-12 05:10:00 -05:00
Daniel J Walsh ebff9a0851 Move to v0.0.6-dev
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-12-12 05:09:12 -05:00
Daniel J Walsh 46d08f9629 Bump to v0.0.5
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-12-12 05:09:12 -05:00
Daniel J Walsh 83e1d92b00 Merge pull request #27 from rhatdan/version
Bump to version v0.0.4
2019-12-12 04:56:12 -05:00
Daniel J Walsh 6abce3eb91 Move to v0.0.4-dev
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-12-11 12:30:23 -05:00
Daniel J Walsh d982575de0 Bump to v0.0.4
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2019-12-11 12:30:03 -05:00
Daniel J Walsh 70f6a8224a Merge pull request #26 from rhatdan/optional
Remove merge code and optional handling
2019-12-11 12:26:21 -05:00