refactor(compose): Copy Docker images with copy-docker
This commit is contained in:
parent
1f588e90bc
commit
36f2eecba1
@ -45,7 +45,7 @@ Copy images to target Docker host, that is assuming you deploy to a machine that
|
||||
source "${COMPOSE_ENV}"
|
||||
# FIXME Docker Hub image name with or without slash? FIXME
|
||||
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
|
||||
```
|
||||
|
||||
|
@ -66,7 +66,7 @@ Copy images to target Docker host, that is assuming you deploy to a machine that
|
||||
```
|
||||
source "${COMPOSE_ENV}"
|
||||
# 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
|
||||
|
@ -83,10 +83,10 @@ source "${COMPOSE_ENV}"
|
||||
{%- set components = cookiecutter.__component_list_slug.split(',') -%}
|
||||
{%- if ',' in cookiecutter.__component_list_slug %}
|
||||
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
|
||||
{%- 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 %}
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user