Skip to content

Commit 0ae1adf

Browse files
authored
Clienthome as envvar (#177)
Supersedes #171
2 parents c6c4b8b + eee6ce7 commit 0ae1adf

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

skeleton/docker-entrypoint.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ if [ -z "${PIP_PARAMS}" ]; then
66
PIP_PARAMS=""
77
fi
88

9-
# CLIENT HOME
10-
CLIENT_HOME="/data/$(hostname)/$(hostid)"
11-
export CLIENT_HOME=$CLIENT_HOME
9+
if [ -z "${CLIENT_HOME}" ]; then
10+
CLIENT_HOME="/data/$(hostname)/$(hostid)"
11+
export CLIENT_HOME=$CLIENT_HOME
12+
fi
1213

1314
USER="$(id -u)"
1415

skeleton/etc/zope.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
%define INSTANCE /app
22
instancehome $INSTANCE
33

4+
%define CLIENTHOME $(CLIENT_HOME)
5+
clienthome $CLIENTHOME
6+
47
debug-mode $(DEBUG_MODE)
58
security-policy-implementation $(SECURITY_POLICY_IMPLEMENTATION)
69
verbose-security $(VERBOSE_SECURITY)

0 commit comments

Comments
 (0)