Skip to content

Commit

Permalink
DO NOT MERGE before remove this commit. Only for testing purposes
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Riobo <[email protected]>
  • Loading branch information
adrianriobo committed Oct 15, 2024
1 parent dfa2706 commit 8b61286
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions crc-builder/tkn/crc-builder-arm64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,16 @@ spec:
#!/bin/sh
set -x
connect_options() {
local options="-o StrictHostKeyChecking=no"
options="$options -o UserKnownHostsFile=/dev/null"
options="$options -o ServerAliveInterval=30"
options="$options -o ServerAliveCountMax=1200"
options="$options -o BatchMode=yes"
options="$options -o ConnectTimeout=3"
echo $options
}
cmd="podman run --rm --name crc-builder -d "
cmd+="-e DATALAKE_URL=$(cat /opt/s3-credentials/upload-url) "
cmd+="-e DATALAKE_ACCESS_KEY=$(cat /opt/s3-credentials/access-key) "
Expand All @@ -167,10 +177,10 @@ spec:
host=$(cat $(workspaces.pipelines-data.path)/rhel/host)
# Exec
ssh -i ${key} $username@$host "${cmd}"
ssh $(connect_options) -i ${key} $username@$host "${cmd}"
# Check logs
cmd="podman logs -f crc-builder "
ssh -i ${key} $username@$host "${cmd}"
ssh $(connect_options) -i ${key} $username@$host "${cmd}"
if [[ $? -ne 0 ]]; then
exit 1
Expand Down

0 comments on commit 8b61286

Please sign in to comment.