Premium self-hosted bundle - Hyperlinking service container
Deploy the TinyMCE hyperlinking server-side component using Docker (self-hosted enterprise bundles)
The TinyMCE hyperlinking server-side component can be deployed using Docker or a container orchestration application such as Kubernetes. Tiny provides a pre-configured package for creating a Hyperlinking Docker image.
Do not push this docker image to a publicly accessible container registry. Doing so will constitute a breach of the Tiny Self-Hosted Software License Agreement, including: |
Procedure
The following procedure covers downloading, configuring, building and testing the TinyMCE Hyperlinking Docker image.
This procedure assumes that a TinyMCE self-hosted enterprise bundle has been extracted as described in Download and extract the TinyMCE Self-hosted Bundle. |
-
Navigate into the
tinymce-services
folder.cd tinymce-selfhosted/tinymce-services/
-
Extract the contents of
ephox-hyperlinking-docker-starter-kit.zip
, such as:unzip ephox-hyperlinking-docker-starter-kit.zip -d hyperlinking-service-dockerfile
The structure of the extracted files will be:
hyperlinking-service-dockerfile/ ├── config │ └── ephox-hyperlinking-docker-env.conf ├── docker-entrypoint.sh ├── Dockerfile └── generate-jetty-start.sh
-
Copy
ephox-hyperlinking.war
into the directory containing the extracted files, such as:cp ephox-hyperlinking.war hyperlinking-service-dockerfile/
-
Navigate into the
hyperlinking-service-dockerfile
folder.cd hyperlinking-service-dockerfile
-
Set the permissions on the extracted files to executable.
chmod +x *.sh
-
Optional: Edit the
http
configuration settings inconfig/ephox-hyperlinking-docker-env.conf
. The configurable settings are in thehttp
section of the file. For example:http { max-connections = 100 max-connections-per-host = 10 max-redirects = 10 max-retries = 3 request-timeout-seconds = 10 trust-all-cert = false websphere = { use-ssl-config = true } }
For information on the
http
configuration setting, see: Configure server-side components -http
. -
Optional: Update the link-checking cache configuration, as described in Link Checker self-hosted quick setup.
-
Optional: Configure the Enhanced Media Embed Service, as described in Configure Enhanced Media Embed Server.
-
Optional: Configure the service to use a HTTP proxy by updating
config/ephox-hyperlinking-docker-env.conf
. See: Configure server-side components - proxy. -
Create an
origins.env
file in the same directory as theDockerfile
, and specify the Hypertext Transfer Protocol (HTTP) and domain name of sites hosting the TinyMCE editor (allowed-origins
). Up to 99 origins can be added without editingconfig/ephox-hyperlinking-docker-env.conf
.For example:
ORIGIN0=example.net ORIGIN1=example ORIGIN2=http://example.org
For information on
allowed-origins
, see: Configure server-side components - allowed-origins. -
As the root user or Administrator, build the TinyMCE Hyperlinking Docker image using the following command:
docker build -t tinymce-hyperlinking-service .
-
As the root user or Administrator, deploy the service using the following command:
docker run -d -p 8083:8080 --env-file origins.env tinymce-hyperlinking-service
Where:
-
-p 8083:8080
maps the container port8080
to local port8083
. -
--env-file origins.env
adds the allowed origins to the container.
-
-
To verify that the Docker container is deployed and the hyperlinking service is running, execute:
curl http://localhost:8083/ephox-hyperlinking/
The response from the
curl
command should be:Link checking and media embedding service is running.
The TinyMCE Hyperlinking Docker image can now be pushed to a private container registry for deployment on Kubernetes, Docker Swarm or OpenShift.