Skip to content

Commit

Permalink
Setting version to 2.7.1. Adding docker files. Adding split to defaul…
Browse files Browse the repository at this point in the history
…t profile.
  • Loading branch information
jzonthemtn committed Nov 20, 2024
1 parent d0bd831 commit b866ee4
Show file tree
Hide file tree
Showing 11 changed files with 61 additions and 11 deletions.
24 changes: 24 additions & 0 deletions Dockerfile.philter
Original file line number Diff line number Diff line change
@@ -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"]
15 changes: 15 additions & 0 deletions Dockerfile.philter-ui
Original file line number Diff line number Diff line change
@@ -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"]
7 changes: 7 additions & 0 deletions distribution/policies/default.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"name": "default",
"config": {
"splitting": {
"enabled": true,
"threshold": 384,
"method": "width"
}
},
"ignored": [],
"identifiers": {
"dictionaries": [],
Expand Down
10 changes: 7 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion philter-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>ai.philterd</groupId>
<artifactId>philter</artifactId>
<version>2.8.0-SNAPSHOT</version>
<version>2.7.1</version>
</parent>
<artifactId>philter-api</artifactId>
<name>philter-api</name>
Expand Down
2 changes: 1 addition & 1 deletion philter-app/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>ai.philterd</groupId>
<artifactId>philter</artifactId>
<version>2.8.0-SNAPSHOT</version>
<version>2.7.1</version>
</parent>
<artifactId>philter-app</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion philter-configuration/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>philter</artifactId>
<groupId>ai.philterd</groupId>
<version>2.8.0-SNAPSHOT</version>
<version>2.7.1</version>
</parent>
<artifactId>philter-configuration</artifactId>
<name>philter-configuration</name>
Expand Down
2 changes: 1 addition & 1 deletion philter-metrics/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>philter</artifactId>
<groupId>ai.philterd</groupId>
<version>2.8.0-SNAPSHOT</version>
<version>2.7.1</version>
</parent>
<artifactId>philter-metrics</artifactId>
<name>philter-metrics</name>
Expand Down
2 changes: 1 addition & 1 deletion philter-services/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<artifactId>philter</artifactId>
<groupId>ai.philterd</groupId>
<version>2.8.0-SNAPSHOT</version>
<version>2.7.1</version>
</parent>
<artifactId>philter-services</artifactId>
<name>philter-services</name>
Expand Down
2 changes: 1 addition & 1 deletion philter-ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>ai.philterd</groupId>
<artifactId>philter</artifactId>
<version>2.8.0-SNAPSHOT</version>
<version>2.7.1</version>
</parent>
<artifactId>philter-ui</artifactId>
<name>philter-ui</name>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>philter</artifactId>
<groupId>ai.philterd</groupId>
<packaging>pom</packaging>
<version>2.8.0-SNAPSHOT</version>
<version>2.7.1</version>
<name>philter</name>
<url>https://www.philterd.ai</url>
<description>Philter identifies and removes sensitive information in natural language text.</description>
Expand Down Expand Up @@ -93,7 +93,7 @@
<junit.version>4.13.2</junit.version>
<micrometer.version>1.13.3</micrometer.version>
<mockito.version>1.10.19</mockito.version>
<phileas.version>2.9.0</phileas.version>
<phileas.version>2.9.1</phileas.version>
<philter.sdk.version>1.4.0</philter.sdk.version>
<spring.boot.version>3.3.1</spring.boot.version>
<spring.version>6.1.10</spring.version>
Expand Down

0 comments on commit b866ee4

Please sign in to comment.