Tianon Gravi
1cdf742a82
Update a few build tags to be more generic, add a couple more SETNS constants, and update Travis with a bunch of fixes/tweaks (including removing the nonfunctional cross-compile stuff for now)
...
Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
2014-07-17 02:24:49 -06:00
Michael Crosby
3c03998775
Merge pull request #101 from crosbymichael/selinux-build-tags
...
Add linux build tags for selinux
2014-07-16 17:00:48 -07:00
Michael Crosby
a10820a78b
Add linux build tags for selinux
...
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-16 16:24:28 -07:00
Michael Crosby
be85764f10
Merge pull request #100 from crosbymichael/add-dockerfile
...
Add dockerfile
2014-07-16 15:02:02 -07:00
Michael Crosby
2374226175
Add dockerfile
...
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-16 14:58:01 -07:00
Victor Marmol
b30e0e150f
Merge pull request #99 from crosbymichael/improve-term-handling
...
Remove terminal handling in libcontainer
2014-07-16 14:53:12 -07:00
Michael Crosby
b56aa0658a
Don't open slave in parent
...
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-15 18:24:15 -07:00
Michael Crosby
18e12838d6
Add resize of term in tty mode
...
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-15 17:44:18 -07:00
Michael Crosby
43b4258c46
Open with NOCTTY and set raw term
...
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-15 17:29:09 -07:00
Michael Crosby
d661720fd7
Remove terminal handling in libcontainer
...
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-15 16:55:11 -07:00
Michael Crosby
fb3d909c28
Merge pull request #98 from thockin/netperf
...
Don't set the MTU for loopback interfaces.
2014-07-14 18:07:46 -07:00
Tim Hockin
d25aa3cee7
Don't set the MTU for loopback interfaces.
...
Setting the MTU for loopback has a huge performance impact on intra-container
traffic. The loopback interface is not an ethernet interface and does not need
the same limit. with this change I see a 4x speedup for loopback throughput.
Docker-DCO-1.1-Signed-off-by: Tim Hockin <thockin@google.com> (github: thockin)
2014-07-15 01:01:26 +00:00
Victor Marmol
f282224144
Merge pull request #97 from crosbymichael/system-pkg
...
Remove the dep on dotcloud/docker/pkg/system
2014-07-14 17:59:42 -07:00
Michael Crosby
8947d07576
Finish removing the dependency on docker/pkg/system
...
Fixes #92
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-14 17:00:05 -07:00
Michael Crosby
e9ec77ab34
Migrate selinux system xattr calls and prctl calls
...
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-14 16:55:49 -07:00
Michael Crosby
a2dc64cf30
Add initial system pkg to libcontainer
...
Port over console and ptmx code into console package
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-14 16:46:51 -07:00
Victor Marmol
65c37a84af
Merge pull request #90 from crosbymichael/cross-compile
...
Remove unsupported file
2014-07-14 14:36:57 -07:00
Michael Crosby
0ebcbde911
Remove unsupported file
...
This is no longer needed and is not properly built with the cross
compile scripts anyways.
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-14 12:50:51 -07:00
Michael Crosby
fb67bb80b4
Merge pull request #89 from vmarmol/remove-freezer-stats
...
Remove FreezerStats.
2014-07-14 11:21:25 -07:00
Michael Crosby
af4d853c19
Merge pull request #88 from pmorie/master
...
Remove unused arg from namespaces.NsEnter
2014-07-14 10:39:35 -07:00
Victor Marmol
8de8fe9272
Remove FreezerStats.
...
They are really freezer state and we'll move them through another
interface.
Docker-DCO-1.1-Signed-off-by: Victor Marmol <vmarmol@google.com> (github: vmarmol)
2014-07-13 16:14:05 -07:00
Paul Morie
ea6e255f45
Remove unused arg from namespaces.NsEnter
...
Docker-DCO-1.1-Signed-off-by: Paul Morie <pmorie@gmail.com> (github: pmorie)
2014-07-13 17:48:27 -04:00
Victor Marmol
8c0303d928
Merge pull request #87 from crosbymichael/systemd-stats
...
Add cgroup status for systemd implementation
2014-07-11 12:13:21 -07:00
Michael Crosby
7e1cfc1f6a
Dont fail on missing subsystem for systemd stats
...
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-11 12:05:59 -07:00
Michael Crosby
50106c7490
Fix nsinit function to get stats from systemd
...
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-11 12:00:27 -07:00
Jimmi Dyson
cbd37fba86
Add systemd stats, reusing fs stats functionality
...
Docker-DCO-1.1-Signed-off-by: Jimmi Dyson <jimmidyson@gmail.com> (github: jimmidyson)
2014-07-11 11:43:08 -07:00
Victor Marmol
b3f798f9a7
Merge pull request #86 from crosbymichael/move-sync-pipe
...
Move syncpipe into separate package
2014-07-11 11:23:32 -07:00
Michael Crosby
48b2a41d76
Merge pull request #47 from rhatdan/master
...
Allow caller to change the SELinux labels on a directory tree.
2014-07-11 11:19:14 -07:00
Michael Crosby
422824c9d8
Move syncpipe into separate package
...
This moves the sync pipe into a separate package to help the changes
when moving the API around.
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-11 11:06:00 -07:00
Dhammika Pathirana
a3a4da3822
Add code review updates
...
Docker-DCO-1.1-Signed-off-by: Dhammika Pathirana <dhammika@gmail.com> (github: dhammika)
2014-07-10 23:26:27 -07:00
Dhammika Pathirana
2d69029a83
Add netlink hooks to delete a bridge dev
...
Signed-off-by: Dhammika Pathirana <dhammika@gmail.com>
Docker-DCO-1.1-Signed-off-by: Dhammika Pathirana <dhammika@gmail.com> (github: dhammika)
2014-07-10 23:26:27 -07:00
Victor Marmol
b325827144
Merge pull request #85 from vieux/remove_duplicate_caps
...
remove 2 duplicate caps
2014-07-10 21:29:09 -07:00
Victor Vieux
35e32b98cc
remove 2 duplicate caps
...
Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux)
2014-07-11 00:31:35 +00:00
Michael Crosby
e79b114a3a
Merge pull request #84 from tianon/travis-all
...
Update Travis to test all the packages
2014-07-10 11:38:51 -07:00
Michael Crosby
1e643a7d2e
Merge pull request #79 from rjnagal/cgroup_testing
...
Add a standalone test utility for cgroup package.
2014-07-10 11:20:48 -07:00
Tianon Gravi
1c0ea4a3e4
Update Travis to test all the packages
...
Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
2014-07-10 11:38:56 -06:00
Victor Marmol
52e70ecc5e
Merge pull request #83 from cf-guardian/create
...
Use conventional factory terminology
2014-07-10 10:32:03 -07:00
Glyn Normington
b42d0cb1da
Use conventional factory terminology
...
The Initialize method is responsible for creating a new Container instance
and calling it Create makes the factory pattern more obvious. Clearly
creating a Container instance involves initialising the instance.
Docker-DCO-1.1-Signed-off-by: Glyn Normington <gnormington@gopivotal.com> (github: glyn)
2014-07-10 11:50:51 +01:00
Michael Crosby
ca2de1bc2c
Merge pull request #81 from crosbymichael/update-factory
...
Add Load method to factory
2014-07-09 17:30:29 -07:00
Michael Crosby
33855392d8
Replace ID with Path on the container
...
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-09 17:02:36 -07:00
Michael Crosby
5001b7e841
Add Load method to factory
...
Also update Initialize to take a path to the container
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-09 16:58:59 -07:00
Victor Marmol
32221d509b
Merge pull request #77 from leetreveil/spelling
...
Fix spelling
2014-07-09 13:59:06 -07:00
Dan Walsh
49951d95c8
Allow caller to change the labels on a directory tree.
...
We want to add this to libcontainer so that we can change docker so that
when you volume mount into a labeled container, we want to allow the
administrator/user the ability to tell docker to fix the labels on the mount.
Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan)
2014-07-09 14:40:13 -04:00
Victor Marmol
c427473a9d
Merge pull request #80 from rjnagal/cgroup-cleanup
...
Change checks for non-existent cgroup file to a more concise form.
2014-07-09 09:59:17 -07:00
Rohit Jnagal
0916444691
Improved comment and names.
...
Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-07-09 16:54:55 +00:00
Rohit Jnagal
dceaa2e7b3
Cleanup checks for non-existent cgroup file to be concise.
...
Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-07-09 16:39:38 +00:00
Rohit Jnagal
c1d25c185e
Add a standalone test utility for cgroup package.
...
Although it has some overlap with nsinit utility, it is useful to test
cgroup functinality directly and try out new or internal features not
exposed through nsinit.
It still needs some work as I haven't added enough systemd support yet.
I also need to expose an enter method.
Docker-DCO-1.1-Signed-off-by: Rohit Jnagal <jnagal@google.com> (github: rjnagal)
2014-07-09 01:21:26 +00:00
Victor Marmol
46e34cf630
Merge pull request #76 from vmarmol/api-init
...
Adding Initialize() to create a new container.
2014-07-08 17:59:04 -07:00
Victor Marmol
ff8b888060
Merge pull request #78 from crosbymichael/rename-nsinit-main
...
Rename package correctly so the binary is nsinit
2014-07-08 16:44:45 -07:00
Michael Crosby
704a90bec4
Rename package correctly so the binary is nsinit
...
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@docker.com> (github: crosbymichael)
2014-07-08 16:36:59 -07:00