From ac048063369a323fe0b5896876bf533c5ce50cf0 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 f1c52553c..74f22a7ad 100644 --- a/make/photon/prepare/templates/docker_compose/docker-compose.yml.jinja +++ b/make/photon/prepare/templates/docker_compose/docker-compose.yml.jinja @@ -81,6 +81,11 @@ services: - type: bind source: ./common/config/registryctl/config.yml target: /etc/registryctl/config.yml +{% if gcs_keyfile %} + - type: bind + source: {{gcs_keyfile}} + target: /etc/registry/gcs.key +{% endif %} {%if registry_custom_ca_bundle_path %} - type: bind source: {{registry_custom_ca_bundle_path}}