From 5130164c822d601ca2b6a57afb830204cb0aea5f Mon Sep 17 00:00:00 2001 From: jzonthemtn Date: Mon, 16 Sep 2024 17:21:44 -0400 Subject: [PATCH] Adding files to the distribution directory. --- distribution/example-filter.sh | 3 +++ distribution/status.sh | 2 ++ docker-compose.yaml | 3 +++ 3 files changed, 8 insertions(+) create mode 100755 distribution/example-filter.sh create mode 100755 distribution/status.sh diff --git a/distribution/example-filter.sh b/distribution/example-filter.sh new file mode 100755 index 0000000..f6edffe --- /dev/null +++ b/distribution/example-filter.sh @@ -0,0 +1,3 @@ +#!/bin/bash +curl -k "https://localhost:8080/api/filter" \ + --data "George Washington was president and his ssn was 123-45-6789 and he lived in 90210." -H "Content-type: text/plain" diff --git a/distribution/status.sh b/distribution/status.sh new file mode 100755 index 0000000..5f6a86c --- /dev/null +++ b/distribution/status.sh @@ -0,0 +1,2 @@ +#!/bin/bash +curl -k https://localhost:8080/api/status diff --git a/docker-compose.yaml b/docker-compose.yaml index e6a06dd..b18f571 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -13,6 +13,9 @@ services: - "8080:8080" networks: - philter + # runtime: nvidia + # environment: + # - NVIDIA_VISIBLE_DEVICES=all philter-ui: depends_on: - philter-ner