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
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
Chris Bednarski
5d4d044a6f
Add docker 'command' to docs; cleanup some comments
2015-09-25 23:28:23 -07:00
Chris Bednarski
928fe86553
Replace docker version and docker ps with native calls; no more exec!
2015-09-25 23:13:40 -07:00
Chris Bednarski
6c5ddb3076
Docker kill now exits with an error, as expected
2015-09-25 22:43:19 -07:00
Chris Bednarski
784d0e9e15
Go native for docker API calls
2015-09-25 20:01:03 -07:00
Chris Bednarski
6882f20b9f
Put that back!
2015-09-25 18:38:41 -07:00
Chris Bednarski
723b55c049
Merge branch 'master' into b-docker-fixes
...
Conflicts:
client/driver/docker_test.go
client/driver/java_test.go
client/driver/qemu_test.go
2015-09-25 18:35:23 -07:00
Chris Bednarski
cf0440dbe3
Improve handling of tagged docker images
...
- Converted Start() to use docker native client throughout
- Better handling of latest vs. tagged images
- We can now support multiple versions of an image
- We will now not download a tag if we already have it
2015-09-25 18:22:10 -07:00
Alex Dadgar
04094cfb40
Small test cleanup
2015-09-25 17:55:29 -07:00
Chris Bednarski
0f6e60c7aa
Added a failing test case for multiple docker tags
2015-09-25 17:38:07 -07:00
Chris Bednarski
6b59a8235e
Added docker test to spin up 3 containers at the same time
2015-09-25 17:35:33 -07:00
Chris Bednarski
f2dd5cac18
Added guards to tests so we can more gracefully degrade the test suite when thing are not installed
2015-09-25 16:49:26 -07:00
Chris Bednarski
559462b49f
Added basic resources to exec/java tests so each test has cpu, ram, and network
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
38460ca653
AllocDirBuilder that creates the alloc directory structure
2015-09-25 16:46:41 -07:00
Armon Dadgar
122c14965a
Merge pull request #101 from hashicorp/f-qemu-network-update
...
driver/qemu: Use Restricted Ports, additional port forwarding
2015-09-25 16:36:46 -07:00
Clint Shryock
ce732cede4
Fix bad copy-paste from refactoring
2015-09-25 08:36:46 -05:00
Chris Bednarski
59a1ed34fa
Merge pull request #104 from hashicorp/f-docker-static-ports
...
Add static (reserved) ports for docker
2015-09-24 15:44:41 -07:00
Chris Bednarski
4dc1fb351b
Get only one version of a docker container
2015-09-24 14:07:28 -07:00
Clint Shryock
e1427ec835
re-order the resources check and don't bail if no ports requested
2015-09-24 14:32:54 -05:00
Chris Bednarski
77fb433a8e
Add test case for PopulateEnvironment
2015-09-24 00:17:33 -07:00
Chris Bednarski
29020ab263
Rename containerConfigForTask to createContainer to mirror the docker api call; other helper functions will follow this convention too
2015-09-24 00:00:46 -07:00
Chris Bednarski
1d4d349e92
Rename containerConfig to hostConfig since there are two types of container configs
2015-09-23 23:57:04 -07:00
Chris Bednarski
e9b7287935
Added static / reserved port allocations to docker
2015-09-23 23:45:34 -07:00
Clint Shryock
b0f09b5312
driver/qemu: Setup multiple port forwards
2015-09-23 23:15:28 -05:00
Chris Bednarski
50d0a852eb
Format as string instead of casting to string
2015-09-23 19:29:53 -07:00
Chris Bednarski
084e6f455d
Support mapped ports and labelled ports for docker
2015-09-23 18:19:01 -07:00