forked from IBM/CodeEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun
More file actions
executable file
·19 lines (15 loc) · 727 Bytes
/
run
File metadata and controls
executable file
·19 lines (15 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
set -e
uuid=$(uuidgen | tr '[:upper:]' '[:lower:]' | awk -F- '{print $1}')
echo ibmcloud code-engine fleet create
echo " " --name "fleet-${uuid}-1"
echo " " --tasks-state-store fleet-task-store
echo " " --subnetpool-name fleet-subnetpool
echo " " --image registry.access.redhat.com/ubi9/ubi-minimal:latest
echo " " --command="sleep"
echo " " --arg "60"
echo " " --tasks 1
echo " " --cpu 2
echo " " --memory 4G
echo " " --max-scale 1
ibmcloud code-engine fleet create --name "fleet-${uuid}-1" --tasks-state-store fleet-task-store --subnetpool-name fleet-subnetpool --image registry.access.redhat.com/ubi9/ubi-minimal:latest --max-scale 1 --command="sleep" --arg "60" --tasks 1 --cpu 2 --memory 4G