diff --git a/docs/development/plugin-triggers/index.html b/docs/development/plugin-triggers/index.html index 05996ef8f..6a6471b1d 100644 --- a/docs/development/plugin-triggers/index.html +++ b/docs/development/plugin-triggers/index.html @@ -3968,6 +3968,15 @@ + + +
  • + + + post-registry-login + + +
  • @@ -5846,6 +5855,15 @@ +
  • + +
  • + + + post-registry-login + + +
  • @@ -8004,6 +8022,18 @@

    post-proxy-ports-update haproxy-build-config "$APP" +

    post-registry-login

    + +
    #!/usr/bin/env bash
    +
    +# the DOCKER_REGISTRY_PASS env var is also set
    +echo "$DOCKER_REGISTRY_PASS"
    +

    post-release-builder

    Warning

    @@ -8015,13 +8045,13 @@

    post-release-builder
    #!/usr/bin/env bash
    -
    -set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
    -source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
    -BUILDER_TYPE="$1"; APP="$2"; IMAGE=$3
    -
    -# TODO
    +
    #!/usr/bin/env bash
    +
    +set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
    +source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
    +BUILDER_TYPE="$1"; APP="$2"; IMAGE=$3
    +
    +# TODO
     

    post-stack-set TODO

      @@ -8030,11 +8060,11 @@

      post-stack-set TODO
      #!/usr/bin/env bash
      -
      -set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
      -
      -# TODO
      +
      #!/usr/bin/env bash
      +
      +set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
      +
      +# TODO
       

      post-stop

      -
      #!/usr/bin/env bash
      -# Marks an app as manually stopped
      -
      -set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
      -
      -APP="$1";
      -
      -dokku config:set --no-restart $APP MANUALLY_STOPPED=1
      +
      #!/usr/bin/env bash
      +# Marks an app as manually stopped
      +
      +set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
      +
      +APP="$1";
      +
      +dokku config:set --no-restart $APP MANUALLY_STOPPED=1
       

      pre-build

      -
      #!/usr/bin/env bash
      -
      -set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
      -
      -# TODO
      -
      -

      pre-build-buildpack

      -
      -

      Warning

      -

      Deprecated, please use pre-build instead

      -
      -
        -
      • Description: Allows you to run commands before the build image is created for a given app. For instance, this can be useful to add env vars to your container. Only applies to apps using buildpacks.
      • -
      • Invoked by: internal function dokku_build() (build phase)
      • -
      • Arguments: $APP $SOURCECODE_WORK_DIR
      • -
      • Example:
      • -
      #!/usr/bin/env bash
       
       set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
       
       # TODO
       
      -

      pre-build-dockerfile

      +

      pre-build-buildpack

      Warning

      Deprecated, please use pre-build instead

        -
      • Description: Allows you to run commands before the build image is created for a given app. For instance, this can be useful to add env vars to your container. Only applies to apps using a dockerfile.
      • +
      • Description: Allows you to run commands before the build image is created for a given app. For instance, this can be useful to add env vars to your container. Only applies to apps using buildpacks.
      • Invoked by: internal function dokku_build() (build phase)
      • -
      • Arguments: $APP
      • +
      • Arguments: $APP $SOURCECODE_WORK_DIR
      • Example:
      #!/usr/bin/env bash
      @@ -8099,15 +8112,15 @@ 

      pre-build-dockerfile # TODO

      -

      pre-build-lambda

      +

      pre-build-dockerfile

      Warning

      Deprecated, please use pre-build instead

        -
      • Description: Allows you to run commands before the build image is created for a given app. For instance, this can be useful to add env vars to your container. Only applies to apps using lambda.
      • +
      • Description: Allows you to run commands before the build image is created for a given app. For instance, this can be useful to add env vars to your container. Only applies to apps using a dockerfile.
      • Invoked by: internal function dokku_build() (build phase)
      • -
      • Arguments: $APP $SOURCECODE_WORK_DIR
      • +
      • Arguments: $APP
      • Example:
      #!/usr/bin/env bash
      @@ -8116,13 +8129,13 @@ 

      pre-build-lambda # TODO

      -

      pre-build-pack

      +

      pre-build-lambda

      Warning

      Deprecated, please use pre-build instead

        -
      • Description: Allows you to run commands before the build image is created for a given app. For instance, this can be useful to add env vars to your container. Only applies to apps using pack.
      • +
      • Description: Allows you to run commands before the build image is created for a given app. For instance, this can be useful to add env vars to your container. Only applies to apps using lambda.
      • Invoked by: internal function dokku_build() (build phase)
      • Arguments: $APP $SOURCECODE_WORK_DIR
      • Example:
      • @@ -8133,6 +8146,23 @@

        pre-build-pack # TODO

      +

      pre-build-pack

      +
      +

      Warning

      +

      Deprecated, please use pre-build instead

      +
      +
        +
      • Description: Allows you to run commands before the build image is created for a given app. For instance, this can be useful to add env vars to your container. Only applies to apps using pack.
      • +
      • Invoked by: internal function dokku_build() (build phase)
      • +
      • Arguments: $APP $SOURCECODE_WORK_DIR
      • +
      • Example:
      • +
      +
      #!/usr/bin/env bash
      +
      +set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
      +
      +# TODO
      +

      pre-delete

      • Description: Can be used to run commands before an app is deleted.
      • @@ -8140,17 +8170,17 @@

        pre-delete
        #!/usr/bin/env bash
        -# Clears out the gulp asset build cache for apps
        -
        -set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
        -source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
        -
        -APP="$1"; GULP_CACHE_DIR="$DOKKU_ROOT/$APP/gulp"; IMAGE=$(get_app_image_name $APP $IMAGE_TAG)
        -
        -if [[ -d $GULP_CACHE_DIR ]]; then
        -  docker run "${DOCKER_COMMIT_LABEL_ARGS[@]}" --rm -v "$GULP_CACHE_DIR:/gulp" "$IMAGE" find /gulp -depth -mindepth 1 -maxdepth 1 -exec rm -Rf {} \; || true
        -fi
        +
        #!/usr/bin/env bash
        +# Clears out the gulp asset build cache for apps
        +
        +set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
        +source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
        +
        +APP="$1"; GULP_CACHE_DIR="$DOKKU_ROOT/$APP/gulp"; IMAGE=$(get_app_image_name $APP $IMAGE_TAG)
        +
        +if [[ -d $GULP_CACHE_DIR ]]; then
        +  docker run "${DOCKER_COMMIT_LABEL_ARGS[@]}" --rm -v "$GULP_CACHE_DIR:/gulp" "$IMAGE" find /gulp -depth -mindepth 1 -maxdepth 1 -exec rm -Rf {} \; || true
        +fi
         

        pre-deploy

          @@ -8159,18 +8189,18 @@

          pre-deploy
          #!/usr/bin/env bash
          -# Runs gulp in our container
          -
          -set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
          -source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
          -APP="$1"; IMAGE_TAG="$2"; IMAGE=$(get_app_image_name $APP $IMAGE_TAG)
          -
          -dokku_log_info1 "Running gulp"
          -CID=$(docker run "${DOCKER_COMMIT_LABEL_ARGS[@]}" -d $IMAGE /bin/bash -c "cd /app && gulp default")
          -test $(docker wait $CID) -eq 0
          -DOCKER_COMMIT_LABEL_ARGS=("--change" "LABEL org.label-schema.schema-version=1.0" "--change" "LABEL org.label-schema.vendor=dokku" "--change" "LABEL com.dokku.app-name=$APP")
          -docker commit "${DOCKER_COMMIT_LABEL_ARGS[@]}" $CID $IMAGE >/dev/null
          +
          #!/usr/bin/env bash
          +# Runs gulp in our container
          +
          +set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
          +source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
          +APP="$1"; IMAGE_TAG="$2"; IMAGE=$(get_app_image_name $APP $IMAGE_TAG)
          +
          +dokku_log_info1 "Running gulp"
          +CID=$(docker run "${DOCKER_COMMIT_LABEL_ARGS[@]}" -d $IMAGE /bin/bash -c "cd /app && gulp default")
          +test $(docker wait $CID) -eq 0
          +DOCKER_COMMIT_LABEL_ARGS=("--change" "LABEL org.label-schema.schema-version=1.0" "--change" "LABEL org.label-schema.vendor=dokku" "--change" "LABEL com.dokku.app-name=$APP")
          +docker commit "${DOCKER_COMMIT_LABEL_ARGS[@]}" $CID $IMAGE >/dev/null
           

          pre-disable-vhost

          -
          #!/usr/bin/env bash
          -
          -set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
          -source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
          -APP="$1"
          -
          -# TODO
          +
          #!/usr/bin/env bash
          +
          +set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
          +source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
          +APP="$1"
          +
          +# TODO
           

          pre-enable-vhost

          -
          #!/usr/bin/env bash
          -
          -set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
          -source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
          -APP="$1"
          -
          -# TODO
          +
          #!/usr/bin/env bash
          +
          +set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
          +source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
          +APP="$1"
          +
          +# TODO
           

          pre-receive-app

          -
          #!/usr/bin/env bash
          -# Adds a file called `dokku-is-awesome` to the repository
          -# the contents will be the app name
          -
          -set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
          -
          -APP="$1"; IMAGE_SOURCE_TYPE="$2"; TMP_WORK_DIR="$3"; REV="$4"
          -
          -echo "$APP" > "$TMP_WORK_DIR/dokku-is-awesome"
          +
          #!/usr/bin/env bash
          +# Adds a file called `dokku-is-awesome` to the repository
          +# the contents will be the app name
          +
          +set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
          +
          +APP="$1"; IMAGE_SOURCE_TYPE="$2"; TMP_WORK_DIR="$3"; REV="$4"
          +
          +echo "$APP" > "$TMP_WORK_DIR/dokku-is-awesome"
           

          pre-release-builder

            @@ -8226,13 +8256,13 @@

            pre-release-builder
            #!/usr/bin/env bash
            -
            -set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
            -source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
            -BUILDER_TYPE="$1"; APP="$2"; IMAGE_TAG="$3";
            -
            -# TODO
            +
            #!/usr/bin/env bash
            +
            +set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
            +source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
            +BUILDER_TYPE="$1"; APP="$2"; IMAGE_TAG="$3";
            +
            +# TODO
             

            pre-release-buildpack

            @@ -8245,23 +8275,23 @@

            pre-release-buildpack
            #!/usr/bin/env bash
            -# Installs the graphicsmagick package into the container
            -
            -set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
            -source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
            -APP="$1"; IMAGE_TAG="$2"; IMAGE=$(get_app_image_name $APP $IMAGE_TAG)
            -
            -dokku_log_info1 "Installing GraphicsMagick..."
            -
            -CMD="cat > gm && \
            -  dpkg -s graphicsmagick &>/dev/null || \
            -  (apt-get update -qq && apt-get -qq -y --no-install-recommends install graphicsmagick && apt-get clean)"
            -
            -CID=$(docker run $DOKKU_GLOBAL_RUN_ARGS -i -a stdin $IMAGE /bin/bash -c "$CMD")
            -test $(docker wait $CID) -eq 0
            -DOCKER_COMMIT_LABEL_ARGS=("--change" "LABEL org.label-schema.schema-version=1.0" "--change" "LABEL org.label-schema.vendor=dokku" "--change" "LABEL com.dokku.app-name=$APP")
            -docker commit "${DOCKER_COMMIT_LABEL_ARGS[@]}" $CID $IMAGE >/dev/null
            +
            #!/usr/bin/env bash
            +# Installs the graphicsmagick package into the container
            +
            +set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
            +source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
            +APP="$1"; IMAGE_TAG="$2"; IMAGE=$(get_app_image_name $APP $IMAGE_TAG)
            +
            +dokku_log_info1 "Installing GraphicsMagick..."
            +
            +CMD="cat > gm && \
            +  dpkg -s graphicsmagick &>/dev/null || \
            +  (apt-get update -qq && apt-get -qq -y --no-install-recommends install graphicsmagick && apt-get clean)"
            +
            +CID=$(docker run $DOKKU_GLOBAL_RUN_ARGS -i -a stdin $IMAGE /bin/bash -c "$CMD")
            +test $(docker wait $CID) -eq 0
            +DOCKER_COMMIT_LABEL_ARGS=("--change" "LABEL org.label-schema.schema-version=1.0" "--change" "LABEL org.label-schema.vendor=dokku" "--change" "LABEL com.dokku.app-name=$APP")
            +docker commit "${DOCKER_COMMIT_LABEL_ARGS[@]}" $CID $IMAGE >/dev/null
             

            pre-release-lambda

            @@ -8274,13 +8304,13 @@

            pre-release-lambdaArguments: $APP $IMAGE_TAG
          • Example:
          -
          #!/usr/bin/env bash
          -
          -set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
          -source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
          -APP="$1"; IMAGE_TAG="$2";
          -
          -# TODO
          +
          #!/usr/bin/env bash
          +
          +set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
          +source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
          +APP="$1"; IMAGE_TAG="$2";
          +
          +# TODO
           

          pre-release-pack

          @@ -8293,13 +8323,13 @@

          pre-release-packArguments: $APP $IMAGE_TAG
        • Example:
        -
        #!/usr/bin/env bash
        -
        -set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
        -source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
        -APP="$1"; IMAGE_TAG="$2";
        -
        -# TODO
        +
        #!/usr/bin/env bash
        +
        +set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
        +source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
        +APP="$1"; IMAGE_TAG="$2";
        +
        +# TODO
         

        pre-release-dockerfile

        @@ -8312,13 +8342,13 @@

        pre-release-dockerfile
        #!/usr/bin/env bash
        -
        -set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
        -source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
        -APP="$1"; IMAGE_TAG="$2"; IMAGE=$(get_app_image_name $APP $IMAGE_TAG)
        -
        -# TODO
        +
        #!/usr/bin/env bash
        +
        +set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
        +source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
        +APP="$1"; IMAGE_TAG="$2"; IMAGE=$(get_app_image_name $APP $IMAGE_TAG)
        +
        +# TODO
         

        pre-restore

          @@ -8327,12 +8357,12 @@

          pre-restore
          #!/usr/bin/env bash
          -
          -set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
          -DOKKU_SCHEDULER="$1"
          -
          -# TODO
          +
          #!/usr/bin/env bash
          +
          +set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
          +DOKKU_SCHEDULER="$1"
          +
          +# TODO
           

          pre-start

          -
          #!/usr/bin/env bash
          -# Notifies an example url that an app is starting
          -
          -set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
          -
          -APP="$1";
          -
          -curl "https://dokku.me/starting/${APP}" || true
          +
          #!/usr/bin/env bash
          +# Notifies an example url that an app is starting
          +
          +set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
          +
          +APP="$1";
          +
          +curl "https://dokku.me/starting/${APP}" || true
           

          procfile-get-command

            @@ -8357,29 +8387,16 @@

            procfile-get-command
            #!/usr/bin/env bash
            -
            -set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
            -
            -# TODO
            -

          -

          procfile-exists

          -
            -
          • Description: Checks if a procfile exists for the specified app
          • -
          • Invoked by: internally
          • -
          • Arguments: $APP
          • -
          • Example:
          • -
          #!/usr/bin/env bash
           
           set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
           
           # TODO
           
          -

          proxy-build-config

          +

          procfile-exists

            -
          • Description: Builds the proxy implementation configuration for a given app
          • -
          • Invoked by: internally triggered by ps:restore
          • +
          • Description: Checks if a procfile exists for the specified app
          • +
          • Invoked by: internally
          • Arguments: $APP
          • Example:
          @@ -8389,10 +8406,10 @@

          proxy-build-config # TODO

        -

        proxy-clear-config

        +

        proxy-build-config

          -
        • Description: Clears the proxy implementation configuration for a given app
        • -
        • Invoked by: internally triggered by apps:rename
        • +
        • Description: Builds the proxy implementation configuration for a given app
        • +
        • Invoked by: internally triggered by ps:restore
        • Arguments: $APP
        • Example:
        @@ -8402,10 +8419,10 @@

        proxy-clear-config # TODO

        -

        proxy-disable

        +

        proxy-clear-config

          -
        • Description: Disables the configured proxy implementation for an app
        • -
        • Invoked by: internally triggered by ps:restore
        • +
        • Description: Clears the proxy implementation configuration for a given app
        • +
        • Invoked by: internally triggered by apps:rename
        • Arguments: $APP
        • Example:
        @@ -8415,9 +8432,9 @@

        proxy-disable # TODO

    -

    proxy-enable

    +

    proxy-disable