Commit Graph

26 Commits

Author SHA1 Message Date
Shengjing Zhu
1fbca50a3b Vendor sync 2020-08-20 00:31:07 +08:00
Mahmood Ali
b191d84b78 Upgrade libcontainer dependency
Upgrade libcontainer dependency to pick up fix for CVE-2019-19921 .
2020-06-22 16:56:54 -04:00
Seth Hoenig
15fb4c990a deps: Switch to Go modules for dependency management
This PR switches the Nomad repository from using govendor to Go modules
for managing dependencies. Aspects of the Nomad workflow remain pretty
much the same. The usual Makefile targets should continue to work as
they always did. The API submodule simply defers to the parent Nomad
version on the repository, keeping the semantics of API versioning that
currently exists.
2020-06-02 14:30:36 -05:00
Yoan Blanc
ef36f20386 vendor: opencontainrs/runc v1.0.0-rc7
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-21 15:43:02 +01:00
Yoan Blanc
95f3ab8388 remove all opencontainers/runc
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
2020-03-21 15:33:30 +01:00
Mahmood Ali
489b68e00e Update github.com/opencontainers/selinux
Or github.com/opencontainers/selinux/go-selinux, a dependency of
libcontainer.
2019-06-18 14:49:11 -04:00
Mahmood Ali
2f54095846 Update libcontainer to 6cc5158
To pick up the fix in https://github.com/opencontainers/runc/pull/2023

Fixes https://github.com/hashicorp/nomad/issues/5836
2019-06-18 14:48:13 -04:00
Mahmood Ali
0088f40fd4 vendor upstream opencontainers/runc 2019-04-19 09:49:04 -04:00
Mahmood Ali
bd90b8db77 CVE-2019-5736: Update libcontainer depedencies (#5334)
* CVE-2019-5736: Update libcontainer depedencies

Libcontainer is vulnerable to a runc container breakout, that was
reported as CVE-2019-5736[1].  Upgrading vendored libcontainer with the fix.

The runc changes are captured in 369b920277 .

[1] https://seclists.org/oss-sec/2019/q1/119
2019-02-19 20:21:18 -05:00
Mahmood Ali
379e79ceff Vendor libcontainer/devices 2018-12-07 09:13:27 -05:00
Nick Ethier
5b14d24bf4 executor v2 (#4656)
* client/executor: refactor client to remove interpolation

* executor: POC libcontainer based executor

* vendor: use hashicorp libcontainer fork

* vendor: add libcontainer/nsenter dep

* executor: updated executor interface to simplify operations

* executor: implement logging pipe

* logmon: new logmon plugin to manage task logs

* driver/executor: use logmon for log management

* executor: fix tests and windows build

* executor: fix logging key names

* executor: fix test failures

* executor: add config field to toggle between using libcontainer and standard executors

* logmon: use discover utility to discover nomad executable

* executor: only call libcontainer-shim on main in linux

* logmon: use seperate path configs for stdout/stderr fifos

* executor: windows fixes

* executor: created reusable pid stats collection utility that can be used in an executor

* executor: update fifo.Open calls

* executor: fix build

* remove executor from docker driver

* executor: Shutdown func to kill and cleanup executor and its children

* executor: move linux specific universal executor funcs to seperate file

* move logmon initialization to a task runner hook

* client: doc fixes and renaming from code review


* taskrunner: use shared config struct for logmon fifo fields

* taskrunner: logmon only needs to be started once per task
2018-10-16 16:53:31 -07:00
Nick Ethier
e9f3f2cfee Update runc/libcontainer and friends (#4655)
* vendor: bump libcontainer and docker to remove Sirupsen imports

* vendor: fix bad vendoring of archive package

* vendor: fix api changes to cgroups in executor

* vendor: fix docker api changes

* vendor: update github.com/Azure/go-ansiterm to use non capitalized logrus import
2018-10-16 16:53:30 -07:00
Michael Schurter
5f0f349a11 Update go-dockerclient to fix #3419
Includes this workaround:
99ba9a9ff4/container.go (L634-L637)
2017-11-14 15:57:09 -08:00
Alex Dadgar
d6bb642bc2 Clean vendored packages
This PR removes unused packages from the vendor folder.
2017-11-10 13:00:32 -08:00
Michael Schurter
1df41cffb8 Revert libcontainer to 89ab7f2ccc1 2017-03-01 10:42:31 -08:00
Michael Schurter
2b479554fd Vendor some missing deps 2017-02-28 13:38:57 -08:00
Michael Schurter
29d3c8b604 Update lots of vendored deps 2017-02-28 12:16:52 -08:00
Michael Schurter
939224ea89 Hoping updating docker deps will fix panic on Windows
🤞
2017-02-28 11:56:11 -08:00
Alex Dadgar
36725370ee vendor 2017-01-23 11:32:51 -08:00
Daniel Kerwin
d4dca3b02d Update to latest go-dockerclient. Fix .gitignore expression to allow
docker/pkg packages.
2016-05-28 12:01:56 +02:00
Sean Chittenden
3eb9664eca Remove unused packages
```
govendor remove +unused
git add vendor/
```
2016-05-04 19:49:43 -07:00
Diptanu Choudhury
6e991c7aec Updated libcontainer 2016-04-02 12:37:19 -07:00
Diptanu Choudhury
f1301c9378 Fixed the logic of cgroup creation 2016-03-01 17:01:45 -08:00
Diptanu Choudhury
ce071ea597 Updated libcontainer 2016-02-26 17:11:00 -08:00
Diptanu Choudhury
45d1c68095 Adding vendored code in pkg directories 2016-02-12 13:32:32 -08:00
Diptanu Choudhury
3acc5408b0 Using godeps to build 2016-02-12 10:02:16 -08:00