diff options
author | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2021-02-12 14:03:54 +0100 |
---|---|---|
committer | Bartek Grzybowski <b.grzybowski@partner.samsung.com> | 2021-02-12 14:19:43 +0100 |
commit | d6908ed39dd5e58c539c1c818f371849dd0271eb (patch) | |
tree | 9a3453740a2acc4a980ec1893ece3d5f9eefcaaf /ansible/roles/chartmuseum/handlers/main.yml | |
parent | 8fdadad54aa08b6c585549b74d1a8323eb751691 (diff) |
Run chartmuseum as a docker container
A docker container for chartmuseum is run with chart
storage volume mounted from hosts' resource dir for chart
repo persistence across container/infra restarts.
Change-Id: I692ff7a3d95414b439b15b5414bc8b959eb79414
Issue-ID: OOM-2665
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'ansible/roles/chartmuseum/handlers/main.yml')
-rw-r--r-- | ansible/roles/chartmuseum/handlers/main.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ansible/roles/chartmuseum/handlers/main.yml b/ansible/roles/chartmuseum/handlers/main.yml new file mode 100644 index 00000000..867aaf0f --- /dev/null +++ b/ansible/roles/chartmuseum/handlers/main.yml @@ -0,0 +1,14 @@ +--- +- name: Run chartmuseum server container + docker_container: + name: chartmuseum + image: "{{ chartmuseum_server_image }}" + env: + STORAGE: "local" + STORAGE_LOCAL_ROOTDIR: "/charts" + volumes: + - "{{ chartmuseum_storage_dir }}:/charts:rw" + ports: + - "{{ chartmuseum_port }}:8080/tcp" + restart_policy: unless-stopped + recreate: true |