refactor(compose): Copy Docker images with copy-docker

This commit is contained in:
hygienic-books 2023-10-13 02:26:41 +02:00
parent 1f588e90bc
commit 36f2eecba1
3 changed files with 4 additions and 4 deletions

View File

@ -45,7 +45,7 @@ Copy images to target Docker host, that is assuming you deploy to a machine that
source "${COMPOSE_ENV}" source "${COMPOSE_ENV}"
# FIXME Docker Hub image name with or without slash? FIXME # FIXME Docker Hub image name with or without slash? FIXME
for image in 'grafana:'"${GRAFANA_VERSION}" 'nginx:'"${NGINX_VERSION}"; do for image in 'grafana:'"${GRAFANA_VERSION}" 'nginx:'"${NGINX_VERSION}"; do
copy-docker.sh "${image}" fully.qualified.domain.name copy-docker "${image}" fully.qualified.domain.name
done done
``` ```

View File

@ -66,7 +66,7 @@ Copy images to target Docker host, that is assuming you deploy to a machine that
``` ```
source "${COMPOSE_ENV}" source "${COMPOSE_ENV}"
# FIXME Docker Hub image name with or without slash? FIXME # FIXME Docker Hub image name with or without slash? FIXME
copy-docker.sh 'vault:'"${VAULT_VERSION}" fully.qualified.domain.name copy-docker 'vault:'"${VAULT_VERSION}" fully.qualified.domain.name
``` ```
## Start ## Start

View File

@ -83,10 +83,10 @@ source "${COMPOSE_ENV}"
{%- set components = cookiecutter.__component_list_slug.split(',') -%} {%- set components = cookiecutter.__component_list_slug.split(',') -%}
{%- if ',' in cookiecutter.__component_list_slug %} {%- if ',' in cookiecutter.__component_list_slug %}
for image in{% for component in components %} '{{ component }}:'"${% raw %}{{% endraw %}{{ component.upper() }}_VERSION{% raw %}}{% endraw %}"{%- endfor %}; do for image in{% for component in components %} '{{ component }}:'"${% raw %}{{% endraw %}{{ component.upper() }}_VERSION{% raw %}}{% endraw %}"{%- endfor %}; do
copy-docker.sh "${image}" fully.qualified.domain.name copy-docker "${image}" fully.qualified.domain.name
done done
{%- else %} {%- else %}
copy-docker.sh '{{ cookiecutter.__component_list_slug }}:'"${% raw %}{{% endraw %}{{ cookiecutter.__component_list_slug.upper() }}_VERSION{% raw %}}{% endraw %}" fully.qualified.domain.name copy-docker '{{ cookiecutter.__component_list_slug }}:'"${% raw %}{{% endraw %}{{ cookiecutter.__component_list_slug.upper() }}_VERSION{% raw %}}{% endraw %}" fully.qualified.domain.name
{%- endif %} {%- endif %}
``` ```