Merge pull request #45 from hercules-ci/compose-service-sysctls

compose service: add 'sysctls' option
This commit is contained in:
Robert Hensing 2019-05-07 12:05:51 +02:00 committed by GitHub
commit f3bf1ba181
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -174,6 +174,11 @@ in
default = null;
description = dockerComposeRef "stop_signal";
};
service.sysctls = mkOption {
type = attrsOf (either str int);
default = {};
description = dockerComposeRef "sysctls";
};
service.capabilities = mkOption {
type = attrsOf (nullOr bool);
default = {};
@ -198,6 +203,7 @@ in
inherit (config.service)
volumes
environment
sysctls
image
;
} // lib.optionalAttrs (config.service.build.context != null) {