aaime@anonymised.com wrote:
Chris Holmes ha scritto:
Yes, the pre cooked examples follow the old style data directory in
which the services.xml and catalog.xml are under WEB-INF. My rational
was that it was easier to release both the war and the binary install
with the same setup, but the new style is also supported.
I'd like to completely move away from putting services.xml and catalog.xml separate from the data_dir. I think the approach we should take for the war download is to put the _whole_ data_dir in the war. The default should point at WEB-INF/data_dir. Then we wouldn't need the work arounds for just those in the web-inf.
I like the idea of having a single folder to move around. Having the default in WEB-INF/data_dir makes it unaccessible
from the web, which is a good idea, but also creates problems for servers that do not unpack the war.
So, having a separate setting is indeed a good idea too. There is a catch thought... were do we keep that one?
An env variable seems to be the only location (that is, we cannot store the location in the data dir itself, and the
web application war may not be writable).
Oh, we already have that. You can pass the argument in to the java process. So for Jetty binary distributions we already pass the environment variable in to java. From tomcat and the like you can pass it in to your java process or set it in web.xml.
I'm only talking about the location in the war for the last default. See more at: http://docs.codehaus.org/display/GEOSDOC/GeoServer+Data+Directory
Finally, apparently geoserver is unable to setup a data dir on its own
if you point
it to an empty directory... hmmm, what if I want to start up fresh and
clean?
I agree here.
I agree that we should be able to do that. The problem is that there's not a way to just instantiate the blank configuration objects, GeoServer has to read them in. I imagine this wouldn't be too hard to do, and is probably worth the investment. This would also alleviate RobA's problem of super nasty error reports. Instead users would just get a non-configured geoserver.
Well, I guess we can store a minimal config zip inside the war, and unpack it in the folder chosen by the user
if no configuration is found...
Ideally one could look up what the data_dir is from the web admin tool, and also be able to upload a new data_dir or point at a different location from the web admin.
It would be nice, yes, just have no idea how difficult that would be...
I'll think about it, I don't _think_ it should be all that hard.
So the reason I came up with these zip files was that I didn't like
seeing a ton of configuration and binary data under the source tree.
When I was in south africa i literally could not check out geoserver.
However it seems to generally not be a fan favorite.
So I would be ok to change back to the old system, but can we please
store the configuration directory somewhere outside of the source tree,
perhaps a minimal one inside of svn like is done with the zip file stuff.
I agree with this. The directories in geoserver are incredibly bloated. There should be just the basic one, and a 'minimal' one for (which we could get rid of if we had the ability to load geoserver without a data_dir - it's there just to make sure we can start up).
We should have a repository of data_dirs, and even have separate downloads to get at them.
Indeed, with a wiki page referring to them.
Ok, to sum up these seem to be four separate jira issues:
- store all configuration inside a single folder
This is done. The only issue is not using the last backup any more. The default way is to put it all in the same directory. I just left the old way of putting the two xml files in the web-inf for transitioning (though Justin made it the default in 1.4.x, so it's crept back - I never communicated my vision that well).
- allow the user to start a new configuration on an empty folder
Yes.
- allow interactive data folder change (hmm... unfortunately this cannot be persisted)
Yes.
- provide a list of pre-cooked configuration files.
Yes.
Two more things:
* this is not much work, but it's not 5 minutes either, and a new configuration system
will render all this work useless;
* do we have a schedule for those?
Those are a ways away, currently. But I'd say get the defaults right for now. That's all we need for 1.4.0. (may consider starting up with empty folder) We can revisit when we have that out.
Chris
Cheers
Andrea
!DSPAM:1003,452285e1187801336712104!
--
Chris Holmes
The Open Planning Project
http://topp.openplans.org