Daniel J Walsh
596a97119b
Merge pull request #1043 from mheon/kpod_container_skeleton
...
Libpod container creation logic
2017-10-26 16:26:06 -07:00
umohnani8
f9992d71a3
Add --tls-verify, --cert-dir, and --quiet flags to kpod pull
...
Signed-off-by: umohnani8 <umohnani@redhat.com>
2017-10-25 16:28:18 -04:00
Matthew Heon
1ef3e96974
Fix gofmt and golint issues
...
Signed-off-by: Matthew Heon <mheon@redhat.com>
2017-10-25 13:08:49 -04:00
Matthew Heon
3b60d38769
Address review comments
...
Signed-off-by: Matthew Heon <mheon@redhat.com>
2017-10-25 12:04:52 -04:00
Matthew Heon
9b563f7970
Update libpod logic for placing containers in pods
...
Signed-off-by: Matthew Heon <mheon@redhat.com>
2017-10-25 11:51:45 -04:00
Matthew Heon
88e2acdc4f
Add create/start times. Add helpers for locating common files.
...
Signed-off-by: Matthew Heon <mheon@redhat.com>
2017-10-25 10:45:32 -04:00
Matthew Heon
3262565d61
Add support for setting conmon sockets directory in libpod
...
Signed-off-by: Matthew Heon <mheon@redhat.com>
2017-10-25 10:45:32 -04:00
Matthew Heon
872c59da8f
Refactor container code in preparation for saving state
...
Also adds terminal handling code to libpod
Signed-off-by: Matthew Heon <mheon@redhat.com>
2017-10-25 10:45:32 -04:00
Matthew Heon
241653e152
Add container creation logic to Libpod
...
Signed-off-by: Matthew Heon <mheon@redhat.com>
2017-10-25 10:45:32 -04:00
Daniel J Walsh
fb804f5602
Merge pull request #1015 from umohnani8/authflag
...
Add authfile flag to pull and push
2017-10-25 06:16:58 -07:00
Daniel J Walsh
2f43183c35
Merge pull request #1068 from nalind/default-store
...
libpod: set the default Store to match a Runtime
2017-10-24 21:40:56 -07:00
Nalin Dahyabhai
499b2fa180
Fix a copy/paste error in libpod initializers
...
When copying the GID map at startup, size the map correctly.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2017-10-24 21:48:47 -04:00
Nalin Dahyabhai
a5fb2b4b11
libpod: set the default Store to match a Runtime
...
When initializing a Runtime, set the default Store for the
containers-storage transport in the image library to the same one that
we're using, so that the calling process sees the same set of images
in the Runtime that it sees when going through the image library.
Update the kpod_push test so that it no longer has to specify a location
in the destination image reference, since the default should already be
passed to kpod as global options.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2017-10-24 21:47:10 -04:00
umohnani8
d855e2c8ad
Add authfile flag to pull and push
...
Push and pull can now access any cached registry credentials from the auth file
Signed-off-by: umohnani8 <umohnani@redhat.com>
2017-10-24 16:32:09 -04:00
Daniel J Walsh
774d44589c
Merge pull request #1008 from TomSweeneyRedHat/dev/tsweeney/kpod_load
...
Update kpod load to add signature-policy (2)
2017-10-14 05:34:13 -04:00
TomSweeneyRedHat
54a043bfcd
Update kpod load to add signature-policy (2)
...
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
2017-10-13 16:28:15 -04:00
Matthew Heon
92def27645
Working in-memory state implementation
...
Signed-off-by: Matthew Heon <mheon@redhat.com>
2017-10-11 12:56:17 -04:00
umohnani8
d664a58a6d
Add 'kpod login' and 'kpod logout' commands
...
Signed-off-by: umohnani8 <umohnani@redhat.com>
2017-10-10 17:02:57 -04:00
umohnani8
356df5d18e
Continue switching from libkpod to libpod
...
Refactored rmi, images, diff, and history.
Made fixes to kpod images in the way it was handing the templates as well as printing the image names
Signed-off-by: umohnani8 <umohnani@redhat.com>
2017-10-10 11:22:09 -04:00
baude
e27230bbaf
kpod rmi by ID untagged: %name incorrect
...
As described in https://github.com/kubernetes-incubator/cri-o/issues/888 , when
deleting by ID, the name being returned for the untagged message was "".
Signed-off-by: baude <bbaude@redhat.com>
2017-10-04 15:16:10 -05:00
Matthew Heon
00e1ac7b25
Move runtime Pod and Container APIs to separate files
...
Signed-off-by: Matthew Heon <mheon@redhat.com>
2017-09-28 11:18:47 -04:00
Matthew Heon
ae5634f8dd
Add errors listing to libpod
...
Signed-off-by: Matthew Heon <mheon@redhat.com>
2017-09-28 11:18:47 -04:00
Matthew Heon
f8e48aad29
Change names of GetContainers and GetPods
...
Signed-off-by: Matthew Heon <mheon@redhat.com>
2017-09-28 11:16:09 -04:00
Matthew Heon
35e951fc8c
Add basic skeletons of state handling, containers and pods
...
Signed-off-by: Matthew Heon <mheon@redhat.com>
2017-09-28 11:16:09 -04:00
Matthew Heon
2850fb60a5
Add basic state interface for libpod
...
Signed-off-by: Matthew Heon <mheon@redhat.com>
2017-09-28 11:13:11 -04:00
Matthew Heon
ee24340f0c
Make runtimes invalid on shutdown to prevent furhter use
...
Signed-off-by: Matthew Heon <mheon@redhat.com>
2017-09-28 11:13:11 -04:00
Matthew Heon
bb77300641
Move everything in libpod into a single package for simplicity
...
Signed-off-by: Matthew Heon <mheon@redhat.com>
2017-09-28 11:13:11 -04:00
Daniel J Walsh
e70802863e
Switch kpod load/push/save to use libpod runtime
...
Since this is the last use of libpod/images/copy.go,
removing that code
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2017-09-27 22:33:20 -04:00
Daniel J Walsh
8949e669c9
Modify kpod tag to use libpod runtime interface
...
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2017-09-26 16:14:34 -04:00
baude
951a943d16
libkpod/image/copy.go: Add pull by short-name
...
If the user provides kpod pull a short name like 'debian', we
still want the pull to be sucessful. As such, when a short
name is provided, we get the list of searchable registries via
the systemregistries code in containers-storage. We then
append a tag of 'latest' (if not provided) and we formulate
a list of possible fully-qualified image names to try.
Vendor update for containers-storage to bring in the system_registries
code.
Also includes a patch from Nalin to fix compilation errors.
Signed-off-by: baude <bbaude@redhat.com>
2017-09-14 08:33:10 -05:00
Antonio Murdaca
22f96b1806
fix issue with official images and manifest lits
...
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
2017-09-13 19:01:06 +02:00
umohnani8
79c09d4343
Update kpod load and save for oci-archive
...
Signed-off-by: umohnani8 <umohnani@redhat.com>
2017-09-08 10:33:58 -04:00
Daniel J Walsh
9f282717da
Begin converting kpod pull to use libpod/runtime
...
We want to drop brute force mechainism for handling image
movement, this patch experiments with moving kpod pull
to use new libpod interfaces.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2017-09-06 19:38:47 +00:00
Daniel J Walsh
e18e962238
Move libkpod/image libkpod/layer to libpod/images and libpod/layers
...
Begin moving image and layer handling out of libkpod into libpod.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2017-09-06 19:25:45 +00:00
Matthew Heon
2a121111b5
Add basic skeleton of libpod runtime
...
Signed-off-by: Matthew Heon <mheon@redhat.com>
2017-08-29 13:57:20 -04:00
Matthew Heon
d6eb943075
Move some image functions around
...
Signed-off-by: Matthew Heon <mheon@redhat.com>
2017-08-17 11:47:10 -04:00
Matthew Heon
6be525b9f0
Modify container exec and attach, add image import/export
...
Signed-off-by: Matthew Heon <mheon@redhat.com>
2017-08-17 10:43:24 -04:00
Matthew Heon
bdddb3d36b
Add preliminary libpod image API
...
Signed-off-by: Matthew Heon <mheon@redhat.com>
2017-08-17 10:43:24 -04:00
Matthew Heon
9d56fd8443
Add skeleton of new libpod API
...
Signed-off-by: Matthew Heon <mheon@redhat.com>
2017-08-17 10:43:24 -04:00