Skip to content

Commit

Permalink
Use a env var for bigbang in docker-initialize.py
Browse files Browse the repository at this point in the history
  • Loading branch information
duchenean committed Feb 12, 2024
1 parent 0c3055f commit 3ffe396
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker/docker-initialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ def __init__(
self.mq_ws_url = "https://" + env.get("MQ_WS_URL", "019999")
self.mq_ws_login = env.get("MQ_WS_LOGIN", "testuser")
self.mq_ws_password = env.get("MQ_WS_PASSWORD", "test")
self.hostname = env.get('HOSTNAME')
self.hostname = env.get("HOSTNAME")
self.bigbang = env.get("BIGBANG", "False")

self.instance1_conf = '/plone/parts/instance/etc/zope.conf'
self.instance_amqp_conf = '/plone/parts/instance-amqp/etc/zope.conf'
Expand Down Expand Up @@ -83,7 +84,7 @@ def _fix_amqp(self, path):
def fixtures(self):
""" ZEO Client
"""
self._fix_conf(self.instance1_conf, True)
self._fix_conf(self.instance1_conf, bool(self.bigbang))
self._fix_conf(self.instance_async_conf, False)
self._fix_conf(self.instance_amqp_conf, False)
# instance debug doesn't exist in dev env
Expand Down

0 comments on commit 3ffe396

Please sign in to comment.