bioatlas / ala-docker

Dockerized version of Atlas of Living Australia components
GNU Affero General Public License v3.0
12 stars 12 forks source link

biocache related #5

Closed shahmanash closed 8 years ago

shahmanash commented 8 years ago

the generic-hub service does not connect to biocache-service as it cannot identify the hostname

mskyttner commented 8 years ago

The container needs to "see" and resolve the hostname used. That can be tested with "ping" for example. If this doesn't work from inside the container, then there is a problem.

Perhaps https://docs.docker.com/engine/userguide/networking/default_network/configure-dns/ can provide instructions on how to make the container see itself under a given hostname?

What about --link or --hostname and the docker compose equivalents, whatever those might be?

Perhaps extra_hosts or external_links? It seems you can do this in docker-compose.yml:

domainname: foo.com hostname: foo

Details: https://docs.docker.com/compose/compose-file/#/cpu-shares-cpu-quota-cpuset-domainname-hostname-ipc-mac-address-mem-limit-memswap-limit-privileged-read-only-restart-shm-size-stdin-open-tty-user-working-dir

mskyttner commented 8 years ago

@shahmanash just checking, is this ready to test now, for example does the hostname "work"?

Is this file needed: tomcat/biocache-cli-files/solr-template/biocache/conf/spellings.txt?

shahmanash commented 8 years ago

Not yet, added the biocache-cli, about the mentined files , i am not sure if it is mandatory to have the particular file or files , in any case the random content has to be removed while tidying up the code.

shahmanash commented 8 years ago

@mskyttner the hostname resolution from within container is still not fixed, nginx container was added http:/gbifsweden.se/generic-hub is not working

mskyttner commented 8 years ago

This works for me, :+1:, merging.