Comparing version 3.7.0 to 3.7.1
{ | ||
"name": "devlab", | ||
"version": "3.7.0", | ||
"version": "3.7.1", | ||
"description": "Node utility for running containerized tasks", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -199,2 +199,8 @@ [![CircleCI branch](https://img.shields.io/circleci/project/TechnologyAdvice/DevLab/master.svg?maxAge=2592000)]() | ||
## Service Removal | ||
In earlier versions of Docker, the `-d` (detached) and `--rm` (remove) flags conflict, however, Devlab uses these together which may cause issue on older systems. | ||
If running `docker run -d --rm <container>` causes this error the `--rm` flag can be circumvented by setting the `DEVLAB_NO_RM` environment variable to `true`. | ||
## Development | ||
@@ -201,0 +207,0 @@ |
@@ -106,3 +106,5 @@ 'use strict' | ||
const cwd = process.cwd() | ||
let args = primary ? ['run', '--rm', '-it', '-v', `${cwd}:${cwd}`, '-v', `${tmpdir}:${tmpdir}`, '-w', cwd, '--privileged'] : ['run', '-d', '--rm', '--privileged'] | ||
/* istanbul ignore next */ | ||
const serviceArgs = process.env.DEVLAB_NO_RM ? ['run', '-d', '--privileged'] : ['run', '-d', '--rm', '--privileged'] | ||
let args = primary ? ['run', '--rm', '-it', '-v', `${cwd}:${cwd}`, '-v', `${tmpdir}:${tmpdir}`, '-w', cwd, '--privileged'] : serviceArgs | ||
args = args.concat(_.flatten([ | ||
@@ -109,0 +111,0 @@ command.getArgs(cfg), |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
35898
682
232
11