Commit graph

45 commits

Author SHA1 Message Date
Urvashi Mohnani d086beb7ab Vendor in latest containers/image
Adds the tarball transport, which is used by the kpod import command

Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>

Closes: #12
Approved by: rhatdan
2017-11-07 19:16:31 +00:00
Daniel J Walsh df54adeaae Respect the quiet flag.
When setting the `kpod load -q` flag, output was still going to the
screen.  This patch adds a check to not output to the terminal unless
there is an io.Writer specified, and then to write to the io.Writer.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>

Closes: #23
Approved by: rhatdan
2017-11-07 15:37:50 +00:00
Daniel J Walsh a39ec628e7 SELinux tests are mistakenly not running.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>

Closes: #22
Approved by: rhatdan
2017-11-07 13:33:07 +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
Daniel J Walsh b06190e0da
Merge pull request #8 from baude/clicontext
Clicontext
2017-11-05 06:43:20 -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
baude 9f5fa7f2eb Vendor in testify/assert and deps
Signed-off-by: baude <bbaude@redhat.com>
2017-11-03 20:37:09 -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
Matthew Heon 79a26cbd6d
Merge pull request #14 from baude/gitvalidation
Makefile: Add repo EPOCH
2017-11-03 14:00:57 -04:00
baude 5b6fb0411a Makefile: Add repo EPOCH
The git ID for the repo's EPOCH was incorrect in the Makefile
so .gitvalidation would not run correctly.

Signed-off-by: baude <bbaude@redhat.com>
2017-11-03 10:12:44 -05:00
Daniel J Walsh 7bb1d24028
Merge pull request #6 from rhatdan/papr
Add Papr support
2017-11-02 19:35:33 -04:00
Daniel J Walsh 6e37df18ef Remove tip from testing in yaml
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2017-11-02 18:10:50 -04:00
Daniel J Walsh f590429592 Add .papr support
Don't run lint for now, since we seem to be running out of memory.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2017-11-02 18:10:50 -04: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
Daniel J Walsh 10006e787e No man5 or man8 man pages
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2017-11-02 15:30:10 -04:00
Daniel J Walsh f0f5b51ff2
Merge pull request #4 from mheon/fix_vendor
Fix trivial import issue
2017-11-01 15:42:17 -04:00
Matthew Heon 32f352d846 Fix trivial import issue
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-11-01 15:39:04 -04:00
Matthew Heon 843eede735
Merge pull request #3 from rhatdan/readme
Create README for libpod
2017-11-01 15:38:08 -04:00
Daniel J Walsh 03d933d6cd Create README for libpod
Copy the README from CRI-O and convert it for libpod.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2017-11-01 19:33:26 +00:00
Matthew Heon d7782cc31e
Merge pull request #2 from baude/create
libpod create and run
2017-11-01 15:30:35 -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 f5019df3f5
Merge pull request #1 from mheon/master
Initial checkin
2017-11-01 14:38:21 -04:00
Matthew Heon eab0737f11 Fix makefile issue
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-11-01 14:20:05 -04:00
Matthew Heon 26afe3935c Gut the readme
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-11-01 13:58:56 -04:00
Matthew Heon b7f714d04d Remove an unused vendor
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-11-01 13:57:40 -04:00
Matthew Heon f739ff6f4f Update OWNERS. Remove unused version code
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-11-01 13:49:21 -04:00
Matthew Heon f6915f24ae Remove another unused package
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-11-01 13:45:18 -04:00
Matthew Heon d4d8be2f48 Remove CRI-O manpages
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-11-01 13:42:15 -04:00
Matthew Heon 371a75b897 Remove more unused code
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-11-01 13:40:59 -04:00
Matthew Heon 7fa1efd0d7 Fix paths for tests
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-11-01 13:39:16 -04: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 92b31c0ff7 Remove pause code
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-11-01 12:27:39 -04:00
Matthew Heon 6e99e1a1fd Remove CRIO tests, disable broken kpod tests
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-11-01 12:22:11 -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
Daniel J Walsh 2b74391cd5
Initial commit 2017-11-01 11:01:27 -04:00