Re: [xwiki-users] Docker xwiki setup

2017-04-21 Thread Vincent Massol

> On 21 Apr 2017, at 08:32, Vincent Massol  wrote:
> 
> Hi Marcelo,
> 
>> On 21 Apr 2017, at 05:53, Marcelo Martins  wrote:
>> 
>> I have installed XWiki from docker as explained on docker hub xwiki
>>  , but I ran into a couple of issues when
>> it came to installing some extensions that required me to modify the
>> xwiki.cfg file or others within the webapps location.
>> 
>> So in order to overcome that I used docker cp to sync the tomcat directory
>> within the container to a location on the host. Then I also mapped that
>> host location into the container once I did docker run, much like the mysql
>> data volume mapping. I guess I probably should have just created a docker
>> volume first and then used that to map it to /usr/local/tomcat since the
>> docs says that will sync the data on the container back to the docker
>> volume. Haven't used docker volumes much so didn't think about it before.
>> 
>> So, since I assume that there are files within the tomcat webapps location
>> that may need to be modified,  due to extensions or perhaps something else,
>> shouldn't that be also made into a persistent volume ?
>> 
>> 
>> /opt/docker/host_volumes/
>> xwiki.org/xwiki_tomcat/webapps/ROOT/WEB-INF/xwiki.cfg
> 
> Yes you’re correct. Right now in the instructions and in the dockerfile I’m 
> mapping 2 directories so that they’re accessible on the host:
> * The XWiki permanent directory
> * The DB directory
> 
> I’ve just created a new jira issue to also map the 2 main configuration files 
> you may want to modify:
> * xwiki.cfg
> * xwiki.properties
> 
> https://jira.xwiki.org/browse/XDOCKER-20
> 
> I’ll work on that real soon.
> 
> Would that fit your need?

So I tried and it’s not that easy. See https://jira.xwiki.org/browse/XDOCKER-20 
for a workaround for the time being.

Thanks
-Vincent

> 
> Thanks
> -Vincent
> 
> 
>> 
>> 
>> Thanks
>> --
>> Marcelo



Re: [xwiki-users] Docker xwiki setup

2017-04-20 Thread Vincent Massol
Hi Marcelo,

> On 21 Apr 2017, at 05:53, Marcelo Martins  wrote:
> 
> I have installed XWiki from docker as explained on docker hub xwiki
>  , but I ran into a couple of issues when
> it came to installing some extensions that required me to modify the
> xwiki.cfg file or others within the webapps location.
> 
> So in order to overcome that I used docker cp to sync the tomcat directory
> within the container to a location on the host. Then I also mapped that
> host location into the container once I did docker run, much like the mysql
> data volume mapping. I guess I probably should have just created a docker
> volume first and then used that to map it to /usr/local/tomcat since the
> docs says that will sync the data on the container back to the docker
> volume. Haven't used docker volumes much so didn't think about it before.
> 
> So, since I assume that there are files within the tomcat webapps location
> that may need to be modified,  due to extensions or perhaps something else,
> shouldn't that be also made into a persistent volume ?
> 
> 
> /opt/docker/host_volumes/
> xwiki.org/xwiki_tomcat/webapps/ROOT/WEB-INF/xwiki.cfg

Yes you’re correct. Right now in the instructions and in the dockerfile I’m 
mapping 2 directories so that they’re accessible on the host:
* The XWiki permanent directory
* The DB directory

I’ve just created a new jira issue to also map the 2 main configuration files 
you may want to modify:
* xwiki.cfg
* xwiki.properties

https://jira.xwiki.org/browse/XDOCKER-20

I’ll work on that real soon.

Would that fit your need?

Thanks
-Vincent


> 
> 
> Thanks
> --
> Marcelo



[xwiki-users] Docker xwiki setup

2017-04-20 Thread Marcelo Martins
I have installed XWiki from docker as explained on docker hub xwiki
 , but I ran into a couple of issues when
it came to installing some extensions that required me to modify the
xwiki.cfg file or others within the webapps location.

So in order to overcome that I used docker cp to sync the tomcat directory
within the container to a location on the host. Then I also mapped that
host location into the container once I did docker run, much like the mysql
data volume mapping. I guess I probably should have just created a docker
volume first and then used that to map it to /usr/local/tomcat since the
docs says that will sync the data on the container back to the docker
volume. Haven't used docker volumes much so didn't think about it before.

So, since I assume that there are files within the tomcat webapps location
that may need to be modified,  due to extensions or perhaps something else,
shouldn't that be also made into a persistent volume ?


/opt/docker/host_volumes/
xwiki.org/xwiki_tomcat/webapps/ROOT/WEB-INF/xwiki.cfg


Thanks
--
Marcelo


Re: [xwiki-users] Docker XWiki

2015-04-03 Thread Fabio Mancinelli
Hi again

apparently I forgot to push things there. Sorry for that.

However I thought that it was better to have this contribution
directly in xwiki-contrib, so now you can find it - with actual
content! - here: https://github.com/xwiki-contrib/docker-xwiki

Thanks and sorry for the inconvenience,
Fabio

On Fri, Apr 3, 2015 at 12:37 AM, Fabio Mancinelli
 wrote:
> Hi all,
>
> since I wanted to better understand how Docker works, as an evening
> project I created a Dockerfile for packaging an image that can be used
> to run an XWiki container.
>
> It also supports data persistence, so that you don't lose your data
> when you shut down the container.
>
> You can find it here: https://github.com/fmancinelli/docker-xwiki
>
> Enjoy,
> Fabio
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


[xwiki-users] Docker XWiki

2015-04-02 Thread Fabio Mancinelli
Hi all,

since I wanted to better understand how Docker works, as an evening
project I created a Dockerfile for packaging an image that can be used
to run an XWiki container.

It also supports data persistence, so that you don't lose your data
when you shut down the container.

You can find it here: https://github.com/fmancinelli/docker-xwiki

Enjoy,
Fabio
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users