Skip to content

Commit

Permalink
tweaks for external network name for docker-compose editing, idaholab…
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Jul 18, 2024
1 parent 75d9caf commit 59b3240
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1383,8 +1383,8 @@ services:
labels:
traefik.enable: false

# shared named volume so filebeat can access nginx access logs
volumes:
# shared named volume so filebeat can access nginx access logs
nginx-log-path:

networks:
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1242,8 +1242,8 @@ services:
labels:
traefik.enable: false

# shared named volume so filebeat can access nginx access logs
volumes:
# shared named volume so filebeat can access nginx access logs
nginx-log-path:

networks:
Expand Down
5 changes: 3 additions & 2 deletions scripts/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -2339,9 +2339,10 @@ def tweak_malcolm_runtime(self, malcolm_install_path):
# re-write the network definition from scratch
if 'networks' in data:
del data['networks']
networkDef = {'external': True if (len(dockerNetworkExternalName) > 0) else False}
networkDef = {}
networkDef['external'] = bool(len(dockerNetworkExternalName) > 0)
if len(dockerNetworkExternalName) > 0:
networkDef['name']: dockerNetworkExternalName
networkDef['name'] = dockerNetworkExternalName
data['networks'] = {}
data['networks']['default'] = networkDef

Expand Down

0 comments on commit 59b3240

Please sign in to comment.