@travetto/exec
Advanced tools
Comparing version 0.0.16 to 0.0.17
@@ -17,3 +17,3 @@ { | ||
}, | ||
"version": "0.0.16" | ||
"version": "0.0.17" | ||
} |
@@ -28,6 +28,9 @@ import * as child_process from 'child_process'; | ||
public ports: { [key: string]: number } = {}; | ||
public volumes: { [key: string]: string } = {}; | ||
private tempVolumes: { [key: string]: string } = {} | ||
public workingDir: string; | ||
private tempVolumes: { [key: string]: string } = {} | ||
constructor(private image: string, container?: string) { | ||
@@ -73,2 +76,5 @@ this.container = container || `${image}-${Date.now()}-${Math.random()}`.replace(/[^A-Z0-9a-z\-]/g, ''); | ||
} | ||
for (const k of Object.keys(this.ports)) { | ||
finalArgs.push('-p', `${k}:${this.ports[k]}`); | ||
} | ||
@@ -75,0 +81,0 @@ console.debug('Running', [...finalArgs, this.image, ...args]); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14360
447