feat: disable scaling if app contains DOKKU_SCALE file
A DOKKU_SCALE file will always be used for managing the scale count for an app if it exists in a repository. As such, ps:scale usage should be disabled in those cases. This commit makes that more apparent. Also document how to build a specific core plugin for testing purposes. Closes #3544
This commit is contained in:
@@ -384,7 +384,10 @@ copy_from_image() {
|
||||
fi
|
||||
fi
|
||||
local CID=$(docker create "$DOKKU_GLOBAL_RUN_ARGS" "$IMAGE")
|
||||
docker cp "$CID:$SRC_FILE" "$DST_DIR"
|
||||
if ! docker cp "$CID:$SRC_FILE" "$DST_DIR"; then
|
||||
docker rm -f "$CID" &>/dev/null
|
||||
return 1
|
||||
fi
|
||||
docker rm -f "$CID" &>/dev/null
|
||||
else
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user