kartoza / docker-geoserver

A docker recipe for GeoServer
GNU General Public License v2.0
611 stars 418 forks source link

How to clone the docker with an existing data? #120

Closed yong2khoo-lm closed 4 years ago

yong2khoo-lm commented 4 years ago

First, really appreciate this masterpiece. I am able to up a geoserver in less than 5 minutes (compared to few hours if i didn't use docker)

Now, I am able to use docker volume to create a store inside the geoserver, with the data files from my host. It works brilliant.

Next, I have a question. Assuming I have created a store (eg: a vector data shapefile is added), how do I share/clone this entire thing to my colleagues, such that he/she need not setup an empty geoserver again, but could immediately have all i have at the latest state?

NyakudyaA commented 4 years ago

First, really appreciate this masterpiece. I am able to up a geoserver in less than 5 minutes (compared to few hours if i didn't use docker)

Now, I am able to use docker volume to create a store inside the geoserver, with the data files from my host. It works brilliant.

Next, I have a question. Assuming I have created a store (eg: a vector data shapefile is added), how do I share/clone this entire thing to my colleagues, such that he/she need not setup an empty geoserver again, but could immediately have all i have at the latest state?

If you are using docker volume you have two ways to get your friend on the same wavelength with you.

yong2khoo-lm commented 4 years ago

Thanks for your answer. I just realize, by copying the entire "/opt/geoserver/data_dir", it literally 'copy' everything :)

By the way, when you mention "... have all your data in a DB", do you mean postgis?

NyakudyaA commented 4 years ago

Thanks for your answer. I just realize, by copying the entire "/opt/geoserver/data_dir", it literally 'copy' everything :)

By the way, when you mention "... have all your data in a DB", do you mean postgis?

Yes PostGIS or any other DB you are familiar with etc MySQL