Chris Bednarski
8267ffe8a6
Merge branch 'user-lookup-nocgo' of https://github.com/carlosdp/nomad into b-user-lookup
2015-12-01 13:44:56 -08:00
Carlos Diaz-Padron
eeaa84d52e
Refactor out userLookup to helper package
...
Also replaces user.Lookup in exec driver
2015-12-01 11:59:55 -08:00
Alex Dadgar
8afce68bf0
Inject the current binary into the chroot in test mode
2015-11-24 16:30:53 -08:00
Diptanu Choudhury
05d21c52e4
Fixed the allocdir tests
2015-11-16 13:10:57 -08:00
Carlos Diaz-Padron
8ef509fbb3
Remove CGO dependency for user lookup in allocdir
...
os/user's user.Lookup requires that the artifact be compiled with CGO
support enabled. This change instead reads /etc/passwd directly.
The code was acquired from docker/docker#1096
2015-11-15 21:26:34 -08:00
Alex Dadgar
6e19dadcae
Check for previous embeds at entry level not folder level
2015-11-10 18:10:02 -08:00
Alex Dadgar
9707f60ddc
Fix alloc_dir mounting through task restarts
2015-11-10 14:12:30 -08:00
Alex Dadgar
ceb2a5f877
Fix alloc_dir error message
2015-10-06 16:38:06 -07:00
Mitchell Hashimoto
950fc7e495
client: fix windows build errors
2015-09-27 23:53:25 -07:00
Alex Dadgar
2ee8b22ddb
Use host file/dir permissions when embedding
2015-09-25 16:49:19 -07:00
Alex Dadgar
6d7afcd1ff
Skip non-regular files in embedding and comment on the chrootEnv map
2015-09-25 16:49:19 -07:00
Alex Dadgar
23c726a055
Windows shouldn't do anything on unmount
2015-09-25 16:49:19 -07:00
Alex Dadgar
e8bd1a3df4
Fix embed non-existent test
2015-09-25 16:49:18 -07:00
Alex Dadgar
8a5e65e27a
Merge qemu test
2015-09-25 16:49:14 -07:00
Alex Dadgar
9caa7ac077
Mount shared alloc dir, modified API and tests
2015-09-25 16:46:41 -07:00
Alex Dadgar
aba801d68e
Linux Embed and AllocDir unit tests
2015-09-25 16:46:41 -07:00
Alex Dadgar
7a5f6ea8e8
Fix function header
2015-09-25 16:46:41 -07:00
Alex Dadgar
a934701857
Embed interface
2015-09-25 16:46:41 -07:00
Alex Dadgar
66fe1294da
Changed file names so it builds correctly
2015-09-25 16:46:41 -07:00
Alex Dadgar
38460ca653
AllocDirBuilder that creates the alloc directory structure
2015-09-25 16:46:41 -07:00