dockest
Version:
Dockest is an integration testing tool aimed at alleviating the process of evaluating unit tests whilst running multi-container Docker applications.
23 lines • 1.19 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.dockerComposeUp = void 0;
const constants_1 = require("../../constants");
const execa_wrapper_1 = require("../../utils/execa-wrapper");
const dockerComposeUp = async ({ composeOpts: { alwaysRecreateDeps, build, forceRecreate, noBuild, noColor, noDeps, noRecreate, quietPull }, serviceName, }) => {
const command = `docker-compose \
-f ${`${constants_1.GENERATED_COMPOSE_FILE_PATH}`} \
up \
${alwaysRecreateDeps ? '--always-recreate-deps' : ''} \
${build ? '--build' : ''} \
${forceRecreate ? '--force-recreate' : ''} \
${noBuild ? '--no-build' : ''} \
${noColor ? '--no-color' : ''} \
${noDeps ? '--no-deps' : ''} \
${noRecreate ? '--no-recreate' : ''} \
${quietPull ? '--quiet-pull' : ''} \
--detach \
${serviceName}`;
(0, execa_wrapper_1.execaWrapper)(command);
};
exports.dockerComposeUp = dockerComposeUp;
//# sourceMappingURL=docker-compose-up.js.map