Commit Graph

1489 Commits

Author SHA1 Message Date
Michael Crosby 1865c0aac6 Remove apparmor profile generation from libcontainer
The creation of the profile should be handled outside of libcontainer so
that it can be customized and packaged.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-07-02 13:45:27 -07:00
Mrunal Patel 00f6b56903 Merge pull request #79 from LK4D4/fix_tags
Fix build tags
2015-07-01 13:57:50 -07:00
Alexander Morozov 38c34d6036 Fix build tags
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-07-01 13:22:09 -07:00
Alexander Morozov e23b0e639f Merge pull request #67 from mrunalp/fix_readme
README changes for the newer spec format.
2015-07-01 10:44:22 -07:00
Alexander Morozov 648a3c6511 Merge pull request #71 from mrunalp/gopath_order
Prefer Godep dependencies in the GOPATH
2015-06-30 11:16:32 -07:00
Mrunal Patel 53bab7d85f Prefer Godep dependencies in the GOPATH
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2015-06-30 14:07:56 -04:00
Michael Crosby 38d06a35e4 Merge pull request #45 from LK4D4/makefile_imp
Some new stuff for makefile
2015-06-30 11:04:03 -07:00
Alexander Morozov a87bc12f86 Add makefile targets for basic lint and testing
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-06-30 10:17:10 -07:00
Mrunal Patel b3eaad364f README changes for the newer spec format.
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2015-06-30 13:02:34 -04:00
Michael Crosby fd6564b8e4 Merge pull request #68 from mtesselH/master
Enable build on unsupported platforms
2015-06-30 10:00:23 -07:00
Alexander Morozov e079993379 Merge pull request #63 from kennethlimcp/patch-2
fixed typo
2015-06-30 09:26:31 -07:00
Mrunal Patel 0a4ba80b71 Merge pull request #59 from cyphar/603-fixup-API
libcontainer: user: fix GetAdditionalGroups* API
2015-06-30 08:52:19 -07:00
Kenneth Lim 7a1dbaa6cc typo fix
Signed-off-by: Kenneth Lim <kennethlimcp@gmail.com>
2015-06-30 09:11:49 +08:00
Marianna 5aa82c950d Enable build on unsupported platforms
Should compile now without errors but changes needed to be added for each system so it actually works.
main_unsupported.go is a new file with all the unsupported commands
Fixes #9

Signed-off-by: Marianna <mtesselh@gmail.com>
2015-06-29 17:03:44 -07:00
Alexander Morozov 85e264d0b9 Merge pull request #66 from crosbymichael/config-spec-update
Update config based on spec changes
2015-06-29 13:55:58 -07:00
Michael Crosby 75ab73b8ab Remove all for make install
This is not how Makefiles work and install should not build everything
again.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-06-29 13:33:15 -07:00
Michael Crosby c4fd381a38 Move namespaces into linux spec
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-06-29 13:30:35 -07:00
Michael Crosby 4c829ea2ad Add version check for spec
We need this version check during our initial work so that runc does not
fail silently while make changes to runc to match the spec work going
on.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-06-29 13:30:35 -07:00
Michael Crosby b2d9d99610 Only define a single process
This removes the Processes slice and only allows for one process of the
container.  It also renames TTY to Terminal for a cross platform
meaning.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-06-29 13:30:35 -07:00
Michael Crosby cb44dec571 Add Platform struct
This struct hold information like OS and Arch for the container.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-06-29 13:30:35 -07:00
Michael Crosby 1fa65466ea Move linux specific options to subsection
This moves the linux specific options into a "linux" {} section on the
config.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-06-29 13:30:35 -07:00
Alexander Morozov eec8672a70 Merge pull request #40 from cgwalters/absolutely-use-my-rootfs
linux: Don't prepend process' cwd if rootfs path is already absolute
2015-06-29 12:58:40 -07:00
Alexander Morozov 93e71e9d99 Merge pull request #32 from 7imbrook/master
Added all dependency to install in Makefile
2015-06-29 12:55:51 -07:00
Alexander Morozov 454c1c897b Merge pull request #49 from jhowardmsft/removensenter
Windows: Remove nsenter dependency
2015-06-29 11:35:24 -07:00
Mrunal Patel 5a98a3dfef Merge pull request #64 from rmanyari/master
Adding minimum version required for docker create
2015-06-29 07:56:49 -07:00
Rodrigo 11ef45aa29 Adding minimum version required for docker create 2015-06-29 03:08:16 -04:00
John Howard cd28283c79 Windows: Remove nsenter dependency
Signed-off-by: John Howard <jhoward@microsoft.com>
2015-06-28 17:04:16 -07:00
Mrunal Patel 15ed8ff7b1 Merge pull request #55 from mapk0y/add_filelocks_option
checkpoint/restore commands support 'file-locks' option.
2015-06-28 16:23:45 -07:00
Alexander Morozov 75c5b6ace9 Merge pull request #61 from blakelapierre/patch-1
Corrected spelling
2015-06-27 20:41:18 -07:00
Blake La Pierre 3ba8b5e706 Corrected spelling 2015-06-27 18:36:11 -07:00
Aleksa Sarai 14f271fe4c libcontainer: user: update tests for GetAdditionalGroups
Update the tests to use the test-friendly GetAdditionalGroups API,
rather than making random files for no good reason.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
2015-06-28 11:23:37 +10:00
Aleksa Sarai 85f722dea0 libcontainer: user: fix GetAdditionalGroupsPath to match API
The old GetAdditionalGroups* API didn't match the rest of
libcontainer/user, we make functions that take io.Readers and then make
wrappers around them. Otherwise we have to do dodgy stuff when testing
our code.

Fixes: d4ece29c0b ("refactor GetAdditionalGroupsPath")
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
2015-06-28 11:23:01 +10:00
mapk0y 986dc0f730 checkpoint/restore commands support 'file-locks' option.
Signed-off-by: mapk0y <mapk0y@gmail.com>
2015-06-27 18:56:24 +09:00
Michael Crosby b6c196fd18 Merge pull request #47 from LK4D4/fix_abs_path
Fix absolute path getting for runc binary
2015-06-26 17:46:49 -07:00
Alexander Morozov 4d6c19af8b Fix absolute path getting for runc binary
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-06-26 14:56:53 -07:00
Colin Walters 83d503e9d7 linux: Don't prepend process' cwd if rootfs path is already absolute
If I provide a path starting with `/` I expect that to be honored;
otherwise I have to explicitly `(cd /; /path/to/runc)`.

Signed-off-by: Colin Walters <walters@redhat.com>
2015-06-26 17:39:38 -04:00
Michael Crosby a1c3018cc4 Merge pull request #23 from duglin/tweakHelp
Minor README tweaks to help newbies
2015-06-26 13:43:16 -07:00
Mrunal Patel d5e97edbbc Merge pull request #44 from crosbymichael/move-docs
Move libcontainer documenation to root of repo
2015-06-26 12:03:46 -07:00
Michael Crosby f637539def Move libcontainer documenation to root of repo
This moves much of the documentation on contributing and maintainer the
codebase from the libcontainer sub directory to the root of the repo.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-06-26 11:50:46 -07:00
Mrunal Patel 8d0ae52adc Merge pull request #42 from crosbymichael/notice
Add notcie about config format changes
2015-06-26 11:37:27 -07:00
Michael Crosby 5e90d85d26 Add notcie about config format changes
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-06-26 11:31:00 -07:00
Alexander Morozov cc16e6b032 Merge pull request #30 from estesp/missing-rootfs-check
Make startup errors a bit friendlier
2015-06-26 09:03:49 -07:00
Mrunal Patel 3fec3b37bf Merge pull request #33 from estesp/typo-and-usage-format
Update usage content and fix typos
2015-06-25 17:17:42 -07:00
Phil Estes 936ca1b78d Update usage content and fix typos
1. Remove mention of nsinit (removed from the repo)
2. Make basic usage text a bit more informative; fix typo
3. Fix typo in panic() message (that should never be seen) :)

Docker-DCO-1.1-Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com> (github: estesp)
2015-06-25 16:26:31 -07:00
Michael Timbrook f8c4890a2f Added all dependency to install in Makefile 2015-06-25 13:42:15 -07:00
Michael Crosby f49826cf7e Merge pull request #31 from estesp/allow-hyphen-in-id
Allow hyphen in "id" (based on `cwd` pathname)
2015-06-25 11:30:45 -07:00
Phil Estes d95050084b Allow hyphen in "id" (based on `cwd` pathname)
A directory with a hyphen currently generates an InvalidId error because
of the regex in libcontainer.  I don't believe there is any reason a
hyphen should be disallowed.

Docker-DCO-1.1-Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com> (github: estesp)
2015-06-25 11:27:25 -07:00
Doug Davis 1c81b08c8c Minor README tweaks to help newbies
Signed-off-by: Doug Davis <dug@us.ibm.com>
2015-06-25 10:53:42 -07:00
Phil Estes 9c56596f24 Make startup errors a bit friendlier
A couple minor changes to error handling in startup:
1. Don't dump full help/usage text when the only problem is `runc` wasn't started under
root privileges
2. Check for rootfs and make error clear to user when it doesn't exist
3. Change fatal to logrus.Fatal to get nicer output with simple error
message

Docker-DCO-1.1-Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com> (github: estesp)
2015-06-25 00:19:44 -07:00
Mrunal Patel d05943b95f Merge pull request #28 from estesp/allow-relative-runc
Allow runc to be executed as a relative path
2015-06-24 19:24:55 -07:00