UNPKG

dockest

Version:

Dockest is an integration testing tool aimed at alleviating the process of evaluating unit tests whilst running multi-container Docker applications.

14 lines 605 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.joinBridgeNetwork = void 0; const constants_1 = require("../../constants"); const execa_wrapper_1 = require("../execa-wrapper"); const joinBridgeNetwork = async ({ containerId, alias }) => { const command = `docker network connect \ ${constants_1.BRIDGE_NETWORK_NAME} \ ${`--alias ${alias}`} \ ${containerId}`; (0, execa_wrapper_1.execaWrapper)(command); }; exports.joinBridgeNetwork = joinBridgeNetwork; //# sourceMappingURL=join-bridge-network.js.map