Skip to content

Commit 364b811

Browse files
committed
Fix ADMIN_PASSWORD docker management
1 parent ff259ac commit 364b811

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

docker-dev.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,5 @@ zope-conf-additional =
5353

5454
environment-vars += ${bigbang:environment-vars}
5555

56-
# remove ADMIN_PASSWORD because it should be given by compose file
57-
environment-vars -= ADMIN_PASSWORD ${port:admin-password}
58-
5956
[instance-debug]
6057
blob-storage = /data/blobstorage

docker/docker-entrypoint.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ function setup() {
88
if [[ $MOUNTPOINT ]]; then
99
mkdir -pv "/data/blobstorage-$MOUNTPOINT"
1010
fi
11-
12-
if [[ "instance-cron" == "$1" ]]; then
13-
echo "Setting ACTIVE_BIGBANG"
14-
export ACTIVE_BIGBANG="True"
15-
fi
1611
chmod 777 /data/*
1712
}
1813
function wait_for_cron() {

docker/docker-initialize.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def _fix(self, path, activate_big_bang):
5353
def _fix_conf(self, path, activate_big_bang):
5454
filedata = self._fix(path, activate_big_bang)
5555
filedata = re.sub(r'password.*?admin', 'password ' + self.admin_password, filedata)
56+
filedata = re.sub(r'ADMIN_PASSWORD.*?admin', 'ADMIN_PASSWORD ' + self.admin_password, filedata)
5657
with open(path, 'w') as file:
5758
file.write(filedata)
5859

0 commit comments

Comments
 (0)