You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

14 lines
508 B

# -*- mode: bash -*-
CYCLOS_CONFIG="/usr/local/cyclos/WEB-INF/classes/cyclos.properties"
HOST_CYCLOS_CONFIG="$SERVICE_CONFIGSTORE$CYCLOS_CONFIG"
cyclos:build() {
docker pull "$DOCKER_BASE_IMAGE" || return 1
mkdir -p "$(dirname "$HOST_CYCLOS_CONFIG")"
container_id=$(docker run -d --entrypoint true "$DOCKER_BASE_IMAGE") || return 1
mkdir -p "$(dirname "$HOST_CYCLOS_CODE")" &&
docker cp "$container_id":"$CYCLOS_CONFIG" "$HOST_CYCLOS_CONFIG" &&
docker rm "$container_id"
}