Commit Graph

146 Commits

Author SHA1 Message Date
Alex Dadgar
0d02839220 Merge pull request #237 from hashicorp/f-raw-exec-driver
A raw fork/exec driver that provides no isolation.
2015-10-09 11:30:12 -07:00
Alex Dadgar
bbdceca358 Better parsing of raw_exec option and updated docs 2015-10-09 11:29:59 -07:00
Chris Bednarski
6c90314a51 Merge pull request #225 from hashicorp/b-docker-port
Change docker default port to support windows and boot2docker
2015-10-08 23:50:11 -07:00
Chris Bednarski
6e43a2ba33 Use DefaultDockerHost from fsouza upstream 2015-10-08 12:35:19 -07:00
Alex Dadgar
60346ae8ec Actually add the files 2015-10-08 12:19:39 -07:00
Alex Dadgar
7caa30b859 Change name from pexec to raw_exec; hamming distance one seemed like a bad idea 2015-10-08 12:19:39 -07:00
Alex Dadgar
1098e562fc Privileged exec driver 2015-10-08 12:19:39 -07:00
Alex Dadgar
7ab84c2862 Merge pull request #165 from achanda/rkt
Add a driver for rkt
2015-10-07 16:00:21 -07:00
Abhishek Chanda
9140796a49 Run gofmt 2015-10-07 22:24:16 +00:00
Abhishek Chanda
43a8a1af96 Add an optional exec parameter to task config
This overrides the default exec command in the ACI
2015-10-07 15:15:36 -07:00
Abhishek Chanda
558333dce9 Use Run for adding trust prefix
The trust needs to be added before anything can progress
2015-10-07 11:15:17 -07:00
Chris Bednarski
8b0c18db5f Remove panic -- client is nil when there is an error 2015-10-06 19:09:59 -07:00
Chris Bednarski
d7023f8f71 Merge branch 'master' into b-docker-port 2015-10-06 17:54:32 -07:00
Chris Bednarski
f3b5d553ad Support boot2docker or VM for dev/test 2015-10-06 17:53:05 -07:00
Chris Bednarski
2801e7d1e1 Fingerprint test should now behave correctly when the executor is not installed; fix some go vet issues 2015-10-06 16:33:02 -07:00
Chris Bednarski
127dc127b2 Use docker.NewClient; move dockerClient before it's used 2015-10-06 16:26:31 -07:00
Abhishek Chanda
4b216736ab Use Start to run commands
Run blocks
2015-10-06 15:56:39 -07:00
Abhishek Chanda
5c76624f2e Add prefix to all message logs for rkt driver 2015-10-06 15:56:39 -07:00
Abhishek Chanda
97c2172108 Register rkt as a built in driver 2015-10-06 15:56:39 -07:00
Abhishek Chanda
00556d4b3b Add missing import and remove unsued one 2015-10-06 15:56:39 -07:00
Abhishek Chanda
740187e669 Do not run containers interactively 2015-10-06 15:56:39 -07:00
Abhishek Chanda
0bc00223ed Do not register to the metadata service 2015-10-06 15:56:39 -07:00
Abhishek Chanda
61b4be2389 Remove a stray comment 2015-10-06 15:56:39 -07:00
Abhishek Chanda
0e659aefe7 Fix constructing the handle 2015-10-06 15:56:39 -07:00
Abhishek Chanda
481ba6ecb6 Add a test fort he rkt driver 2015-10-06 15:56:39 -07:00
Abhishek Chanda
f893fb7c35 Fix name of prefix 2015-10-06 15:56:39 -07:00
Abhishek Chanda
6a2a938b4e Add a driver for rkt
rkt docs here
https://github.com/coreos/rkt
2015-10-06 15:56:39 -07:00
Chris Bednarski
7017276df6 Merge branch 'docker-use-environment' of https://github.com/carlosdp/nomad into b-docker-port 2015-10-06 15:36:06 -07:00
Chris Bednarski
629a56ee70 This is needed for 1.4.2 compat; not sure what removed it 2015-10-06 00:32:34 -07:00
Chris Bednarski
28fef04b64 Add skip detection for all docker tests 2015-10-06 00:27:05 -07:00
Carlos Diaz-Padron
078a025725 Use environment to connect to Docker by default
Uses the environment definition for docker by default. Docker will
default to the unix/tcp socket if the environment is not set.
2015-10-04 12:59:54 -07:00
Alex Dadgar
7f359cfe99 update test to reflect not uppercasing passed env vars 2015-10-02 17:49:18 -07:00
Antoine POPINEAU
78f74c57ae Removed capitalization of user-defined envvars. 2015-10-02 17:46:55 -07:00
Antoine POPINEAU
962c509586 Moved the envvars logic to TaskEnvironment and TaskEnvironmentVariables(). Added tests there. 2015-10-02 17:46:55 -07:00
Antoine POPINEAU
9c17c0a1d8 Added a jobspec directive to specify envvars. Updated Docker driver to use them accordingly. 2015-10-02 17:46:55 -07:00
Alex Dadgar
5294330cf7 go-fmt 2015-10-02 10:54:04 -07:00
Abhishek Chanda
0ef12a5ef7 Make sure createHostConfig is called only once
The second call discards any mods to port binding or
network type

Fixes #185 and #196
2015-10-02 10:43:37 -07:00
Abhishek Chanda
ee2cd3bed0 Enable setting networking mode for docker
This patch enables setting networking mode for the docker
driver. This does not handle the `container` mode.
Closes #175
2015-10-01 18:52:41 -07:00
Armon Dadgar
d054a06dc4 docker: check for missing unix socket 2015-09-27 17:49:58 -07:00
Alex Dadgar
6f8f5b164d Add environment package 2015-09-27 17:37:25 -07:00
Alex Dadgar
6d8a913242 ParseAndReplace args at the executor level 2015-09-27 17:37:24 -07:00
Alex Dadgar
75f93ce9fb Pull task environments into their own type to be reusable across drivers and executors 2015-09-27 17:37:24 -07:00
Alex Dadgar
148e415f43 Remove cruft from rebase 2015-09-27 17:37:24 -07:00
Alex Dadgar
c555c70eeb merge fixes 2015-09-27 17:37:24 -07:00
Chris Bednarski
bc3504a7d0 Correct implementation of config check for container and image cleanup; moved into Start and Open because handle does not have the config object 2015-09-27 13:59:38 -07:00
Chris Bednarski
24c5fc9cc5 Merge branch 'master' into f-docker-config-cleanup 2015-09-26 21:52:02 -07:00
Chris Bednarski
51bf0162d0 Add configuration option for whether Nomad will clean up containers and images when they are no longer used 2015-09-26 18:53:15 -07:00
Chris Bednarski
bb9fbf8f22 Add all containers when searching for images that are still in used, since the container using the image may be stopped 2015-09-26 18:51:36 -07:00
Chris Bednarski
b0c1b04264 Log an info when an image can't be removed because it's still in use 2015-09-26 00:34:57 -07:00
Chris Bednarski
30fd526766 Use env.Get, remove sha256 checks, and change from regexp to strconv to test for int 2015-09-25 23:55:01 -07:00