mbasa / pgrServer

Routing service that uses pgRouting topologies and is loaded to a JGraphT graph for fast searches even with very dense networks such as OpenStreetMap (OSM) dataset.
GNU General Public License v3.0
26 stars 11 forks source link

Error while running the docker image #6

Closed hillsonghimire closed 2 years ago

hillsonghimire commented 2 years ago

which building using the: docker-compose build pgrserver we get: ERROR: No such service: pgrserver

Then, I checked the docker-compose.yml and tried: docker-compose build pgrServer we get some exception: pgrServer uses an image, skipping

The issue with docker-compose up

Pulling pgrServer (mbasa/pgrserver:latest)... ERROR: The image for the service you're trying to recreate has been removed. If you continue, volume data could be lost. Consider backing up your data before continuing.

Continue with the new image? [yN]y Pulling pgrServer (mbasa/pgrserver:latest)... ERROR: pull access denied for mbasa/pgrserver, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

nilsnolde commented 2 years ago

yeah, see here for a fix: https://github.com/mbasa/pgrServer/pull/7

mbasa commented 2 years ago

Thanks @nilsnolde. Will merge this tomorrow, along with the develop branch which has one-way streets support as well as other things. Created a Flutter demo here:

http://cld06.georepublic.net/pgrserver_demo

which works with Chrome and Firefox, but CORS restriction has to be disabled for Safari.

hillsonghimire commented 2 years ago

Thanks @nilsnolde . The issue has been resolved. @mbasa Why is it that its not advised to run with docker image on production server? Is it security or performance issues?

mbasa commented 2 years ago

@hillsonghimire performance issues. I personally view Docker containers are suited more for MicroServices instead of full Server applications. PgrServer is fully multi-threaded and requires quite a large amount of memory resources, and unless a Docker container can be allocated to have at least 4 cpu cores and around 16 gb of memory, I feel PgrServer will be throttled.