Skip to content

Commit e651b83

Browse files
committed
Merge branch 'development'
2 parents d67312e + 102a3b8 commit e651b83

File tree

4 files changed

+30
-179
lines changed

4 files changed

+30
-179
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:22.04
1+
FROM ubuntu:24.04
22

33
ARG WEB_SERVER_PORT=8080
44
ARG WEB_SERVER_SSL_PORT=8443
@@ -101,7 +101,7 @@ ENV ACCESS_KEY=${ACCESS_KEY}
101101
RUN apt-get update && \
102102
apt-get upgrade -y perl && \
103103
apt-get install -y --no-install-recommends nginx default-jre wget && \
104-
apt-get clean && apt-get upgrade -y openssl && \
104+
apt-get clean && \
105105
rm -rf /var/lib/apt/lists/* && \
106106
rm -rf /etc/nginx/sites-enabled/default /var/www/html/* && \
107107
rm -rf /var/log/nginx/* && \

Dockerfile.centos

Lines changed: 0 additions & 159 deletions
This file was deleted.

Dockerfile.redhat

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,16 @@ ENV ENABLE_REQUEST_VALIDATION=false
9797
ENV ACCESS_KEY=${ACCESS_KEY}
9898

9999
RUN yum update -y --skip-broken && \
100-
yum install -y http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \
100+
yum module enable nginx:1.24 -y && \
101101
yum install -y nginx \
102-
java-11-openjdk-devel \
102+
java-17-openjdk-devel \
103103
perl \
104-
mod_ssl \
105-
openssl \
106-
wget \
107-
vim \
108-
nano && \
104+
wget && \
105+
yum remove -y webkit2gtk3-jsc \
106+
python-setuptools \
107+
python-urllib3 \
108+
python-idna \
109+
python-requests && \
109110
yum clean all && rm -rf /var/cache/yum && \
110111
rm -rf /etc/nginx/conf.d/default.conf /usr/share/nginx/html/* && \
111112
rm -rf /var/log/nginx/* && \
@@ -150,6 +151,11 @@ RUN chown -R ${USER_ID}:${GROUP_ID} /var/log/nginx \
150151
/var/run/nginx \
151152
/etc/nginx
152153

154+
RUN yum remove -y wget && \
155+
yum clean all && rm -rf /var/cache/yum && \
156+
rm -rf /tmp/* && \
157+
rm -rf /var/tmp/*
158+
153159
USER $USER_NAME
154160

155161
WORKDIR $APP_SERVER_DIR

README.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
11
# WebSpellChecker/WProofreader Docker
22

3-
This is a Docker configuration that you can use to build a WebSpellChecker/WProofreader Server image based on the [Ubuntu Server 22.04](https://hub.docker.com/_/ubuntu), [CentOS Linux 7](https://hub.docker.com/_/centos) or [Red Hat Universal Base Image 8](https://hub.docker.com/r/redhat/ubi8) using `Dockerfile`, `Dockerfile.centos`, `Dockerfile.redhat`, respectively.
3+
This repository provides Docker configurations to build a WebSpellChecker/WProofreader Server image using [Ubuntu Server 22.04](https://hub.docker.com/_/ubuntu) or [Red Hat Universal Base Image 9](https://hub.docker.com/r/redhat/ubi9). Use `Dockerfile` for Ubuntu or `Dockerfile.redhat` for Red Hat.
44

5-
All configurations use **NGINX** as a default web server for processing static files and service requests.
5+
Additionally, `Dockerfile.ubuntu-prebuilt` leverages a prebuilt Docker image with WProofreader Server pre-installed on Ubuntu, available on Docker Hub since v5.30.0. This public [Docker image with WebSpellChecker/WProofreader Server](https://hub.docker.com/r/webspellchecker/wproofreader) includes pre-configured languages and settings, and can be used for both evaluation and production with necessary modifications to fit your specific requirements.
66

7-
**Note!** For evaluation purposes, you can also use a [Docker image with WebSpellChecker/WProofreader Server](https://hub.docker.com/r/webspellchecker/wproofreader) that we built and published on Docker Hub.
7+
All configurations use **NGINX** as a default web server for processing static files and service requests.
88

9-
Before you begin, make sure you've acknowledged the [installation requirements](https://docs.webspellchecker.com/display/WebSpellCheckerServer55x/Installation+requirements).
9+
Before you begin, make sure you meet the [installation requirements](https://docs.webspellchecker.com/display/WebSpellCheckerServer55x/Installation+requirements).
1010

1111
## Create Docker image
1212

13-
For production purposes, it's recommended to create a custom Docker image. There are two approaches that you can consider: building using an installation package provided at the request by the support team or from a premade Docker image (available since v5.30.0).
13+
For production, create a custom Docker image using either an installation package provided by the support team or a prebuilt Docker image.
1414

1515
The general procedure is as follows:
1616

1717
1. Clone [WProofreader Docker repo](https://github.com/WebSpellChecker/wproofreader-docker/releases). If you already have a package that you would like to use for the installation, make sure that the WProofreader Docker release version matches that of the package. The version is specified in its name: wsc_app_x64_**5.X.X**.x_xx.tar.gz. **NOTE!** Both the package and Dockerfile versions should match as certain configuration features require appropriate changes in the application itself.
1818
If, on the other hand, you would like to use a prebuilt Docker image, choose the same version, as the app version you would like to have installed (e.g. latest).
19-
2. For the installation that uses a package, copy the file (e.g. `wsc_app_x64_5.x.x.x_xx.tar.gz`) to `wproofreader-docker/files` directory. Such an installation package can be requested via [contact us form](https://webspellchecker.com/contact-us/). If you are using a prebuilt image, skip this step.
20-
3. Tailor the installation to your needs by editing one of the Dockerfiles. Choose [Dockerfile](Dockerfile), [Dockerfile.centos](Dockerfile.centos), or [Dockerfile.redhat](Dockerfile.redhat) for installations from a package. If you're leveraging a prebuilt image from DockerHub, modify [Dockerfile.ubuntu-prebuilt](Dockerfile.ubuntu-prebuilt):
19+
20+
2. If using an installation package, copy the file (e.g. `wsc_app_x64_5.x.x.x_xx.tar.gz`) to the `wproofreader-docker/files` directory. You can request an installation package via the [contact us form](https://webspellchecker.com/contact-us/). If using a prebuilt image, skip this step.
21+
22+
3. Tailor the installation by editing one of the Dockerfiles:
23+
- For installations from a package, edit [Dockerfile](Dockerfile) or [Dockerfile.redhat](Dockerfile.redhat).
24+
- For a prebuilt image from Docker Hub, edit [Dockerfile.ubuntu-prebuilt](Dockerfile.ubuntu-prebuilt):
2125

2226
```
2327
ARG PROTOCOL=2
@@ -33,7 +37,7 @@ ARG INSTALL_SAMPLES=1
3337
ARG LANGUAGES=en_US,en_GB,en_CA,en_AU
3438
ARG AI_MODELS=1,2
3539
```
36-
where `LANGUAGES` accepts a comma-separated list of language IDs, `AI_MODELS` – a list of AI models to be included, provided that a compatible language is installed. For example, if you select at least one of the compatible English language IDs, you will be able to install English language model for enhanced text correction. The options for `AI_MODELS` parameter are:
40+
where `LANGUAGES` accepts a comma-separated list of language IDs, `AI_MODELS` – a list of AI models to be included, provided that a compatible language is installed. For example, if you select at least one of the compatible English language IDs, you will be able to install the English language model for enhanced text correction. The options for `AI_MODELS` parameter are:
3741
1. English language model
3842
2. English autocomplete model
3943
3. German language model
@@ -53,7 +57,7 @@ ARG DOMAIN_NAME = DOMAIN_NAME
5357

5458
If `LICENSE_TICKET_ID` was specified during the image creation, you don't need to specify it during the launch of `docker run` command.
5559

56-
* If you are using a proxy server to handle inbound/outbound traffic to your network, for the automated license activation step, the following proxy settings must be added.
60+
* If using a proxy server for network traffic, add the following proxy settings for automated license activation:
5761

5862
```
5963
ARG ENABLE_PROXY=1
@@ -209,7 +213,7 @@ After the successful launch of a container with the app (and the license activat
209213
}
210214
```
211215

212-
* Demo samples: http://localhost/wscservice/samples/
216+
* Getting started http://localhost/wscservice/ as well as the demo samples: http://localhost/wscservice/samples/ pages can be accessed from the browser.
213217

214218

215219
## Working with container
@@ -272,7 +276,7 @@ services:
272276
273277
Notes:
274278
1. If you have a license key, pass it as an environment variable like that:
275-
``` - LICENSE_TICKET_ID=<your Licence ID>```
279+
``` - LICENSE_TICKET_ID=<your License ID>```
276280
The server will be activated automatically upon startup.
277281
2. This deploys the WProofreader Server working with HTTP protocol. To use it over HTTPS please change the following sections to:
278282
```yaml

0 commit comments

Comments
 (0)