syncope-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea Patricelli (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SYNCOPE-1345) domain configuration files do not persist across docker reloads
Date Thu, 26 Jul 2018 07:45:00 GMT

    [ https://issues.apache.org/jira/browse/SYNCOPE-1345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16558022#comment-16558022
] 

Andrea Patricelli commented on SYNCOPE-1345:
--------------------------------------------

Hi Wyllys,

I think that you have to define a named volume to achieve this. If you mount a local directory
on a docker volume it will "hide" its content and "replace" with data in your host's directory
(that is empty).

Try to define a named volume in the docker-compose.yml file and associate tomcat directory
to it, this way :

{{version: '2'}}

{{}}{{volumes:}}
{{myvolume_data:}}

{{...}}

{{services: }}
{{  myservice:}}

{{  ...  }}{{  }}

{{  volumes:}}
{{    - myvolume_data:/var/lib/myvolume}}

 

HTH,
Andrea

> domain configuration files do not persist across docker reloads
> ---------------------------------------------------------------
>
>                 Key: SYNCOPE-1345
>                 URL: https://issues.apache.org/jira/browse/SYNCOPE-1345
>             Project: Syncope
>          Issue Type: Improvement
>          Components: docker
>    Affects Versions: 2.0.9, 2.1.0
>            Reporter: Wyllys Ingersoll
>            Priority: Minor
>
> When using docker images - if additional domains are configured, their configuration
files must be manually copied to the docker image area )/var/lib/tomcat8/webapps/syncope/WEB-INF/classes/domains/)
to be with the Master.* files that are processed when syncope-core starts up.
> If the docker image is upgraded or re-loaded (down + up) the configuration files for
the additional domains are lost and must be manually copied over again and then the core
must be restarted.
> It would be great if there was a way to retain the domain configurations in a volume
mount or some other more persistent storage mechanism so that they are not lost when updating
or re-initializing the image.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message