Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOCS-7067] ACS Transform override case #934

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ changed by resetting the following Alfresco global property.
local.transform.pipeline.config.dir=shared/classes/alfresco/extension/transform/pipelines
```

Direct override is only possible in 3.0.0 version of alfresco-transform-core and higher. To override local transform-core-aio T-Engine configuration, the docker image needs a newer version of the image and follow this approach providing configuration directly to the T-Engine: [Adding pipelines and failover transforms to a T-engine](#adding-pipelines-and-failover-transforms-to-a-t-engine).
Amy-Hyland marked this conversation as resolved.
Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Amy-Hyland I think this makes more sense. What do you think?
Direct override is only possible in the 3.0.0 version of alfresco-transform-core and above. To override the local transform-core-aio T-Engine configuration, the docker image must use a newer version of the image. Follow this approach and provide the configuration directly to the T-Engine: Adding pipelines and failover transforms to a T-engine.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mstrankowski Does Oliver's suggestion still convey the technical details correctly? Can I incorporate his changes?


On startup this location is checked every minute, but then switches to once an hour if successful. After a problem, it
tries every minute again. These are the same properties use to decide when to read T-Engine configurations,
because pipelines combine transformers in the T-Engines.
Expand Down Expand Up @@ -285,6 +287,37 @@ Unlike pipelines, it must not be blank.
* `transformOptions` - A list of references to options required by
the pipeline transformer.

### Adding pipelines and failover transforms to a T-Engine

Since Content Services version 7.2 and ATS 1.5:

So far we have talked about defining pipelines and failover transforms in the Repository or ATS router pipeline files. It is also possible to add them to a T-Engine's configuration, even when they reference a transformer provided by another T-Engine. It is only when all transform steps exist that the pipeline or failover transform becomes available. Warning messages will be issued if step transforms do not exist.

Generally it is better to add them to T-Engines to avoid having to add an identical entry to both the Repository and ATS Router pipeline files.

Since Alfresco Transform Core 3.0.0, config files with additional pipelines or overrides can be provided directly to a T-Engine image through additional config files (which may be resources on the classpath or external files) that are specified with Spring Boot properties such as `transform.config.file.<filename>` or environment variables like `TRANSFORM_CONFIG_FILE_<filename>`. You can use this approach if you have issues with changing the configuration of the transform-core-aio T-Engine.

#### Modifying existing configuration

Since Content Services version 7.2 and ATS 1.5:

The Repository and ATS router read the configuration from T-Engines and then their own pipeline files. The T-Engine order is based on the `<engineName>` and the pipeline file order is based on the filenames. As sorting is alphanumeric, you may wish to consider using a fixed length numeric prefix.
Amy-Hyland marked this conversation as resolved.
Show resolved Hide resolved

For example:

```text

localTransform.imagemagick.url=http://localhost:8091/
localTransform.libreoffice.url=http://localhost:8092/
localTransform.misc.url=http://localhost:8094/
localTransform.pdfrenderer.url=http://localhost:8090/
localTransform.tika.url=http://localhost:8093/
shared/classes/alfresco/extension/transform/pipelines/0100-basePipelines.json
shared/classes/alfresco/extension/transform/pipelines/0200-a-cutdown-libreoffice.json
```

The following sections describe ways to modify the configuration that has already been read. This may be added to T-Engine or pipeline files.

### Overriding a Local transform

In the same way as it is possible to combine Local transforms into pipelines, it is also possible to override a
Expand Down
Loading