Commit Graph

64 Commits

Author SHA1 Message Date
Alex Dadgar
17b9e7ddb4 only use polling 2016-08-11 18:59:48 -07:00
Alex Dadgar
cc0fec53f1 initial log api impl 2016-07-25 11:16:01 -07:00
Diptanu Choudhury
51149e4381 Merge pull request #1321 from mwieczorek/f-windows-binds
Volume binds for windows containers
2016-07-18 10:20:44 -06:00
Alex Dadgar
887a2e947f Merge pull request #1404 from hashicorp/f-streaming
Implement a streaming API and tail in the fs command
2016-07-12 17:23:04 -06:00
Alex Dadgar
19ca6e7b55 address comments 2016-07-12 17:01:33 -06:00
Sean Chittenden
444998cc37 Darwin currently has allocdir support.
Pointed out by: @dadgar
2016-07-11 12:19:17 -07:00
Alex Dadgar
3cc13aeca1 initial comments 2016-07-11 10:58:18 -06:00
Sean Chittenden
572925a5fa Fix test for non-Linux platforms.
The following tests now check a whitelist for whether or not their
driver is present or not, or if the OS is supported or not.

* `TestAllocDir_MountSharedAlloc`
* `TestClient_Drivers_InWhitelist` (`exec` driver)
* `TestClient_Drivers` (`exec` driver)
* `TestJavaDriver_Fingerprint` (`java` driver)
2016-07-10 15:19:49 -07:00
Alex Dadgar
2368722146 initial tail impl 2016-07-10 13:57:04 -04:00
Michal Wieczorek
ff6a5aa799 Volume binds for windows containers 2016-06-20 21:46:33 +02:00
Sean Chittenden
29be52f762 Speling police 2016-05-15 09:41:34 -07:00
Sean Chittenden
7a2bd507e7 Merge pull request #1160 from hashicorp/f-freebsd
Stubbed out raw_exec support for *NIX platforms

OOB LGTM: @diptanu
2016-05-11 12:54:27 -07:00
Diptanu Choudhury
a84ace5136 Merge pull request #1164 from hashicorp/fix-unmount
Removing directories only if we could successfully unmount them
2016-05-11 12:51:34 -07:00
Diptanu Choudhury
dc38906809 Removing directories only if we could successfully unmount them 2016-05-10 14:57:16 -07:00
Sean Chittenden
0fdb16af99 Stub out FreeBSD support for Nomad
Compiles, but is not functional (yet).
2016-05-09 11:56:35 -07:00
Sean Chittenden
bfa8284531 Prefer golang.org/x/sys/unix where appropriate
Favor the `unix` package on *NIX platforms vs the now frozen `syscall` package.
2016-05-07 11:01:45 -07:00
Sean Chittenden
9cb16b5b9e Explicitly enumaret the build targets in _unix
`!windows` was being used as the synonym for `darwin dragonfly freebsd linux netbsd openbsd solaris`.  While I don't imagine `android` will be a prime target for Nomad in the near term, favor explicit build targets.

List of build targets generated by Go 1.7's dist command: `go tool dist list | sort | cut -d '/' -f 1 | sort | uniq`
2016-05-07 10:42:01 -07:00
Sean Chittenden
146c4e8fd6 Rename from posix to unix to parallel x/sys/unix
Use the `_unix` file suffix to denote *NIX-like semantics in order to parallel the designation given by the package `golang.org/x/sys/unix`.
2016-05-07 10:33:43 -07:00
Diptanu Choudhury
2e3a2d6e0d Seeking to offset while doing readAt with non-zero offset 2016-04-04 13:05:02 -07:00
Alex Dadgar
8742390da5 Alloc dir uses MkdirAll 2016-03-28 14:33:53 -07:00
Alex Dadgar
9c45f36819 Drop the permissions of sub directories in the alloc dir 2016-02-25 11:49:43 -08:00
Diptanu Choudhury
9458106550 Added a test for AllocDir.LogDir 2016-02-25 09:08:51 -08:00
Diptanu Choudhury
54d7057912 Writing logs to alloc dir 2016-02-24 20:06:43 -08:00
Alex Dadgar
1a31340075 Unmount special directories when task finishes 2016-02-08 18:51:11 -08:00
Diptanu Choudhury
747d3202ca Moving code to mount and unmount chroot into allocdir 2016-02-08 14:11:53 -08:00
Alex Dadgar
ec583e4807 Add tmp file to each task directory 2016-02-04 15:35:04 -08:00
Alex Dadgar
3308841098 Serialize the list of mounted entries in the alloc dir 2016-02-04 14:30:32 -08:00
Ranjib Dey
8e546010e7 allow group and others to have executable permissions 2016-01-31 10:54:32 -08:00
Diptanu Choudhury
12ffecf021 Added more information about files 2016-01-27 14:20:10 -08:00
Alex Dadgar
e91abac0f6 Fix a bunch of tests
Up timeouts

trusty travis beta

Increase timeouts
2016-01-20 16:03:53 -08:00
Diptanu Choudhury
0cf85f5355 Refactoring some comments and test names 2016-01-14 15:07:24 -08:00
Diptanu Choudhury
778c5d0a86 Added some more comments 2016-01-14 13:47:46 -08:00
Diptanu Choudhury
91869fb79b Added some docs and removed a redundant method 2016-01-14 13:45:48 -08:00
Diptanu Choudhury
21847954e0 changed the API of the client 2016-01-14 13:35:42 -08:00
Diptanu Choudhury
e7b1424bcb Returning an error if the list fails 2016-01-14 11:47:05 -08:00
Diptanu Choudhury
4345fc9bee Renamed AllocFile to AllocFileInfo 2016-01-13 17:18:10 -08:00
Diptanu Choudhury
78d03616f6 Closing the file handler after finishing readat 2016-01-13 14:39:06 -08:00
Diptanu Choudhury
9dced9a890 alex: making the readat more efficient 2016-01-13 12:43:13 -08:00
Diptanu Choudhury
6604ef5be1 Writing contents of buffer to writer even if there was an error 2016-01-13 11:38:43 -08:00
Diptanu Choudhury
11a67599b9 Implemeted readAt 2016-01-12 22:06:42 -08:00
Diptanu Choudhury
b5385b616d Implemented the Stat API 2016-01-12 21:28:07 -08:00
Diptanu Choudhury
cbcdaec3fe Added the Stat API 2016-01-12 15:25:51 -08:00
Diptanu Choudhury
744c226c23 Added methods for listing directories inside an alloc 2016-01-12 15:03:53 -08:00
Diptanu Choudhury
06443a6629 Using cgo dependencies to look up users 2015-12-15 11:12:13 -08:00
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