Skip to content

Commit

Permalink
feat: Removed unused document-service (#645)
Browse files Browse the repository at this point in the history
* Removed unused document-service

* Bumped SDK version in root venv to unblock automated lock check

* Update pdm.lock for root

* Update pdm.lock for root

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Jaseem Jas <[email protected]>
  • Loading branch information
3 people authored Sep 5, 2024
1 parent 1f59635 commit a441eca
Show file tree
Hide file tree
Showing 25 changed files with 61 additions and 1,198 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci-container-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ on:
- 'backend/**'
- 'frontend/**'
- 'unstract/**'
- 'document-service/**'
- 'platform-service/**'
- 'x2text-service/**'
- 'worker/**'
Expand All @@ -26,7 +25,6 @@ on:
- 'backend/**'
- 'frontend/**'
- 'unstract/**'
- 'document-service/**'
- 'platform-service/**'
- 'x2text-service/**'
- 'worker/**'
Expand All @@ -52,7 +50,6 @@ jobs:
working-directory: ./docker
run: |
cp ../backend/sample.env ../backend/.env
cp ../document-service/sample.env ../document-service/.env
cp ../platform-service/sample.env ../platform-service/.env
cp ../prompt-service/sample.env ../prompt-service/.env
cp ../worker/sample.env ../worker/.env
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/production-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
service_name: [backend, frontend, document-service, platform-service, prompt-service, worker, x2text-service]
service_name: [backend, frontend, platform-service, prompt-service, worker, x2text-service]

steps:
- name: Checkout code for release
Expand Down
4 changes: 0 additions & 4 deletions backend/sample.env
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ PLATFORM_SERVICE_PORT=3001
UNSTRACT_RUNNER_HOST=http://unstract-runner
UNSTRACT_RUNNER_PORT=5002

# Document Service
DOCUMENT_PROCESSOR_URL=http://unstract-document-service:3002
DOCUMENT_PROCESSOR_API_KEY="0vpepz5CyzRIAKuy+9ZJXLOCXO+TYOAt+55M+ewxGMk="

# Workflow execution
WORKFLOW_DATA_DIR = "/data/execution"

Expand Down
7 changes: 0 additions & 7 deletions docker/docker-compose.build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,6 @@ services:
build:
dockerfile: docker/dockerfiles/platform.Dockerfile
context: ..
document-service:
profiles:
- optional
image: unstract/document-service:${VERSION}
build:
dockerfile: docker/dockerfiles/document.Dockerfile
context: ..
prompt-service:
image: unstract/prompt-service:${VERSION}
build:
Expand Down
17 changes: 0 additions & 17 deletions docker/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -203,23 +203,6 @@ services:
labels:
- traefik.enable=false

document-service:
profiles:
- optional
image: unstract/document-service:${VERSION}
container_name: unstract-document-service
restart: unless-stopped
ports:
- 3002:3002
depends_on:
- redis
env_file:
- ../document-service/.env
environment:
- ENVIRONMENT=development
labels:
- traefik.enable=false

volumes:
prompt_studio_data:
unstract_data:
Expand Down
1 change: 0 additions & 1 deletion docker/dockerfiles/backend.Dockerfile.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
test*.py

!backend
document-service
frontend
platform-service
prompt-service
Expand Down
58 changes: 0 additions & 58 deletions docker/dockerfiles/document.Dockerfile

This file was deleted.

64 changes: 0 additions & 64 deletions docker/dockerfiles/document.Dockerfile.dockerignore

This file was deleted.

1 change: 0 additions & 1 deletion docker/dockerfiles/frontend.Dockerfile.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ test*.py

backend
!frontend
document-service
platform-service
prompt-service
tools
Expand Down
1 change: 0 additions & 1 deletion docker/dockerfiles/platform.Dockerfile.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
test*.py

backend
document-service
frontend
!platform-service
prompt-service
Expand Down
1 change: 0 additions & 1 deletion docker/dockerfiles/prompt.Dockerfile.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
test*.py

backend
document-service
frontend
platform-service
!prompt-service
Expand Down
1 change: 0 additions & 1 deletion docker/dockerfiles/worker.Dockerfile.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
test*.py

backend
document-service
frontend
platform-service
prompt-service
Expand Down
1 change: 0 additions & 1 deletion docker/dockerfiles/x2text.Dockerfile.dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
test*.py

backend
document-service
frontend
platform-service
prompt-service
Expand Down
Loading

0 comments on commit a441eca

Please sign in to comment.