itmicus / itmicus/cmdbuild_docker
Database reinitializes every time you run docker compose down then up
- Dominant language
- Dockerfile
- Stars
- 123
- Forks
- 76
- PR merge metrics
- No merged PRs in 30d
Description
Symptoms:
1. run openMaint using the default setup with docker-compose up -d
2. Add something to the database
3. docker-compose down
4. 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"
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.