Launch a Philter Docker Container
The Philter containers can be launched using the commands below.
docker run -it -p 8080:8080 mtnfog/philter:latest
Try it out!
With Philter now running we can take it for a spin. We will send some text to Philter and inspect at the response we get back. The Philter virtual machine running in your cloud account should have a public IP address (unless you customized the deployment). We will use that public IP address to interact with Philter.
Philter, by default, will be configured with an HTTPS listener on port
8080 using a self-signed certificate. It is recommended that prior to use in a production environment the self-signed certificate is replaced by a valid certificate owned by your organization.
In the command below, replace
<PUBLIC_IP> with the virtual machine’s public IP address or the host name or IP address of the Docker host.
curl -k -X POST https://localhost:8080/api/filter --data "George Washington was a patient and his SSN is 123-45-6789." -H "Content-type: text/plain"
curlto send text to Philter as in these examples but there are also SDKs you can use, too, to integrate Philter with your applications.