Make a proper conf mount for OpenMapKit
This commit is contained in:
parent
2e8e6a9e69
commit
e3e4a91dcd
@ -8,9 +8,9 @@ docker build -t openmapkit ${SOURCE_DIR}
|
|||||||
# Configure OpenMapKit
|
# Configure OpenMapKit
|
||||||
export OMK_ADMIN_USER="admin"
|
export OMK_ADMIN_USER="admin"
|
||||||
export OMK_ADMIN_PWD=$(head -c 12 /dev/urandom | base64)
|
export OMK_ADMIN_PWD=$(head -c 12 /dev/urandom | base64)
|
||||||
mkdir -p /srv/openmapkit/data/deployments /srv/openmapkit/data/submissions
|
mkdir -p /srv/openmapkit/conf /srv/openmapkit/data/deployments /srv/openmapkit/data/submissions
|
||||||
envsubst <${SOURCE_DIR}/srv/openmapkit/settings.js >/srv/openmapkit/settings.js
|
|
||||||
chown -R 8007:8007 /srv/openmapkit/data
|
chown -R 8007:8007 /srv/openmapkit/data
|
||||||
|
envsubst <${SOURCE_DIR}/srv/openmapkit/conf/settings.js >/srv/openmapkit/conf/settings.js
|
||||||
|
|
||||||
# Configure OpenMapKit service
|
# Configure OpenMapKit service
|
||||||
cp ${SOURCE_DIR}/etc/init.d/openmapkit /etc/init.d/openmapkit
|
cp ${SOURCE_DIR}/etc/init.d/openmapkit /etc/init.d/openmapkit
|
||||||
|
@ -12,7 +12,7 @@ start() {
|
|||||||
--name openmapkit \
|
--name openmapkit \
|
||||||
-h openmapkit \
|
-h openmapkit \
|
||||||
-p 127.0.0.1:9007:8007 \
|
-p 127.0.0.1:9007:8007 \
|
||||||
-v /srv/openmapkit/settings.js:/srv/openmapkit/settings.js \
|
-v /srv/openmapkit/conf/settings.js:/srv/openmapkit/settings.js \
|
||||||
-v /srv/openmapkit/data:/srv/openmapkit/data \
|
-v /srv/openmapkit/data:/srv/openmapkit/data \
|
||||||
openmapkit
|
openmapkit
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user