Fix Sigmah mounts
This commit is contained in:
parent
4c0fcc5535
commit
d93c739d38
@ -34,7 +34,7 @@ spoc-container exec cts -- manage.py migrate
|
||||
export CTS_ADMIN_EMAIL=admin@example.com
|
||||
export CTS_ADMIN_PWD=$(head -c 12 /dev/urandom | base64 | tr -d '+/=')
|
||||
export CTS_ADMIN_HASH=$(spoc-container exec cts -- python -c "from django.contrib.auth.hashers import make_password; print make_password('${CTS_ADMIN_PWD}')")
|
||||
export CTS_ADMIN_SECRET=$(head -c 12 /dev/urandom | sha256sum | cut -c1-13)
|
||||
export CTS_ADMIN_SECRET=$(head -c 12 /dev/urandom | sha256sum | cut -c0-12)
|
||||
envsubst <adminpwd.sql | spoc-container exec cts-postgres -- psql cts
|
||||
|
||||
# Stop services required for setup
|
||||
|
@ -14,7 +14,7 @@ RUN EOF
|
||||
mv /tmp/fineractplatform-18.03.01.RELEASE/database/mifospltaform-tenants-first-time-install.sql /tmp/mifospltaform-tenants-first-time-install.sql
|
||||
|
||||
# Download Java library dependencies
|
||||
wget https://repo1.maven.org/maven2/org/drizzle/jdbc/drizzle-jdbc/1.4/drizzle-jdbc-1.4.jar -O /srv/tomcat/lib/drizzle-jdbc-1.4.jar
|
||||
wget https://repo.maven.apache.org/maven2/org/drizzle/jdbc/drizzle-jdbc/1.4/drizzle-jdbc-1.4.jar -O /srv/tomcat/lib/drizzle-jdbc-1.4.jar
|
||||
|
||||
# Cleanup
|
||||
apk --no-cache del wget
|
||||
|
@ -13,8 +13,9 @@
|
||||
"sigmah-postgres"
|
||||
],
|
||||
"mounts": {
|
||||
"sigmah/sigmah_conf": "srv/sigmah/conf",
|
||||
"sigmah/sigmah_data": "srv/sigmah/data"
|
||||
"sigmah/sigmah_conf/persistence.xml": "srv/tomcat/webapps/sigmah/WEB-INF/classes/META-INF/persistence.xml:file",
|
||||
"sigmah/sigmah_conf/sigmah.properties": "srv/tomcat/webapps/sigmah/WEB-INF/classes/sigmah.properties:file",
|
||||
"sigmah/sigmah_data": "srv/sigmah"
|
||||
}
|
||||
},
|
||||
"sigmah-postgres": {
|
||||
|
@ -10,10 +10,10 @@
|
||||
# --
|
||||
|
||||
# Root directory name where files are stored.
|
||||
files.repository.name=/srv/sigmah/data/files
|
||||
files.repository.name=/srv/sigmah/files
|
||||
|
||||
# Root directory name where backup archives are stored.
|
||||
archives.repository.name=/srv/sigmah/data/archives/
|
||||
archives.repository.name=/srv/sigmah/archives
|
||||
|
||||
#Maximum size of the uploaded files (bytes)
|
||||
files.upload.maxSize=20971520
|
||||
|
Loading…
Reference in New Issue
Block a user