mirror of
https://github.com/runcitadel/core.git
synced 2024-09-23 17:50:05 +00:00
Fixes for apps which use the host network
This commit is contained in:
parent
f3018307d4
commit
96f942e7a0
|
@ -85,6 +85,8 @@ def configureMainPort(app: AppStage2, nodeRoot: str) -> AppStage3:
|
||||||
|
|
||||||
def configureIps(app: AppStage2, networkingFile: str, envFile: str):
|
def configureIps(app: AppStage2, networkingFile: str, envFile: str):
|
||||||
for container in app.containers:
|
for container in app.containers:
|
||||||
|
if container.network_mode and container.network_mode == "host":
|
||||||
|
continue
|
||||||
if container.noNetwork:
|
if container.noNetwork:
|
||||||
# Check if port is defined for the container
|
# Check if port is defined for the container
|
||||||
if container.port:
|
if container.port:
|
||||||
|
@ -107,6 +109,8 @@ def configureHiddenServices(app: AppStage3, nodeRoot: str) -> AppStage3:
|
||||||
mainContainer = getMainContainer(app)
|
mainContainer = getMainContainer(app)
|
||||||
|
|
||||||
for container in app.containers:
|
for container in app.containers:
|
||||||
|
if container.network_mode and container.network_mode == "host":
|
||||||
|
continue
|
||||||
env_var = "APP_{}_{}_IP".format(
|
env_var = "APP_{}_{}_IP".format(
|
||||||
app.metadata.id.upper().replace("-", "_"),
|
app.metadata.id.upper().replace("-", "_"),
|
||||||
container.name.upper().replace("-", "_")
|
container.name.upper().replace("-", "_")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user