This release provides two main options for deployment: using the distribution zip, or using containerized deployment.
The Transform Service zip can be applied when installing Alfresco Content Services using the distribution zip.
The Transform Service is also deployed as part of the Content Services containerized deployment using Docker images that are packaged in Helm charts. These charts are a deployment template that can be used as the basis for your specific deployment needs.
Note: Deployment of Transform Service with Content Services on AWS, such as Amazon EKS (Elastic Kubernetes Service), is recommended only for customers with a good knowledge of Content Services, and strong competencies in AWS and containerized deployment.
The following diagram shows how Content Services and the components of the Transform Service interact when deployed using Docker Compose.
The following diagram shows how Content Services and the components of the Transform Service interact when deployed using Helm charts.
Prerequisites
There are a number of software requirements for deploying Transform Service.
The Transform Service is only deployed as part of Content Services for containerized deployments.
However, this is not the case if you’re installing Content Services using the distribution zip. See Supported platforms for more details.
Containerized deployments
The images downloaded directly from Docker Hub, or Quay.io are for a limited trial of the Enterprise version of Alfresco Content Services that goes into read-only mode after 2 days. For a longer (30-day) trial, get the Alfresco Content Services Download Trial.
Note: A Quay.io account is needed to pull the Docker images that are needed for the Transform Service:
alfresco/alfresco-transform-router
The other images are available in DockerHub:
alfresco/alfresco-shared-file-store
alfresco/alfresco-transform-core-aio
Software requirements (Helm)
To use the Content Services deployment (including the Transform Service), you need to install the following software:
- AWS CLI - the command line interface for Amazon Web Services.
- Kubectl - the command line tool for Kubernetes.
- Helm - the tool for installing and managing Kubernetes applications.
- There are Helm charts that allow you to deploy Content Services with Transform Service in a Kubernetes cluster, for example, on AWS.
See Install with Helm charts for more details.
Software requirements (Docker)
This is recommended for evaluations only (i.e. test and development environments).
- Docker (latest stable version)
- This allows you to run Docker images and
docker-compose
on a single computer.
- This allows you to run Docker images and
- Docker Compose
- Docker Compose is included as part of some Docker installers. If it’s not part of your installation, then install it separately after you’ve installed Docker.
Note: Check the prerequisites for your operating system, both for Docker and Docker Compose.
See Install with Docker Compose for more details.
Non-containerized deployment
Before you can use the Transform Service zip, you need to install the software requirements listed.
Follow the linked pages in the Content Services documentation, starting from Install using distribution zip.
Software requirements (zip)
- Content Services: see Supported Platforms for the supported versions.
- Messaging broker: see Configure ActiveMQ
- ImageMagick: see Install ImageMagick
- LibreOffice: see Install LibreOffice
- alfresco-pdf-renderer: see Install alfresco-pdf renderer
See Install with zip for more details.
Install with Helm charts
Use this information to deploy Content Services (including the Transform Service) using Helm charts by running a Kubernetes cluster on Amazon Web Services (AWS). These charts are a deployment template which can be used as the basis for your specific deployment needs.
The Helm charts are provided as a reference that can be used to build deployments in AWS. If you’re a System administrator, ensure that data persistence, backups, log storage, and other system-level functions have been configured to meet your needs.
You’ll need your Quay.io account credentials to access the Docker images. If you don’t already have these credentials, contact Alfresco Support.
Here is a summary of the steps required:
- Set up your Kubernetes cluster on AWS.
- Install the Kubernetes Dashboard to manage your Kubernetes cluster.
- Set up Content Services on the Kubernetes cluster, including creating file storage.
- To access the images in Quay.io, you’ll need to generate a pull secret and apply it to your cluster.
-
Deploy Content Services.
Before you can use the Transform Service zip, you need to install the following software requirements.
Note: Remember to pass the name of the secret as an extra
--set
argument in thehelm install
command. - Check the status of your deployment.
See the Alfresco/acs-deployment GitHub project documentation for the prerequisites and detailed setup.
Install with Docker Compose
Use this information to quickly start up Content Services (including Transform Service) using Docker Compose. Due to the limited capabilities of Docker Compose, this deployment method is only recommended for development and test environments.
To check which branch tag corresponds to a specific Content Services release, review the release versions page in GitHub. Choose a version from the left column that corresponds to the required Content Services version you want to deploy.
Note: Check the prerequisites for your operating system, both for Docker and Docker Compose, using the links provided.
-
Clone the project locally, and then change directory to the project folder:
git clone --branch x.y.z https://github.com/Alfresco/acs-deployment.git cd acs-deployment/docker-compose
Note: Replace the version number
x.y.z
with the tag that matches the Content Services version you want to deploy. For example, if you want Content Services 6.2.2, then select tag4.1.0
.Note: Make sure that exposed ports are open on your host computer. Check the
docker-compose.yml
file to determine the exposed ports - refer to thehost:container
port definitions. You’ll see they include 5432, 8080, 8083 and others. -
Log in to Quay.io using your credentials:
docker login https://quay.io
You’ll need your Quay.io account credentials to access the Docker images. If you don’t already have these credentials, contact Alfresco Support.
-
Deploy Content Services, including the repository, Share, Postgres database, Search Services, and Transform Service:
docker-compose up
This downloads the images, fetches all the dependencies, creates each container, and then starts the system:
Creating docker-compose_digital-workspace_1 ... done Creating docker-compose_alfresco_1 ... done Creating docker-compose_activemq_1 ... done Creating docker-compose_share_1 ... done Creating docker-compose_solr6_1 ... done Creating docker-compose_shared-file-store_1 ... done Creating docker-compose_sync-service_1 ... done Creating docker-compose_postgres_1 ... done Creating docker-compose_proxy_1 ... done Creating docker-compose_transform-router_1 ... done Creating docker-compose_transform-core-aio_1 ... done Attaching to docker-compose_digital-workspace_1, docker-compose_shared-file-store_1, docker-compose_alfresco_1,
As an alternative, you can also start the containers in the background by running
docker-compose up -d
. -
Wait for the logs to show messages:
alfresco_1 | 2020-07-06 11:50:46,808 WARN ... The Alfresco Content Services license will expire in 2 days. alfresco_1 | 2020-07-06 11:50:50,938 INFO ... Starting 'Transformers' subsystem, ID: [Transformers, default] alfresco_1 | 2020-07-06 11:50:50,371 INFO ... Startup of 'Transformers' subsystem, ID: [Transformers, default] complete
If you encounter errors whilst the system is starting up:
- Stop the session (by using
CONTROL+C
). - Remove the container using
--rmi all
. This option also removes the images created by docker-compose up, and the images used by any service. You can use this, for example, if any containers fail and you need to remove them. - Try allocating more memory resources, as advised in
docker-compose.yml
. For example, in Docker, change the memory setting in Preferences (or Settings) > Advanced > Memory, to at least 6 GB. Make sure you restart Docker and wait for the process to finish before continuing. - Go back to step 3 and start the deployment again.
Note: Although 16 GB is the required minimum memory setting, keep in mind that 6 GB is much lower than the required minimum, and may need to be adapted for your environment.
- Stop the session (by using
-
Open your browser and check everything starts up correctly:
Service Endpoint Administration and REST APIs http://localhost:8080/alfresco
Share http://localhost:8080/share
Digital Workspace http://localhost:8080/workspace
Search Services administration http://localhost:8083/solr
Transform Router configuration http://localhost:8095/transform/config
ActiveMQ Admin Web Console http://localhost:8161/admin
-
Log in as the
admin
user. Enter the default administrator passwordadmin
.
You can use a number of commands to check that the system started correctly, see below.
See the Alfresco/acs-deployment GitHub project documentation for the prerequisites and detailed setup: Deploying using Docker Compose.
Check system start up
Use this information to verify that the system started correctly, and to clean up the deployment.
-
Open a new terminal window.
-
Change directory to the
docker-compose
folder that you created in the deployment steps. -
Verify that all the services started correctly.
-
List the images and additional details:
docker-compose images
You should see a list of the services defined in your
docker-compose.yaml
file:Container Repository ... Size ---------------------------------------------------------------------------------------------------- docker-compose_activemq_1 alfresco/alfresco-activemq ... 545.9 MB docker-compose_alfresco_1 alfresco/alfresco-content-repository ... 1.3 GB docker-compose_digital-workspace_1 quay.io/alfresco/alfresco-digital-workspace ... 46.59 MB docker-compose_postgres_1 postgres ... 312.5 MB docker-compose_proxy_1 alfresco/alfresco-acs-nginx ... 20.42 MB docker-compose_share_1 alfresco/alfresco-share ... 837.6 MB docker-compose_shared-file-store_1 alfresco/alfresco-shared-file-store ... 769.1 MB docker-compose_solr6_1 alfresco/alfresco-search-services ... 1.022 GB docker-compose_sync-service_1 quay.io/alfresco/service-sync ... 801.3 MB docker-compose_transform-core-aio_1 alfresco/alfresco-transform-core-aio ... 1.682 GB docker-compose_transform-router_1 quay.io/alfresco/alfresco-transform-router ... 721.2 MB
-
List the running containers:
docker-compose ps
You should see a list of the services defined in the
docker-compose.yaml
file. -
View the log files for each service
<service-name>
, or container<container-name>
:docker-compose logs <service-name> docker container logs `<container-name>`
For example, to check the logs for Share, run any of the following commands:
docker-compose logs share docker container logs docker-compose_share_1
You can add an optional parameter
--tail=25
before<container-name>
to display the last 25 lines of the logs for the selected container.docker container logs --tail=25 docker-compose_share_1
Check for a success message:
Successfully retrieved license information from Alfresco.
Once you’ve tested the services, you can clean up the deployment by stopping the running services.
-
-
Stop the session by using
CONTROL+C
in the same window as the running services:^CGracefully stopping... (press Ctrl+C again to force) Stopping docker-compose_transform-core-aio_1 ... done Stopping docker-compose_transform-router_1 ... done Stopping docker-compose_proxy_1 ... done Stopping docker-compose_sync-service_1 ... done Stopping docker-compose_shared-file-store_1 ... done Stopping docker-compose_postgres_1 ... done Stopping docker-compose_activemq_1 ... done Stopping docker-compose_share_1 ... done Stopping docker-compose_solr6_1 ... done Stopping docker-compose_alfresco_1 ... done Stopping docker-compose_digital-workspace_1 ... done
-
Alternatively, you can open a new terminal window, change directory to the
docker-compose
folder, and run:docker-compose down
This stops the running services, as shown in the previous example, and removes them from memory:
Stopping docker-compose_transform-core-aio_1 ... done ... Stopping docker-compose_digital-workspace_1 ... done Removing docker-compose_transform-core-aio_1 ... done ... Removing docker-compose_digital-workspace_1 ... done Removing network docker-compose_default
-
You can use a few more commands to explore the services when they’re running. Change directory to
docker-compose
before running these:-
Stop all the running containers:
docker-compose stop
-
Restart the containers (after using the
stop
command):docker-compose restart
-
Starts the containers that were started with
docker-compose up
:docker-compose start
-
Stop all running containers, and remove them and the network:
docker-compose down [--rmi all]
The
--rmi all
option also removes the images created bydocker-compose up
, and the images used by any service. You can use this, for example, if any containers fail and you need to remove them.
-
See the Docker documentation for more on getting started with Docker and using Docker.
Install with zip
Use these instructions to install Transform Service using the distribution zip to an instance of Content Services.
The Transform Service distribution zip file includes all the files required to provide the Transform Service capabilities. Ensure that you’ve installed the prerequisites before continuing, for more see Install Transform Service.
-
Browse to Hyland Community and download
alfresco-transform-service-distribution-1.2.x.zip
. -
Extract the zip file into a system directory; for example,
<installLocation>/
.In this directory you’ll see the following content including three runnable JAR files:
alfresco-shared-file-store-controller-x.y.z.jar
alfresco-transform-core-aio-boot-x.y.z.jar
alfresco-transform-router.1.2.0.jar
README.md
-
Start Active MQ.
For example, run the following command from the ActiveMQ installation directory:
bin/activemq start
For more information on installing and configuring ActiveMQ, see Configure ActiveMQ.
Check the output to ensure that it starts successfully.
Make a note of the TCP URL, with example format
tcp://server:port
, where server is the host name of the server where ActiveMQ is installed. This is used in later steps.Content Services uses ActiveMQ for message queuing with various products, including the Transform Service.
-
Start the Shared File Store controller:
java -DfileStorePath=/path/to/your/AlfrescoFileStore -jar alfresco-shared-file-store-controller-x.y.z.jar
Check the output to ensure that it starts successfully.
By default, files are stored in
fileStorePath=/tmp/Alfresco
. This can be modified using thefileStorePath
parameter as shown in the above example.The Shared File Store allows components such as the repository, and the Transform Service to share a common place to store and retrieve files, for example, to enable transforms from an input source file to an output target file.
-
Start the all-in-one Transform Core Engine Spring Boot app:
java -DPDFRENDERER_EXE="<alfresco-pdf-renderer_installation_dir>/alfresco-pdf-renderer" -DLIBREOFFICE_HOME="<libreoffice_installation_dir>" -DIMAGEMAGICK_ROOT="<imagemagick_installation_dir>" -DIMAGEMAGICK_DYN="<imagemagick_installation_dir>/lib" -DIMAGEMAGICK_EXE="<imagemagick_installation_dir>/bin/convert" -DACTIVEMQ_URL=failover:(tcp://server:61616)?timeout=3000 -DFILE_STORE_URL=http://localhost:8099/alfresco/api/-default-/private/sfs/versions/1/file -jar alfresco-transform-core-aio-boot-x.y.z.jar
Note: LibreOffice, ImageMagick and Alfresco PDF Renderer binaries needs to be installed on the server where the all-in-one core T-Engine is setup. See the Prerequisites for more details. You may need to change the paths depending on your operating system.
Check the output to ensure that it starts successfully.
The all-in-one core T-Engine combines the five T-Engines (i.e. LibreOffice, ImageMagick, Alfresco PDF Renderer, Tika, and Misc) into one single engine. All functionality that’s available in the five T-Engines is available in the all-in-one core T-Engine. The command-line options provide the paths to the installation locations and the URL of the messaging broker.
-
Start the Transform Router Spring Boot app:
java -DCORE_AIO_URL=http://localhost:8090 -DCORE_AIO_QUEUE=org.alfresco.transform.engine.aio.acs -DACTIVEMQ_URL=failover:(tcp://server:61616)?timeout=3000 -DFILE_STORE_URL=http://localhost:8099/alfresco/api/-default-/private/sfs/versions/1/file -jar alfresco-transform-router-1.2.0.jar
Check the output to ensure that it starts successfully.
The Transform Router allows simple (single-step) and pipeline (multi-step) transforms that are passed to the Transform Engines. The command-line options provide the router with the required data for T-Engines, queuing, and file-store URL.
-
Set the following properties in the
<TOMCAT_HOME>/shared/classes/alfresco-global.properties
file:# ActiveMQ properties: messaging.broker.url=failover:(tcp://server:61616)?timeout=3000 messaging.broker.username=$MQUSER messaging.broker.password=$MQPASS # Shared File Store properties: sfs.url=http://localhost:8099 sfs.endpoint=${sfs.url}/alfresco/api/-default-/private/sfs/versions/1 # Transform Router properties: transform.service.enabled=true transform.service.url=http://<Transform Service host>:8095/ # Transform Core properties: localTransform.core-aio.url=http://<Transform Service host>:8090/
This overrides the default properties provided by Content Services.
Note: Any changes to
alfresco-global.properties
require you to restart Content Services to apply the updates. See the Content Services documentation Using alfresco-global.properties for more information. -
Check that the configuration is set up correctly for your environment.
-
Restart Content Services.
-
Ensure that the environment is up and running:
1.Check the logs for Content Services startup.
2.Monitor ActiveMQ by accessing the Web Console, e.g.
http://localhost:8161/admin/
.3.Temporarily enable
TransformDebug
in the repository if you want to see detailed debug log entries.4.Navigate to Digital Workspace or Share, and upload a file (such as a
.jpg
,.png
,.docx
etc.).
- Check the logs to see the metadata and work performed for the uploaded file. These should be available in the Spring Boot apps:
alfresco-transform-router
alfresco-transform-core-aio
Files should also be available in the specified path for the alfresco-shared-file-store
. However, these files will only temporarily appear in the Shared File Store until explicitly deleted by the repository and/or expired and cleaned up.