Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Docker image? #8

Open
emamd opened this issue Sep 22, 2016 · 3 comments
Open

Error in Docker image? #8

emamd opened this issue Sep 22, 2016 · 3 comments

Comments

@emamd
Copy link

emamd commented Sep 22, 2016

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
Copy link

spike83 commented Oct 26, 2016

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
Copy link

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
Copy link

spike83 commented Nov 13, 2016

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.

fnicollet added a commit to fnicollet/cesium-terrain-server that referenced this issue Feb 7, 2018
As per this comment:
geo-data#8 (comment)
The file bundled with the docker image is just not pointing to the right URL. It is a pain to just edit that, so it should be fixed here instead.
Also, what would be best would be to have a URL parameter instead of hardcoded "test"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants