Fix Sigmah mounts

This commit is contained in:
Disassembler 2020-03-24 21:51:25 +01:00
parent 4c0fcc5535
commit d93c739d38
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
4 changed files with 7 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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": {

View File

@ -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