-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ability to run/exec outer/host commands.
Setting the "exec" key to ":host" will cause the run command to be spawned from the current process context of dctest (i.e. outside the docker compose instance). Refactor docker-exec to make it more generic and split out the compose-exec part that calls it. Take stdout and stderr streams in the input and use those (or if not passed in then just create PassThrough streams. In execute-step* we create streams for stdout and stderr and do the accumulation and/or verbose echo'ing of the output/error streams. For the outer exec functionality, this adds an outer-exec function that is similar to the docker-exec function. outer-exec calls the more generic outer-spawn which is a promise-based child_process spawn wrapper.
- Loading branch information
Showing
3 changed files
with
95 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters