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/test/roles/prepare-chartmuseum/tasks/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/test/roles/prepare-chartmuseum/tasks/main.yml')
-rw-r--r-- | ansible/test/roles/prepare-chartmuseum/tasks/main.yml | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/ansible/test/roles/prepare-chartmuseum/tasks/main.yml b/ansible/test/roles/prepare-chartmuseum/tasks/main.yml index b0bb5d11..a46888e8 100644 --- a/ansible/test/roles/prepare-chartmuseum/tasks/main.yml +++ b/ansible/test/roles/prepare-chartmuseum/tasks/main.yml @@ -1,12 +1,18 @@ --- -- name: "Ensure {{ app_data_path }}/downloads directory exists" +- name: "Create chartmuseum image storage dir" file: - path: "{{ app_data_path }}/downloads" - recurse: true + path: "{{ infra_images_path }}" state: directory + mode: "u+rw,g+wx,o+rwx" + recurse: true + +- name: Download and archive chartmuseum docker image + delegate_to: localhost + docker_image: + name: "{{ chartmuseum_server_image }}" + archive_path: /tmp/chartmuseum.tar -- name: "Download chartmuseum" - get_url: - url: "https://s3.amazonaws.com/chartmuseum/release/latest/bin/linux/amd64/chartmuseum" - dest: "{{ app_data_path }}/downloads" - remote_src: true +- name: Copy chartmuseum image to node + copy: + src: /tmp/chartmuseum.tar + dest: "{{ infra_images_path }}/{{ chartmuseum_server_image_tar }}" |