-
Notifications
You must be signed in to change notification settings - Fork 151
Expand file tree
/
Copy pathrun
More file actions
executable file
·31 lines (26 loc) · 985 Bytes
/
run
File metadata and controls
executable file
·31 lines (26 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
set -e
uuid=$(uuidgen | tr '[:upper:]' '[:lower:]' | awk -F- '{print $1}')
IMAGE="quay.io/docling-project/docling-serve-cpu"
echo ibmcloud code-engine fleet create --name "fleet-${uuid}-1"
echo " " --tasks-state-store fleet-task-store
echo " " --subnetpool-name fleet-subnetpool
echo " " --image $IMAGE
echo " " --worker-profile mx3d-24x240
echo " " --max-scale 8
echo " " --tasks-from-local-file commands.jsonl
echo " " --cpu 12
echo " " --memory 120G
echo " " --mount-data-store /input=fleet-input-store:/docling
echo " " --mount-data-store /output=fleet-output-store:/docling
ibmcloud code-engine fleet create --name "fleet-${uuid}-1" \
--tasks-state-store fleet-task-store \
--subnetpool-name fleet-subnetpool \
--image $IMAGE \
--worker-profile mx3d-24x240 \
--max-scale 8 \
--tasks-from-local-file commands.jsonl \
--cpu 12 \
--memory 120G \
--mount-data-store /input=fleet-input-store:/docling \
--mount-data-store /output=fleet-output-store:/docling