diff --git a/Dockerfile.philter b/Dockerfile.philter new file mode 100644 index 0000000..4cd4c37 --- /dev/null +++ b/Dockerfile.philter @@ -0,0 +1,24 @@ +FROM ubuntu:22.04 + +ARG PHILTER_VERSION + +RUN apt-get update && apt-get -y install openjdk-17-jre + +RUN mkdir -p /opt/philter/ssl \ + && mkdir -p /opt/philter/indexes \ + && mkdir -p /opt/philter/policies + +COPY ./README.md /opt/philter/ +COPY ./LICENSE.txt /opt/philter/ +COPY ./distribution/indexes /opt/philter/indexes/ +COPY ./distribution/policies /opt/philter/policies/ +COPY ./distribution/philter.properties /opt/philter/ + +ADD ./philter-app/target/philter.jar /opt/philter/ + +RUN chmod +x /opt/philter/philter.jar + +EXPOSE 8080 + +WORKDIR /opt/philter +CMD ["java", "-jar", "/opt/philter/philter.jar"] diff --git a/Dockerfile.philter-ui b/Dockerfile.philter-ui new file mode 100644 index 0000000..bc7b66e --- /dev/null +++ b/Dockerfile.philter-ui @@ -0,0 +1,15 @@ +FROM ubuntu:22.04 + +RUN apt-get update && apt-get -y install openjdk-17-jre + +COPY ./LICENSE.txt /opt/philter/ + +ADD ./philter-ui/target/philter-ui.jar /opt/philter/philter-ui.jar +COPY ./distribution/philter-ui.properties /opt/philter/philter-ui.properties + +RUN chmod +x /opt/philter/philter-ui.jar + +EXPOSE 9000 + +WORKDIR /opt/philter +CMD ["java", "-jar", "/opt/philter/philter-ui.jar"] diff --git a/distribution/policies/default.json b/distribution/policies/default.json index d2d8966..93e4378 100644 --- a/distribution/policies/default.json +++ b/distribution/policies/default.json @@ -1,5 +1,12 @@ { "name": "default", + "config": { + "splitting": { + "enabled": true, + "threshold": 384, + "method": "width" + } + }, "ignored": [], "identifiers": { "dictionaries": [], diff --git a/docker-compose.yaml b/docker-compose.yaml index d6b5357..f9923ba 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,6 +1,6 @@ services: ph-eye: - image: philterd/ph-eye:1.1.0 + image: philterd/ph-eye:1.2.0 ports: - "18080:5000" networks: @@ -11,7 +11,9 @@ services: philter: depends_on: - ph-eye - image: philterd/philter:2.7.0 + build: + context: . + dockerfile: Dockerfile.philter ports: - "8080:8080" volumes: @@ -23,7 +25,9 @@ services: philter-ui: depends_on: - philter - image: philterd/philter-ui:2.7.0 + build: + context: . + dockerfile: Dockerfile.philter-ui ports: - "9000:9000" networks: diff --git a/philter-api/pom.xml b/philter-api/pom.xml index 48294c7..d02fa7b 100644 --- a/philter-api/pom.xml +++ b/philter-api/pom.xml @@ -7,7 +7,7 @@ ai.philterd philter - 2.8.0-SNAPSHOT + 2.7.1 philter-api philter-api diff --git a/philter-app/pom.xml b/philter-app/pom.xml index 5142e18..be1a1b0 100644 --- a/philter-app/pom.xml +++ b/philter-app/pom.xml @@ -6,7 +6,7 @@ ai.philterd philter - 2.8.0-SNAPSHOT + 2.7.1 philter-app jar diff --git a/philter-configuration/pom.xml b/philter-configuration/pom.xml index e57dadd..369878d 100644 --- a/philter-configuration/pom.xml +++ b/philter-configuration/pom.xml @@ -4,7 +4,7 @@ philter ai.philterd - 2.8.0-SNAPSHOT + 2.7.1 philter-configuration philter-configuration diff --git a/philter-metrics/pom.xml b/philter-metrics/pom.xml index 3233b6d..d5cb3f8 100644 --- a/philter-metrics/pom.xml +++ b/philter-metrics/pom.xml @@ -4,7 +4,7 @@ philter ai.philterd - 2.8.0-SNAPSHOT + 2.7.1 philter-metrics philter-metrics diff --git a/philter-services/pom.xml b/philter-services/pom.xml index 1cfe2b7..5a1f7ae 100644 --- a/philter-services/pom.xml +++ b/philter-services/pom.xml @@ -4,7 +4,7 @@ philter ai.philterd - 2.8.0-SNAPSHOT + 2.7.1 philter-services philter-services diff --git a/philter-ui/pom.xml b/philter-ui/pom.xml index 82b5fed..591290b 100644 --- a/philter-ui/pom.xml +++ b/philter-ui/pom.xml @@ -4,7 +4,7 @@ ai.philterd philter - 2.8.0-SNAPSHOT + 2.7.1 philter-ui philter-ui diff --git a/pom.xml b/pom.xml index f923a31..f5742a5 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ philter ai.philterd pom - 2.8.0-SNAPSHOT + 2.7.1 philter https://www.philterd.ai Philter identifies and removes sensitive information in natural language text. @@ -93,7 +93,7 @@ 4.13.2 1.13.3 1.10.19 - 2.9.0 + 2.9.1 1.4.0 3.3.1 6.1.10