DecisionsDev / odm-ondocker

This repository allows to deploy an IBM Operational Decision Manager topology with Docker Compose
https://odmdev.github.io/odm-ondocker/
Apache License 2.0
51 stars 40 forks source link

IBMCOM Volume Command Causing Crash #213

Closed varnem2 closed 5 years ago

varnem2 commented 5 years ago

Hello, I'm running this docker command in an empty directory. It seems as though I'm receiving database not found errors when I mount the database. [ERROR ] Could not lookup datasource named 'jdbc/ilogDataSource' [WARNING ] reaper.stall

docker run -e LICENSE=accept -m 8000M --memory-reservation 8000M -p 9060:9060 -p 9443:9443 -v ODM810:/config/dbdata/ -e SAMPLE=false ibmcom/odm:8.10.2

mmouly commented 5 years ago

Hello,

It appears that "-v ODM810:/config/dbdata/" doesn't create the volume. It's the reason why datasource is not found. You can have a try using : "-v $PWD/ODM810:/config/dbdata/" or with an absolute PATH.

varnem2 commented 5 years ago

Thanks for your help on this issue @mmouly. Do you know, is this true with all of docker or just the IBMODM image?

mmouly commented 5 years ago

I think it's always true as according to docker documentation : https://docs.docker.com/storage/bind-mounts/ the mount path is always expecting an absolute path.

varnem2 commented 5 years ago

Thanks mmouly! :)

varnem2 commented 5 years ago

For documentation purposes, it seems as though using $PWD in the file path doesn't work. Absolute path is the only answer.