Skip to content

Commit

Permalink
Use volume from core for ocrd_all docker tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joschrew committed Feb 15, 2024
1 parent be6b11b commit 7885382
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 27 deletions.
2 changes: 1 addition & 1 deletion core
27 changes: 10 additions & 17 deletions tests/network/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
volumes:
ocrd-test-workspace: {}

services:
ocrd_network_processing_server:
image: ocrd/core:v2.62.0
image: ocrd/core
build: !reset null
volumes:
- "ocrd-test-workspace:/data"

ocrd_network_core_test:
build:
context: ../../../core
args:
BASE_IMAGE: ubuntu:20.04
SKIP_ASSETS: 1
volumes:
- "${PWD}/tests/network/test-workflow-1.txt:/ocrd-data/assets/ocrd_all-test-workflow.txt"

ocrd_dummy_processing_worker:
build:
Expand All @@ -39,7 +32,7 @@ services:
volumes:
- ${OCRD_NETWORK_LOGS_ROOT}:/ocrd-data/ocrd_network_logs
- ${OCRD_NETWORK_SOCKETS_ROOT}:/ocrd-data/ocrd_network_sockets
- "ocrd-test-workspace:/data"
- ${OCRD_NETWORK_DATA}:/data
command: ocrd-olena-binarize worker --database ${MONGODB_URL} --queue ${RABBITMQ_URL}


Expand All @@ -58,7 +51,7 @@ services:
volumes:
- ${OCRD_NETWORK_LOGS_ROOT}:/ocrd-data/ocrd_network_logs
- ${OCRD_NETWORK_SOCKETS_ROOT}:/ocrd-data/ocrd_network_sockets
- "ocrd-test-workspace:/data"
- ${OCRD_NETWORK_DATA}:/data
command: ocrd-anybaseocr-crop worker --database ${MONGODB_URL} --queue ${RABBITMQ_URL}


Expand All @@ -77,7 +70,7 @@ services:
volumes:
- ${OCRD_NETWORK_LOGS_ROOT}:/ocrd-data/ocrd_network_logs
- ${OCRD_NETWORK_SOCKETS_ROOT}:/ocrd-data/ocrd_network_sockets
- "ocrd-test-workspace:/data"
- ${OCRD_NETWORK_DATA}:/data
command: ocrd-cis-ocropy-denoise worker --database ${MONGODB_URL} --queue ${RABBITMQ_URL}


Expand All @@ -96,7 +89,7 @@ services:
volumes:
- ${OCRD_NETWORK_LOGS_ROOT}:/ocrd-data/ocrd_network_logs
- ${OCRD_NETWORK_SOCKETS_ROOT}:/ocrd-data/ocrd_network_sockets
- "ocrd-test-workspace:/data"
- ${OCRD_NETWORK_DATA}:/data
command: ocrd-cis-ocropy-clip worker --database ${MONGODB_URL} --queue ${RABBITMQ_URL}


Expand All @@ -115,7 +108,7 @@ services:
volumes:
- ${OCRD_NETWORK_LOGS_ROOT}:/ocrd-data/ocrd_network_logs
- ${OCRD_NETWORK_SOCKETS_ROOT}:/ocrd-data/ocrd_network_sockets
- "ocrd-test-workspace:/data"
- ${OCRD_NETWORK_DATA}:/data
command: ocrd-cis-ocropy-segment worker --database ${MONGODB_URL} --queue ${RABBITMQ_URL}


Expand All @@ -134,7 +127,7 @@ services:
volumes:
- ${OCRD_NETWORK_LOGS_ROOT}:/ocrd-data/ocrd_network_logs
- ${OCRD_NETWORK_SOCKETS_ROOT}:/ocrd-data/ocrd_network_sockets
- "ocrd-test-workspace:/data"
- ${OCRD_NETWORK_DATA}:/data
command: ocrd-cis-ocropy-dewarp worker --database ${MONGODB_URL} --queue ${RABBITMQ_URL}


Expand All @@ -154,7 +147,7 @@ services:
volumes:
- ${OCRD_NETWORK_LOGS_ROOT}:/ocrd-data/ocrd_network_logs
- ${OCRD_NETWORK_SOCKETS_ROOT}:/ocrd-data/ocrd_network_sockets
- "ocrd-test-workspace:/data"
- ${OCRD_NETWORK_DATA}:/data
command: ocrd-tesserocr-segment-region worker --database ${MONGODB_URL} --queue ${RABBITMQ_URL}


Expand All @@ -174,7 +167,7 @@ services:
volumes:
- ${OCRD_NETWORK_LOGS_ROOT}:/ocrd-data/ocrd_network_logs
- ${OCRD_NETWORK_SOCKETS_ROOT}:/ocrd-data/ocrd_network_sockets
- "ocrd-test-workspace:/data"
- ${OCRD_NETWORK_DATA}:/data
command: ocrd-tesserocr-recognize worker --database ${MONGODB_URL} --queue ${RABBITMQ_URL}


Expand All @@ -193,6 +186,6 @@ services:
volumes:
- ${OCRD_NETWORK_LOGS_ROOT}:/ocrd-data/ocrd_network_logs
- ${OCRD_NETWORK_SOCKETS_ROOT}:/ocrd-data/ocrd_network_sockets
- "ocrd-test-workspace:/data"
- ${OCRD_NETWORK_DATA}:/data
command: ocrd-segment-repair worker --database ${MONGODB_URL} --queue ${RABBITMQ_URL}

9 changes: 0 additions & 9 deletions tests/network/test-workflow-1.txt

This file was deleted.

0 comments on commit 7885382

Please sign in to comment.