Browse Source

new: added ``$IMAGE_NAME`` and ``$CONTAINER_NAME`` for hooks.

raw-remaining-args
Valentin Lab 9 years ago
parent
commit
f11df8662e
  1. 2
      bin/compose

2
bin/compose

@ -782,6 +782,8 @@ run_service_hook () {
cd "$CHARM_STORE/$charm" cd "$CHARM_STORE/$charm"
export SERVICE_NAME=$subservice export SERVICE_NAME=$subservice
export IMAGE_NAME=$(echo "${PROJECT_NAME}" | tr -d "_-")_\${SERVICE_NAME}
export CONTAINER_NAME=\${IMAGE_NAME}_1
export CHARM_NAME="$charm" export CHARM_NAME="$charm"
export PROJECT_NAME=$PROJECT_NAME export PROJECT_NAME=$PROJECT_NAME
export DOCKER_BASE_IMAGE=$(service_base_docker_image "$charm") export DOCKER_BASE_IMAGE=$(service_base_docker_image "$charm")

Loading…
Cancel
Save