IQSS / dataverse-docker

Dataverse 6.2 on Docker with integrated services called "Archive in a box" and could be used both as demo and production system and easily integrated with other services.
57 stars 45 forks source link

customizing navbar logo error because web docroot is not found #49

Open joenio opened 3 years ago

joenio commented 3 years ago

The instructions on how to customize navbar doesn't work on dataverse-docker:

I don't known why but dataverse-docker is using non-default path for docroot, while the official document (link above) says that the docroot is placed at /usr/local/payara5/glassfish/domains/domain1/docroot the dataverse-docker is not using it, it seems that dataverse-docker docroot is at /opt/payara/appserver/glassfish/domains/production/applications/dataverse.

The real problem is: how can I copy (or map) files from my host machine inside the dataverse container docroot at /opt/payara/appserver/glassfish/domains/production/applications/dataverse in order to customize the navbar logo by running the suggested command documented on official documentation on how to customize branding/navbar/layout.

Command below copied as-is from dataverse tutorial just for clarification:

curl -X PUT -d '/logos/navbar/logo.png' http://localhost:8080/api/admin/settings/:LogoCustomizationFile

What I tried but not works was mapping a volume on docker-compose (I did it using Multiple Compose files) to be possible having my theme logo file inside dataverse container on docroot folder.

    volumes:
      - ./my-theme:/opt/payara/appserver/glassfish/domains/production/applications/my-theme

But it crash totally the dataverse and service doesn't goes up.

I tried also mapping to the path documented on dataverse doc at /usr/local/payara5/glassfish/domains/domain1/docroot but it is not being used at all by webserver if I understood well.

joenio commented 3 years ago

payara is running with the following arg -Dcom.sun.aas.instanceRoot=/opt/payara/appserver/glassfish/domains/production