It seems that running a build container with custom option such as docker run --ulimits
should be supported by the cncd
package, but including the ulimits
key in my .drone.yml
is not actually modifying the limits in the container.
pipeline:
build:
image: node:8-alpine
ulimits:
stack:
soft: 10000
hard: 40000
nofile:
soft: 10000
hard: 40000
commands:
- apk add --quiet --no-cache openjdk8-jre
- npm ci
- ulimit -n
- ulimit -s
- npm test
when:
event: [ push, pull_request ]
output from running the build
+ ulimit -n
1048576
+ ulimit -s
8192
Does anyone have insight here? network_mode
does seem to work although it’s not documented anywhere. If these are meant to be legitimate keys in the drone config file, they we should document them.