Skip to content

Commit

Permalink
ram and cpu default change
Browse files Browse the repository at this point in the history
  • Loading branch information
abdallah-abdelnaby committed Sep 4, 2024
1 parent 81809e3 commit c3650b1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
7 changes: 4 additions & 3 deletions goobi_operandi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ submit_job() {
process_with_local_ocrd() {

WORKSPACE_DIR_LOCAL="$WORKSPACE_DIR"_local/data
WS_LOCAL_OCRD_PATH="/data/$(PROCESS_TITLE)_local/data"
WS_LOCAL_OCRD_PATH="/data/"$PROCESS_TITLE"_local/data"
METS_SERVER_LOG="${WS_LOCAL_OCRD_PATH}/mets_server.log"
SOCKET_PATH="${WS_LOCAL_OCRD_PATH}/mets_server.sock"
unzip -o "$WORKSPACE_DIR".ocrd.zip -d "$WORKSPACE_DIR"_local
Expand Down Expand Up @@ -421,9 +421,10 @@ upload_to_ola_hd() {
}
# Function to handle results for kitodo
handle_results() {
echo "Process title is $PROCESS_TITLE"
unzip -o "$OCRD_RESULTS" -d "$WORKSPACE_DIR"_results
mkdir -p $PARENT_WORKSPACE/ocr/$(PROCESS_TITLE)_alto
mv -f "$WORKSPACE_DIR"_results/data/*ALTO*/* $PARENT_WORKSPACE/ocr/$(PROCESS_TITLE)_alto/
mkdir -p $PARENT_WORKSPACE/ocr/"$PROCESS_TITLE"_alto
mv -f "$WORKSPACE_DIR"_results/data/*ALTO*/* $PARENT_WORKSPACE/ocr/"$PROCESS_TITLE"_alto/
echo "$OCRD_RESULTS" > "$PARENT_WORKSPACE/.ocrd_results_path"

}
Expand Down
4 changes: 2 additions & 2 deletions kitodo_operandi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ WORKFLOW="default_workflow.nf"
METS_URL=""
IMAGE_DIR=$(pwd)/images
EXT="jpg"
CPUs=4
RAM=8
CPUs=8
RAM=64
ZIP=""
workflow_id="default_workflow"
LOCAL_OCRD=false
Expand Down
6 changes: 3 additions & 3 deletions script_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ WORKFLOW="default_workflow.nf"
METS_URL=""
IMAGE_DIR=$(pwd)/images
EXT="jpg"
CPUs=4
RAM=8
CPUs=8
RAM=64
ZIP=""
workflow_id="default_workflow"
LOCAL_OCRD=false
Expand Down Expand Up @@ -349,7 +349,7 @@ submit_job() {
process_with_local_ocrd() {

WORKSPACE_DIR_LOCAL="$WORKSPACE_DIR"_local/data
WS_LOCAL_OCRD_PATH="/data/$(PROCESS_TITLE)_local/data"
WS_LOCAL_OCRD_PATH="/data/"$PROCESS_TITLE"_local/data"
METS_SERVER_LOG="${WS_LOCAL_OCRD_PATH}/mets_server.log"
SOCKET_PATH="${WS_LOCAL_OCRD_PATH}/mets_server.sock"
unzip -o "$WORKSPACE_DIR".ocrd.zip -d "$WORKSPACE_DIR"_local
Expand Down
4 changes: 2 additions & 2 deletions script_native.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ WORKFLOW=""
METS_URL=""
IMAGE_DIR=$(pwd)/images
EXT="jpg"
CPUs=4
RAM=8
CPUs=8
RAM=64
ZIP=""
workflow_id="default_workflow"
LOCAL_OCRD=false
Expand Down

0 comments on commit c3650b1

Please sign in to comment.