Symptoms:
- run openMaint using the default setup with docker-compose up -d
- Add something to the database
- docker-compose down
- docker-compose up -d
In the logs you can see that after step 4 the docker-entrypoint.sh runs the dbcreate command again causing the database to be wiped every time it is started anew. It looks like in docker-entrypoint.sh there used to be some kind of check, but the code will never the section after the ||, it always runs the first command below.
echo "Init DB"
{ # try
$CATALINA_HOME/webapps/cmdbuild/cmdbuild.sh dbconfig create $CMDBUILD_DUMP -configfile $CATALINA_HOME/conf/cmdbuild/database.conf
} || {
echo "DB was initiliazed. Use dbconfig recreate or dbconfig drop"
}
Symptoms:
In the logs you can see that after step 4 the docker-entrypoint.sh runs the dbcreate command again causing the database to be wiped every time it is started anew. It looks like in docker-entrypoint.sh there used to be some kind of check, but the code will never the section after the
||, it always runs the first command below.