Fabio Kung
edad52707c
save deep copies of Container in the replica store
...
Reuse existing structures and rely on json serialization to deep copy
Container objects.
Also consolidate all "save" operations on container.CheckpointTo, which
now both saves a serialized json to disk, and replicates state to the
ACID in-memory store.
Signed-off-by: Fabio Kung <fabio.kung@gmail.com>
2017-06-23 07:52:33 -07:00
Fabio Kung
f668af4475
no need to save container state here
...
it is already being saved (with a lock held) on the subsequent
operations.
Signed-off-by: Fabio Kung <fabio.kung@gmail.com>
2017-06-23 07:52:33 -07:00
Fabio Kung
201a37f7a1
verifyVolumesInfo needs a container lock
...
It operates on containers that have already been registered on the
daemon, and are visible to other goroutines.
Signed-off-by: Fabio Kung <fabio.kung@gmail.com>
2017-06-23 07:52:33 -07:00
Fabio Kung
03aa24721c
no need to save state to disk here
...
State will be saved on the following operation once the container is
properly registered on the daemon.
Signed-off-by: Fabio Kung <fabio.kung@gmail.com>
2017-06-23 07:52:32 -07:00
Fabio Kung
2ed6f9257a
how to maintain the container snapshot struct
...
Signed-off-by: Fabio Kung <fabio.kung@gmail.com>
2017-06-23 07:52:32 -07:00
Fabio Kung
fcb6d37a8d
Make tests a bit less flaky
...
Prevent tests failing when teardown tries to delete a container that is
already being removed.
Signed-off-by: Fabio Kung <fabio.kung@gmail.com>
2017-06-23 07:52:32 -07:00
Fabio Kung
aacddda89d
Move checkpointing to the Container object
...
Also hide ViewDB behind an inteface.
Signed-off-by: Fabio Kung <fabio.kung@gmail.com>
2017-06-23 07:52:32 -07:00
Fabio Kung
8e425ebc42
stop grabbing container locks during ps
...
Container queries are now served from the consistent in-memory db, and
don't need to grab a lock on every container being listed.
Signed-off-by: Fabio Kung <fabio.kung@gmail.com>
2017-06-23 07:52:31 -07:00
Fabio Kung
eed4c7b73f
keep a consistent view of containers rendered
...
Replicate relevant mutations to the in-memory ACID store. Readers will
then be able to query container state without locking.
Signed-off-by: Fabio Kung <fabio.kung@gmail.com>
2017-06-23 07:52:31 -07:00
Fabio Kung
054728b1f5
in-memory ACID store for containers
...
This can be used by readers/queries so they don't need locks.
Signed-off-by: Fabio Kung <fabio.kung@gmail.com>
2017-06-23 07:24:11 -07:00
Fabio Kung
cfc404a375
Move platform specific mount data to Container
...
The Solaris version (previously daemon/inspect_solaris.go) was
apparently missing some fields that should be available on that
platform.
Signed-off-by: Fabio Kung <fabio.kung@gmail.com>
2017-06-23 07:22:47 -07:00
Raja Sami
27e771b714
Increase test Coverage of pkg/templates
...
Signed-off-by: Raja Sami <raja.sami@tenpearls.com>
2017-06-23 12:38:33 +05:00
Raja Sami
f1eb0c0ebb
Increase test Coverage of pkg/authorization
...
Signed-off-by: Raja Sami <raja.sami@tenpearls.com>
2017-06-23 12:35:46 +05:00
Brian Goff
db57b85fcb
Merge pull request #33653 from raja-sami-10p/pkg/streamformatter
...
Increase the Coverage of pkg/streamformatter
2017-06-22 19:52:02 -07:00
John Howard
c75db46d5b
Vendor jhowardmsft/opengcs v0.0.4
...
Signed-off-by: John Howard <jhoward@microsoft.com>
2017-06-22 19:28:49 -07:00
John Howard
9508c605d8
Vendor Microsoft/hcsshim v0.5.25
...
Signed-off-by: John Howard <jhoward@microsoft.com>
2017-06-22 19:28:43 -07:00
Brian Goff
2ef8936d8e
Merge pull request #33786 from thaJeztah/interactive-build-sessions
...
Documentation updates for interactive sessions
2017-06-22 18:11:52 -07:00
Sebastiaan van Stijn
9f5f3e49da
Merge pull request #33738 from fcrisciani/libnetwork-vendoring
...
Libnetwork vendoring
2017-06-22 17:41:46 -07:00
Sebastiaan van Stijn
4d0c01ac17
Merge pull request #33773 from aaronlehmann/vendor-swarmkit-79381d0
...
Vendor swarmkit 79381d0
2017-06-22 16:26:34 -07:00
Tianon Gravi
4bbdc0b8f7
Update "download-frozen-image-v2.sh" such that redirects are optional
...
If the registry responds directly with blob contents, use them,
otherwise follow the redirect without Authorization headers (which
likely aren't valid for the server being redirected to).
This preserves the basic structure of the previous output with up to one
additional progress bar per-layer (for the redirect request and then the
following blob request).
Signed-off-by: Tianon Gravi <admwiggin@gmail.com>
2017-06-22 15:54:50 -07:00
Alexander Midlash
5c38e4c16a
Update downloader script, to ensure that Authorization header is not passed when downloading blobs.
...
Signed-off-by: Alexander Midlash <amidlash@docker.com>
2017-06-22 15:54:50 -07:00
Sebastiaan van Stijn
b8b8a9c837
Documentation updates for interactive sessions
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-06-22 15:36:56 -07:00
Victor Vieux
050c1bb17b
Merge pull request #32677 from tonistiigi/builder-remote-context-4
...
Implement long running interactive session and sending build context incrementally
2017-06-22 14:38:47 -07:00
John Howard
330913cadf
LCOW: Update for platforms latest schema
...
Signed-off-by: John Howard <jhoward@microsoft.com>
2017-06-22 14:07:23 -07:00
Tonis Tiigi
8f68adfaf0
Improve routes initialization
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2017-06-22 11:52:43 -07:00
Tonis Tiigi
5c3d2d552b
Implement incremental file sync using client session
...
Also exposes shared cache and garbage collection/prune
for the source data.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2017-06-22 11:52:35 -07:00
Tonis Tiigi
7cfcf74a90
vendor: update deps for fssession
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2017-06-22 11:22:42 -07:00
Tonis Tiigi
4f51ca1e82
session: update swagger yaml
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2017-06-22 11:22:42 -07:00
Tonis Tiigi
ec7b6238c3
Add long-running client session endpoint
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2017-06-22 11:22:41 -07:00
Sebastiaan van Stijn
f88626b270
Merge pull request #33764 from keloyang/fix-queue-mem-leak
...
Fix mem leak in libcontainerd/queue/append
2017-06-22 10:57:07 -07:00
Vincent Demeester
c85f92de15
Merge pull request #33774 from Microsoft/jjh/lcow-networking
...
LCOW: owner and network endpoints
2017-06-22 16:40:50 +02:00
yangshukui
5425a5ab84
fix mem leak in libcontainerd/queue/append
...
Signed-off-by: yangshukui <yangshukui@huawei.com>
2017-06-22 16:47:47 +08:00
Sebastiaan van Stijn
4fc2710dc7
Merge pull request #33772 from cpuguy83/optimizations
...
Don't json marshal then immediately unmarshal
2017-06-22 01:19:08 -07:00
Raja Sami
956c5b61ce
Increase the Coverage of pkg/streamformatter
...
Signed-off-by: Raja Sami <raja.sami@tenpearls.com>
2017-06-22 12:29:10 +05:00
Sebastiaan van Stijn
5f0062f0fa
Merge pull request #33776 from thaJeztah/remove-deprecated-mkimage
...
Remove deprecated contrib/mkimage-xyz scripts
2017-06-21 22:41:48 -07:00
John Howard
e99a633720
LCOW: owner and network endpoints
...
Signed-off-by: John Howard <jhoward@microsoft.com>
2017-06-21 22:35:30 -07:00
Sebastiaan van Stijn
d14fb3ac4e
Remove deprecated contrib/mkimage-xyz scripts
...
The contrib/mkimage-busybox.sh, contrib/mkimage-debootstrap.sh,
and contrib/mkimage-rinse.sh were deprecated in commit
51f707cf9d
, in favor of
their equivalents in contrib/mkimage/
Given that the deprecation warning has been in place
for over three years, it's save to now remove these.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-06-21 21:56:24 -07:00
Brian Goff
4bdb6ed9b5
Merge pull request #33750 from dnephin/cleanup-more-cli-leftovers
...
Cleanup more cli leftovers
2017-06-21 21:23:28 -07:00
Fabio Kung
481a92cb41
Grab a lock to read container.RemovalInProgress
...
Signed-off-by: Fabio Kung <fabio.kung@gmail.com>
2017-06-21 19:11:23 -07:00
Brian Goff
8a672ba1aa
Merge pull request #32779 from rremer/auto-update-client
...
pull client API version negotiation out of the CLI and into the client
2017-06-21 17:35:22 -07:00
John Stephens
930e689668
Merge pull request #33241 from Microsoft/jjh/multi-layerstore
...
LCOW: Support most operations excluding remote filesystem
2017-06-21 15:45:23 -07:00
Aaron Lehmann
79b940feee
Vendor swarmkit 79381d0
...
Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2017-06-21 15:32:53 -07:00
Brian Goff
8d588d9c5b
Don't json marshal then immediately unmarshal
...
During container startup we end up spending a fair amount of time
encoding/decoding json.
This cuts out some of that since we already have the decoded object in
memory.
The old flow looked like:
1. Start container request
2. Create file
3. Encode container spec to json
4. Write to file
5. Close file
6. Open file
7. Read file
8. Decode container spec
9. Close file
10. Send to containerd.
The new flow cuts out steps 6-9 completely, and with it a lot of time
spent in reflect and file IO.
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2017-06-21 15:18:01 -07:00
Sebastiaan van Stijn
795a2fdbcb
Merge pull request #33735 from tonistiigi/force-pull-fix
...
builder: fix copy —from conflict with force pull
2017-06-21 12:07:54 -07:00
Brian Goff
e64c2d7122
Merge pull request #33755 from aaronlehmann/imagestore-locking
...
image: Improve store locking
2017-06-21 10:01:19 -07:00
Daniel Nephin
2b45ec7f78
Remove yaml docs generator and man pages
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2017-06-21 11:20:05 -04:00
Daniel Nephin
96e61f3173
Remove bindata
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2017-06-21 11:20:05 -04:00
Daniel Nephin
ea2e4d73c4
remove cli concerns from hack/make
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2017-06-21 11:20:05 -04:00
Daniel Nephin
4e5293c253
Remove miekg/pkcs11 from vendor.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2017-06-21 11:18:44 -04:00
Daniel Nephin
b877fc31c5
Remove pkcs11, libltdl-dev, and clang for osx.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2017-06-21 11:18:44 -04:00