Orka Create: Wait for VM to be reachable before returning
Issue: #40 (closed)
Do not consider the "create" stage of the build complete until the VM has actually finished booting and is reachable on its SSH port.
For reference, at this stage it takes around 40seconds for the VM to boot.
What's the best way to test this MR?
Get your orka-cli token:
cat ~/.config/configstore/orka-cli.json | jq -r ".token"
Fill out your config.toml
Provider = "orka"
OS = "macos"
VMTag = "manual-qa"
[Orka]
BaseImage = "runner-12-20201203.img"
Cores = 3
Endpoint = "http://10.221.188.100"
Token = "token from orka-cli"
Connect to the VPN using the script in the orka
repository:
path-to-orka/scripts/vpn.sh
Run:
CUSTOM_ENV_CI_JOB_ID=$(date +%s) BUILD_FAILURE_EXIT_CODE=1 SYSTEM_FAILURE_EXIT_CODE=2 bash -c "go run cmd/autoscaler/main.go custom prepare && go run cmd/autoscaler/main.go custom cleanup"
Edited by Adrien Kohlbecker