fork 0k-charms
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

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