75 Commits

Author SHA1 Message Date
Peter Wilmott
b6653f6962 Remove unneeded whitespace 2015-08-05 20:23:14 +01:00
Peter Wilmott
3740778537 Merge pull request #21 from Fusion/master
Renamed cmdline args to BOCKER_ prefix
2015-08-05 20:10:30 +01:00
Peter Wilmott
7911226036 Add input checks to exec; Make exec's grep more robust; Added tests for exec 2015-08-05 20:09:25 +01:00
Peter Wilmott
25029b4f07 Merge pull request #22 from NonerKao/master
Fix a typo in function bocker_commit
2015-08-05 19:11:27 +01:00
Quey-Liang Kao
abb635a24c Fix a typo in function bocker_commit
In the first two line of bocker_commit(),
the program checks if the arguments are valid,
but the check of image does not return a correct message.
2015-08-06 01:44:19 +08:00
Chris F Ravenscroft
747c8b251f Renamed cmdline args to BOCKER_ prefix 2015-08-03 14:18:53 -07:00
Peter Wilmott
4956a537b7 Correctly reset IFS after changing 2015-08-03 18:27:29 +00:00
Peter Wilmott
23fdb390a6 Update README.md 2015-08-03 19:23:21 +01:00
Peter Wilmott
c4c748ded7 Update README.md 2015-08-03 19:23:02 +01:00
Peter Wilmott
74c2b197c7 Allow the setting of cgroup limits using env variables; Allocate CPU resources via shares not cores 2015-08-03 18:22:07 +00:00
Peter Wilmott
df8c4065c7 Merge pull request #19 from ivuk/fix-typo-readme
Small fixes for README.md
2015-08-03 19:16:10 +01:00
Igor Vuk
e7dd210844 Small fixes for README.md 2015-08-03 20:04:28 +02:00
Peter Wilmott
f33b31b3d6 Make each isolation level in bocker_run more clear 2015-07-31 21:59:07 +00:00
Peter Wilmott
1f48b32c42 Cleaned up cgroup implementation
Set default limits to 1 core and 512MB, CGX has also been removed to try
and make it more clear what is calling what.
2015-07-31 19:35:42 +00:00
Peter Wilmott
bc1b4719b5 Bocker is now written in 'around 100 lines of bash'
The 100 lines limit was a fun idea but has started to hurt
development. There will still be a focus on keeping it short and simple,
but no hard limit imposed
2015-07-31 18:12:59 +00:00
Peter Wilmott
11129aecc0 Separate nsenter arguments
For some reason it doesn't like -muinp, so you need to use -m -u -i -n
-p instead.
2015-07-31 16:55:07 +00:00
Peter Wilmott
25efd9497d Added libcgroup-tools to the list of packages to install 2015-07-31 16:17:06 +00:00
Peter Wilmott
8505276c60 Update README.md 2015-07-27 18:51:59 +00:00
Peter Wilmott
6f8e5e9cb9 Merge branch 'Fusion-master' 2015-07-27 18:50:29 +00:00
Peter Wilmott
baf937abdd Merge branch 'master' of https://github.com/Fusion/bocker into Fusion-master 2015-07-27 18:44:16 +00:00
Peter Wilmott
afcbd1bd06 Open functions on the same line that the previous function closes 2015-07-27 19:18:43 +01:00
Peter Wilmott
1b5f10b8ab Merge branch 'wking-indent-function-bodies' 2015-07-27 19:09:33 +01:00
Peter Wilmott
7bd579c349 Indent function bodies 2015-07-27 19:09:20 +01:00
Peter Wilmott
b240a47ac8 Implement 'bocker pull' for Docker Hub integration 2015-07-27 19:04:14 +01:00
Peter Wilmott
d5b38393c2 Small style changes 2015-07-27 17:51:08 +01:00
Peter Wilmott
7c85abd1b4 Merge branch 'Fusion-master' 2015-07-27 17:31:08 +01:00
Chris F Ravenscroft
c64c575abb Now with cgroup support 2015-07-26 17:05:06 -07:00
Peter Wilmott
5d48897ffa Merge branch 'master' of https://github.com/Fusion/bocker into Fusion-master 2015-07-26 22:15:18 +01:00
Chris F Ravenscroft
d4b9247f14 Execute commands in a container 2015-07-25 23:37:19 -07:00
W. Trevor King
871a851ffc Indent function bodies
This makes it a bit easier to read.
2015-07-25 21:16:04 -07:00
Peter Wilmott
caf4a38b9a Save 4 lines, thanks @SkUrRiEr 2015-07-24 16:46:25 +00:00
Peter Wilmott
036d2b6ffc Merge pull request #11 from pixelb/patch-1
mention coreutils as a prerequisite
2015-07-24 09:28:22 +01:00
Pádraig Brady
61f8ed7a49 mention coreutils as a prerequisite
cp --reflink=auto was added in coreutils 7.5
2015-07-24 00:13:25 +01:00
Peter Wilmott
0b5dc8b338 #3 : Deterministically generate IP and MAC addresses from the container IDs 2015-07-24 00:01:42 +01:00
Peter Wilmott
aa13b05e63 Merge branch 'master' of github.com:p8952/bocker 2015-07-23 18:16:36 +01:00
Peter Wilmott
5d9c745eef Merge branch 'SkUrRiEr-master' 2015-07-23 18:14:31 +01:00
Peter Wilmott
5246b814a3 Resolve merge conflicts; remove 80 char width limit for now 2015-07-23 18:14:08 +01:00
Peter Wilmott
b6678d7a2b Merge pull request #8 from alexandregz/typo-README
typo
2015-07-23 18:06:36 +01:00
Peter Wilmott
aad843d8d2 Merge branch 'TomiBelan-master' 2015-07-23 18:00:54 +01:00
Peter Wilmott
e84b1f768c Merge branch 'master' of https://github.com/TomiBelan/bocker into TomiBelan-master 2015-07-23 17:58:15 +01:00
Peter Wilmott
6e6ee2d3b2 Improve test coverage 2015-07-23 17:56:51 +01:00
Alexandre Espinosa Menor
a9f3039c59 typo 2015-07-23 17:02:19 +02:00
Tomi Belan
c3efade5c4 Shorter case statement 2015-07-23 16:56:27 +02:00
Julian Calaby
3eaea7e44c Trick sed into always ignoring slashes in $0 2015-07-23 09:48:52 +10:00
Julian Calaby
103182ad40 Split sed script to only format help comments 2015-07-23 09:48:30 +10:00
Julian Calaby
d229161326 Move exit call out of HELP()
This saves another line as it's only needed in one place.
2015-07-23 09:32:48 +10:00
Julian Calaby
3bf68db6a4 Use the actual executable path in the help messages
And it doesn't cost any lines
2015-07-23 09:32:48 +10:00
Julian Calaby
dbbeaf8732 Document "commit" and "help" commands 2015-07-23 09:32:48 +10:00
Julian Calaby
7edff781c1 Reduce lines required for command documentation 2015-07-23 09:32:48 +10:00
Peter Wilmott
39ebf616c4 Put all test in their own directory; Add a script to run all tests 2015-07-22 19:06:58 +01:00