From cdb675bf3d302079a1981e66059def1794fd129b Mon Sep 17 00:00:00 2001 From: DQ Date: Fri, 3 Apr 2020 13:39:12 +0000 Subject: [PATCH] Add proxy cert file to jobservice when https enabled jobservice may request via absolute path of url to harbor Signed-off-by: DQ --- .../templates/docker_compose/docker-compose.yml.jinja | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/make/photon/prepare/templates/docker_compose/docker-compose.yml.jinja b/make/photon/prepare/templates/docker_compose/docker-compose.yml.jinja index a83506c75..7e1a9bec7 100644 --- a/make/photon/prepare/templates/docker_compose/docker-compose.yml.jinja +++ b/make/photon/prepare/templates/docker_compose/docker-compose.yml.jinja @@ -267,6 +267,11 @@ services: - type: bind source: {{internal_tls.job_service_key_path}} target: /etc/harbor/ssl/job_service.key +{% endif %} +{% if protocol == 'https' %} + - type: bind + source: {{data_volume}}/secret/cert/server.crt + target: /harbor_cust_cert/harbor_ca.crt {% endif %} networks: - harbor