1313 PROJECT_NAME : exordos_core
1414 REPO_ENDPOINT_PUT : http://10.20.0.1:8082
1515 PACKER_VERSION : " 1.9.2"
16- CORE_ENDPOINT_URL : http://10.20.0.2:11010
16+ CORE_ENDPOINT_URL : http://10.20.0.2:80/api/core
1717 CORE_USERNAME : " admin"
1818 CORE_PASSWORD : " admin"
1919
3434 set -eux
3535 mkdir -p ${ARTIFACTS_PATH}
3636
37- source ~/.profile
3837 VERSION="$(exordos get-version .)"
3938
4039 # Build Exordos Core
@@ -64,13 +63,15 @@ jobs:
6463 with :
6564 version : ${{ env.PACKER_VERSION }}
6665 - name : Install exordos
67- run : curl -fsSL https://repo.exordos.com/install.sh | sudo sh
66+ run : curl -fsSL https://repo.exordos.com/install.sh | sh
6867 - name : set exordos config
6968 run : |
7069 exordos settings set-realm default --endpoint $CORE_ENDPOINT_URL
7170 exordos settings set-context default --name default --user $CORE_USERNAME --password $CORE_PASSWORD
7271 - name : Install hypervisor
73- run : sudo exordos compute hypervisors init
72+ run : |
73+ EXORDOS_BIN=$(which exordos)
74+ sudo $EXORDOS_BIN compute hypervisors init
7475 - name : Download build artifacts
7576 uses : actions/download-artifact@v8
7677 with :
@@ -83,14 +84,14 @@ jobs:
8384 - name : check exordos core
8485 timeout-minutes : 10
8586 run : |
86- # set -eux
87+ set -eux
8788
88- for i in {1..10 }; do
89+ for i in {1..20 }; do
8990 if exordos ready_api; then
9091 echo "Exordos Core API is ready"
9192 break
9293 fi
93- echo "Waiting for Exordos Core API... ($i/10 )"
94+ echo "Waiting for Exordos Core API... ($i/20 )"
9495 sleep 5
9596 done
9697
0 commit comments