umohnani8
b1a3b03068
Update kpod pause and unpause to use new container state
...
Signed-off-by: umohnani8 <umohnani@redhat.com >
Closes : #66
Approved by: mheon
2017-11-24 15:53:17 +00:00
Daniel J Walsh
195d48d86d
Copy some verification code out of Docker to verify user input
...
Added lots of verification code to make sure resourses asociated with
containers is correct.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com >
Closes : #60
Approved by: umohnani8
2017-11-22 20:53:15 +00:00
Urvashi Mohnani
ee4051db61
Update kpod logs to use the new container state and runtime
...
Signed-off-by: Urvashi Mohnani <umohnani@redhat.com >
Closes : #62
Approved by: rhatdan
2017-11-22 19:33:13 +00:00
umohnani8
40dce698d3
Update kpod mount and umount to use the new state
...
The new state for containers has been added
moved kpod mount and umount over to use it
Signed-off-by: Urvashi Mohnani <umohnani@redhat.com >
Closes : #57
Approved by: rhatdan
2017-11-22 18:23:19 +00:00
Daniel J Walsh
bd4e106de3
Add support for pid ns
...
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com >
Closes : #54
Approved by: umohnani8
2017-11-22 16:46:53 +00:00
Urvashi Mohnani
2a3934f1da
Update kpod export to use the new container state and runtime
...
Signed-off-by: Urvashi Mohnani <umohnani@redhat.com >
Closes : #59
Approved by: rhatdan
2017-11-22 16:17:06 +00:00
Daniel J Walsh
91b406ea4a
Need to block access to kernel file systems in /proc and /sys
...
Users of kpod run could use these file systems to perform a breakout
or to learn valuable system information.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com >
Closes : #61
Approved by: mheon
2017-11-22 15:49:56 +00:00
Urvashi Mohnani
768fb6fe0f
Update kpod rm to use new container state
...
kpod rm now uses the new container state and runtime
Signed-off-by: Urvashi Mohnani <umohnani@redhat.com >
Closes : #58
Approved by: mheon
2017-11-21 22:03:13 +00:00
Daniel J Walsh
c75c319ea2
Add support for oom functions
...
Add tests for oom-kill-disable and oom-kill-adj
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com >
Closes : #52
Approved by: TomSweeneyRedHat
2017-11-21 15:33:16 +00:00
Daniel J Walsh
b4bc7b8828
Add cgroup fs by default
...
Docker defaults to mounting the cgroup file system.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com >
Closes : #53
Approved by: mheon
2017-11-20 22:47:58 +00:00
Daniel J Walsh
5d52f74d21
Add support for Ulimits/Rlimits to kpod create/run
...
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com >
Closes : #24
Approved by: mheon
2017-11-20 20:12:43 +00:00
Daniel J Walsh
6e0944f2f1
Merge pull request #26 from mheon/sql_state
...
Implementation of SQL-backed state
2017-11-20 14:45:01 -05:00
Daniel J Walsh
57599f0075
Fix up handling of environment variables
...
The way docker works is if a user specifies a non `-e Name=Value`, IE
just a `-e Name`, then the environment variable Name from the clients
OS.ENV is used.
Also by default Docker containers run with the HOSTNAME environment set
to the HOSTNAME specified for the container.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com >
Closes : #21
Approved by: baude
2017-11-20 16:25:31 +00:00
Matthew Heon
4bc3acc7aa
Rename Create to Init for containers to be less confusing
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com >
2017-11-18 12:58:48 -05:00
baude
acd9c66864
Fix terminal attach
...
Re-order the startup of a new container via run from
initialize > start > attach to initialize > attach > start.
This fixes output when running:
kpod run -i -t IMAGE command
and
kpod run IMAGE command
Signed-off-by: baude <bbaude@redhat.com >
2017-11-15 16:27:57 -06:00
baude
5cfd7a313f
Address run/create performance issues
...
Fixed the logic where we observed different performance
results when running an image by its fqname vs a shortname. In
the case of the latter, we resolve the name without using the
network.
Signed-off-by: baude <bbaude@redhat.com >
Closes : #37
Approved by: rhatdan
2017-11-14 21:14:13 +00:00
baude
7df3221232
Remove all images
...
Add -a/--all to rmi so a user can remove
all images quickly.
Signed-off-by: baude <bbaude@redhat.com >
Closes : #41
Approved by: mheon
2017-11-14 16:46:26 +00:00
baude
55c9cfb80e
Add cpu-profiling to kpod
...
Add a global flag for cpu-profiling to allow us to
profile kpod for performance issues.
To parse its results, use:
go tool pprof --text <profile_path>
Signed-off-by: baude <bbaude@redhat.com >
Closes : #36
Approved by: mheon
2017-11-09 17:36:11 +00:00
baude
b8dca1874d
Do not attempt to use command --args as cli flags
...
i.e. kpod run fedora python --version
Signed-off-by: baude <bbaude@redhat.com >
Closes : #33
Approved by: rhatdan
2017-11-08 21:49:15 +00:00
Daniel J Walsh
84e3bdceda
Fix panic when no image is given
...
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com >
Closes : #31
Approved by: mheon
2017-11-08 21:18:08 +00:00
Urvashi Mohnani
23979f8e06
Add 'kpod import' command
...
Imports a tarball and saves it as a filesystem image
Signed-off-by: Urvashi Mohnani <umohnani@redhat.com >
Closes : #12
Approved by: rhatdan
2017-11-07 19:16:31 +00:00
Daniel J Walsh
006a8bd6f3
Convert tmpfs mounts to use generate
...
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com >
Closes : #19
Approved by: baude
2017-11-06 14:43:06 +00:00
Daniel J Walsh
402c30333f
Remove defaults and use runtime-tools/generate for spec
...
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com >
Closes : #19
Approved by: baude
2017-11-06 14:43:06 +00:00
Daniel J Walsh
dbd524e3d1
Merge pull request #17 from rhatdan/caps
...
Add support for Caps Options.
2017-11-05 17:06:25 -05:00
baude
0026075d59
libpod/runtime_img_test.go Unit Tests
...
Unit tests for getRegistry related functions.
Signed-off-by: baude <bbaude@redhat.com >
2017-11-04 11:12:14 -05:00
Daniel J Walsh
619637a919
Handle Linux Capabilities from command line
...
Had to revendor in docker/docker again, which dropped a bunch of packages
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com >
2017-11-04 09:07:47 +00:00
baude
69cecb049a
spec_test.go: Unit tests for spec.go
...
Unit tests for spec.go which includes testing
parts of the oci spec.
Signed-off-by: baude <bbaude@redhat.com >
2017-11-03 20:37:41 -05:00
baude
aa19565d8d
spec.go: Remove cli context as func arg
...
Remove cli context as a func arg to make unit tests
easier.
Signed-off-by: baude <bbaude@redhat.com >
2017-11-03 20:37:33 -05:00
baude
99ca35f185
util_test.go: Unittests for util.go
...
Add unit tests for func StringInSlice.
Signed-off-by: baude <bbaude@redhat.com >
2017-11-03 20:37:27 -05:00
baude
46d762176e
create_cli_test.go: Unittests
...
Create unittests for the create_cli helper functions. As
such, remove cli context usage from the functions to
further divide between cli input and parsing. Also, simplifies
unit testing.
Signed-off-by: baude <bbaude@redhat.com >
2017-11-03 20:37:19 -05:00
Daniel J Walsh
098389dc3e
Parse SecurityOpts
...
This should turn on handling of SELinux, NoNewPrivs, seccomp and Apparmor
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com >
Closes : #15
Approved by: rhatdan
2017-11-03 20:55:10 +00:00
Daniel J Walsh
0847e770bb
Fix lint error on spec being shadowed
...
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com >
2017-11-02 16:29:34 -04:00
Daniel J Walsh
92818fdfb7
Fix gofmt errors
...
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com >
2017-11-02 15:30:39 -04:00
Daniel J Walsh
83b55c4771
-mFix crioConfigPath
...
I don't believe this should be in here, but for now we need to make it not global
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com >
2017-11-02 15:30:26 -04:00
baude
8cf07b2ad1
libpod create and run
...
patched version of the same code that went into crio
Signed-off-by: baude <bbaude@redhat.com >
2017-11-01 14:19:19 -05:00
Matthew Heon
c13f61798a
Prune Server package. Convert to new github location.
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com >
2017-11-01 13:22:04 -04:00
Matthew Heon
637de4d0d3
Remove CRI-O binaries and makefile targets
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com >
2017-11-01 11:51:10 -04:00
Matthew Heon
a031b83a09
Initial checkin from CRI-O repo
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com >
2017-11-01 11:24:59 -04:00