add host communication to periphery deploy

This commit is contained in:
beckerinj
2022-05-26 19:51:01 +03:00
parent f164f276ee
commit 598ecefc11

View File

@@ -93,7 +93,8 @@ async function deployPeriphery({ periphery }: Config) {
const network = `-p ${port}:${DEFAULT_PERIPHERY_PORT}`;
const env = `-e SYSROOT=${trailingSlash(periphery?.sysroot!)}`;
const restartArg = `--restart ${restart}`;
const command = `docker run -d ${nameConfig} ${volume} ${network} ${env} ${restartArg} ${PERIPHERY_IMAGE}`;
const hostCommunication = "--add-host=host.docker.internal:host-gateway"
const command = `docker run -d ${nameConfig} ${volume} ${network} ${env} ${restartArg} ${hostCommunication} ${PERIPHERY_IMAGE}`;
return await execute(command);
}