From b06e19a6370831ac9765e30027508a3df6cecec9 Mon Sep 17 00:00:00 2001 From: DQ Date: Wed, 29 Apr 2020 15:04:16 +0800 Subject: [PATCH] Fix: GCS storage gc issue Mount gcs key to registryctl 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 6608fff28..efe687bd5 100644 --- a/make/photon/prepare/templates/docker_compose/docker-compose.yml.jinja +++ b/make/photon/prepare/templates/docker_compose/docker-compose.yml.jinja @@ -93,6 +93,11 @@ services: - type: bind source: ./common/config/shared/trust-certificates target: /harbor_cust_cert +{% if gcs_keyfile %} + - type: bind + source: {{gcs_keyfile}} + target: /etc/registry/gcs.key +{% endif %} {%if internal_tls.enabled %} - type: bind source: {{internal_tls.registryctl_crt_path}}