geo-data / cesium-terrain-server

A basic server for serving up filesystem based tilesets representing Cesium.js terrain models
271 stars 111 forks source link

Error in Docker image? #8

Open emamd opened 8 years ago

emamd commented 8 years ago

I was trying to install and run cesium-terrain-server from the Docker image, and for some reason the localhost fails to run. It seems like everything fires up ok though...

$ docker run -p 8002:80 -v /data/docker/tilesets/terrain:/data/tilesets/terrain geodata/cesium-terrain-server
*** Running /etc/my_init.d/00_regen_ssh_host_keys.sh...
*** Running /etc/my_init.d/process-env.sh...
*** Running /etc/rc.local...
*** Booting runit daemon...
*** Runit started as PID 11

But when I try to visit http://localhost:8002, there is no page there. I noticed that the most recent build of the server on Docker is reporting an error. Could that be the error or am I doing something wrong here?

screen shot 2016-09-22 at 1 35 38 pm
spike83 commented 7 years ago

I had the same provlem but I got it running with some minor adjustments.

According the Dockerfile the port is currently 8000 so you have to map -p 8002:8000. There was a change removing the reverse proxy and I assume the docs were not updated everywhere.

Within the index.html in /var/www/cesium/ is another mistake. The correct address for the tileset test is /tilesets/test you can verify it by loading http://localhost:8002/tilesets/test/layer.json wich should return a json even if the file not exists.

ivancera commented 7 years ago

Hi, can you help me? I change the index.html file with the correct path /tilesets/test and after I restart the service with sv restart terrain-server . I open a new terminal to the container docker command docker exec -it id_container /bin/bash but in my browser at localhost:8080 I see a Cesium interface with only a empty circle...

spike83 commented 7 years ago

This is may caused by the default basemap of bing. Have you tried to switch the basemap? Bing maps require a valid api-key and in the demo there could be an expired one.