Daniel J Walsh
12682aa475
Merge pull request #72 from mheon/file_locking
...
Move containers to file locks from c/storage
2017-12-11 10:48:29 -06:00
Matthew Heon
b71cde19c8
Add ability to refresh state in DB
...
Also, ensure we always recreate runtime spec so our net namespace
paths will be correct
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-12-07 13:15:34 -05:00
Matthew Heon
e9298a533a
Remove SQL state locking and rely on sqlite locking
...
Also renames some parameters from locksDir -> lockDir for
consistency.
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-12-04 13:40:27 -05:00
Matthew Heon
abfd18b0db
Move containers to file locks from c/storage
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-12-04 13:39:44 -05:00
Daniel J Walsh
adf8809521
Add NetMode, UTSMode and IPCMode
...
Allow kpod create/run to create contianers in different network namespaces, uts namespaces and
IPC Namespaces.
This patch just handles the simple join the host, or another containers namespaces.
Lots more work needed to full integrate --net
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes : #64
Approved by: mheon
2017-12-02 15:32:56 +00:00
Matthew Heon
7eb5ce940c
Add schema validation to DB
...
This ensures we don't open a DB with an earlier schema or a
config that differs from ours
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #86
Approved by: rhatdan
2017-11-30 18:05:56 +00:00
Matthew Heon
34ba0cb8a9
Order containers returned from state and make container config public
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #63
Approved by: baude
2017-11-22 18:12:57 +00:00
Matthew Heon
8e76ebcf6e
Add ability to update container status from runc
...
Wire this in to all state-bound container operations to ensure
syncronization of container state.
Also exposes PID of running containers via API.
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes : #56
Approved by: rhatdan
2017-11-21 20:09:09 +00:00
Matthew Heon
51fc8827f5
Add tests for SQL-backed state impl
...
Minor changes to container.go and sql_state.go to fix issues
identified by the tests
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-11-20 16:24:28 -05:00
Matthew Heon
898138441d
Need to provide ID of container being updated
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-11-18 12:58:48 -05:00
Matthew Heon
657cb1b7f6
Fix lingering SQL error
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-11-18 12:58:48 -05:00
Matthew Heon
763e372649
Wire SQL backed state into rest of libpod
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-11-18 12:58:48 -05:00
Matthew Heon
cb56716fc4
Address review comments, fix gofmt and lint
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-11-18 12:54:05 -05:00
Matthew Heon
c6fe4430b7
Compile-tested implementation of SQL-backed state
...
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
2017-11-18 12:54:05 -05:00