open-nomad/drivers/docker
Mahmood Ali de954da350
docker: introduce a new hcl2-friendly mount syntax (#9635)
Introduce a new more-block friendly syntax for specifying mounts with a new `mount` block type with the target as label:

```hcl
config {
  image = "..."

  mount {
    type = "..."
    target = "target-path"
    volume_options { ... }
  }
}
```

The main benefit here is that by `mount` being a block, it can nest blocks and avoids the compatibility problems noted in https://github.com/hashicorp/nomad/pull/9634/files#diff-2161d829655a3a36ba2d916023e4eec125b9bd22873493c1c2e5e3f7ba92c691R128-R155 .

The intention is for us to promote this `mount` blocks and quietly deprecate the `mounts` type, while still honoring to preserve compatibility as much as we could.

This addresses the issue in https://github.com/hashicorp/nomad/issues/9604 .
2020-12-15 14:13:50 -05:00
..
cmd cleanup driver eventor goroutines 2020-05-26 11:04:04 -04:00
docklog Apply some suggested fixes from staticcheck (#9598) 2020-12-10 07:29:18 -08:00
test-resources/docker Parse security_opts before sending them to docker daemon 2020-03-31 08:34:41 -07:00
util docker: Support stats on Windows 2019-02-22 14:19:58 +01:00
config.go docker: introduce a new hcl2-friendly mount syntax (#9635) 2020-12-15 14:13:50 -05:00
config_test.go docker: introduce a new hcl2-friendly mount syntax (#9635) 2020-12-15 14:13:50 -05:00
coordinator.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
coordinator_test.go driver/docker: allow configurable pull context timeout setting. 2020-08-12 08:58:07 +01:00
driver.go docker: introduce a new hcl2-friendly mount syntax (#9635) 2020-12-15 14:13:50 -05:00
driver_darwin_test.go use allow/deny instead of the colored alternatives (#9019) 2020-10-12 08:47:05 -04:00
driver_default.go docker: v19.03.8 2020-03-28 17:29:04 +01:00
driver_linux_test.go don't GC images in tests by default 2020-05-26 21:24:55 -04:00
driver_pre09.go Apply some suggested fixes from staticcheck (#9598) 2020-12-10 07:29:18 -08:00
driver_test.go docker: introduce a new hcl2-friendly mount syntax (#9635) 2020-12-15 14:13:50 -05:00
driver_unix_test.go docker: disallow volume mounts from host by default (#9321) 2020-11-11 10:03:46 -05:00
driver_windows.go driver/docker: use default network mode 2019-07-31 21:07:46 +03:00
driver_windows_test.go Use Dockerhub Mirror. (#9220) 2020-11-02 09:28:02 -05:00
fingerprint.go Add gocritic to golangci-lint config (#9556) 2020-12-08 12:47:04 -08:00
fingerprint_test.go cleanup driver eventor goroutines 2020-05-26 11:04:04 -04:00
handle.go Apply some suggested fixes from staticcheck (#9598) 2020-12-10 07:29:18 -08:00
network.go Apply some suggested fixes from staticcheck (#9598) 2020-12-10 07:29:18 -08:00
ports.go docker: support group allocated ports and host_networks (#8623) 2020-08-11 18:30:22 -04:00
progress.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
progress_test.go docker: started work on porting docker driver to new plugin framework 2018-11-19 22:59:15 -05:00
reconciler.go add timeouts for docker reconciler docker calls 2019-10-18 15:31:13 -04:00
reconciler_test.go don't GC images in tests by default 2020-05-26 21:24:55 -04:00
state.go docker: started work on porting docker driver to new plugin framework 2018-11-19 22:59:15 -05:00
stats.go Apply some suggested fixes from staticcheck (#9598) 2020-12-10 07:29:18 -08:00
stats_test.go docker: improve stats names and comments 2019-04-02 09:18:38 -07:00
utils.go Resolve docker types conflict 2020-03-28 17:29:06 +01:00
utils_test.go driver/docker: Support volumes field in Windows 2019-04-25 09:02:44 -04:00
utils_unix_test.go Remove argument passing runtime GOOS 2020-03-03 15:39:43 +01:00
utils_windows_test.go Avoid resolving dotted segments when host path for volume is named pipe 2020-03-03 14:00:19 +01:00
win32_volume_parse.go driver/docker: support unix destination mount path in windows 2019-08-01 19:54:08 +03:00