#1077 docker: set backend URL to a hostname known by other containers
Closed 4 years ago by thrnciar. Opened 4 years ago by frostyx.
copr/ frostyx/copr docker-compose-copr-base-repo  into  master

@@ -83,7 +83,7 @@ 

  PUBLIC_COPR_HOSTNAME = 'localhost:5000'

  PUBLIC_COPR_BASE_URL = 'http://frontend:5000'

  

- BACKEND_BASE_URL = 'http://localhost:5002'

+ BACKEND_BASE_URL = 'http://backend_httpd:5002'

  DIST_GIT_CLONE_URL = 'http://distgit/git/'

  DIST_GIT_URL = 'http://localhost:5001/cgit'

  COPR_DIST_GIT_LOGS_URL = 'http://localhost:5001/per-task-logs'

The problem is following - http://localhost:5002 is approachable
from the host system and backend results are served there. This URL
needs to be used e.g. when rendering links pointing to logs on
the backend. However, at the same time, this URL is not available
within the containers so builds fail when using it for copr_base
repository with skip_if_unavailable=False.

I don't know how to get both features working other than having
two distinct config options for BACKEND_BASE_URL (e.g. adding
BACKEND_BASE_URL_PRIVATE). And I am not a big fan of this solution.

Metadata Update from @msuchy:
- Pull-request tagged with: can-be-merged

4 years ago

Pull-Request has been closed by thrnciar

4 years ago