itmicus / cmdbuild_docker

CMDBuild 3.4 with READY2USE 2.3 and openMAINT 2.3 in Docker
84 stars 55 forks source link

Empty CMDBuild environment from docker-compose #26

Open Alba-404 opened 3 years ago

Alba-404 commented 3 years ago

If I install cmdbuild 3.3 version on a Virtual Machine, I have the possibility to choose between an empty or a demo environment. In order to have an empty environment from the execution of the Dockerfile, I tried to modify the flag ENV CMDBUILD_DUMP from demo.empty.xz to empty.dump.xz inside the Dockerfile ofthe openmaint-2.0-3.3 version. It didn't work for me. Have you any ideas on how can I succeed in having an empty environment from the Dockerfile? There are other flags/configuration s that I need to consider?

Thank you a lot!

afcarvalho1991 commented 3 years ago

are you deploying using docker-compose or docker run for each container?

You are perhaps changing an ENVIRONMENT VARIABLE that is being discarded, most likely on the Dockerfile.

I would advise you to inside the folder of the cmd build version do the following:

  1. delete all the docker containers and volumes associated;
  2. modify the docker-compose.yml and change the environment variable that you want;
  3. docker-compose up -f docker-compose.yml

Let me know if you run into any issues!

Alba-404 commented 3 years ago

I have deleted all the pre-existing images in order to not have dependecies with older one. I'm using the following istructions (https://github.com/itmicus/cmdbuild_docker/issues/22):

  1. docker build -t itmicus/cmdbuild:om-2.0-3.3 openmaint-2.0-3.3/. --label "version=1.0" --label "maintaner=Itmicus order@itmicus.ru"
  2. cd cmdbuild:om-2.0-3.3
  3. docker-compose up

But it doesn't work. I was wondering: is it correct to modify the ENV CMDBUILD_DUMP to empty.dump.xz ? Does this modification have any effect on the content of the postgresql database? My goal is to start with an empty environment, without any kind of pre-existing domain or classes.

Thank you a lot for your patience!

Alba-404 commented 3 years ago

I tried, also, to modify the environment variable inside the docker-compose file, but nothing has happened

afcarvalho1991 commented 3 years ago

Dear Alba,

The classes are preset by cmdbuild, a completely empty without any classes. I don't know if it is possible.

What is possible is to deactivate them and hide them, but you won't be able to delete them I'm afraid.

Best regards, André