Skip to content

Commit

Permalink
Add yq to the path
Browse files Browse the repository at this point in the history
  • Loading branch information
enolfc committed Aug 5, 2024
1 parent 3491e80 commit bd9b8e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions builder/build-image.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
#!/bin/sh
set -e
set -x

IMAGE="$1"
FEDCLOUD_SECRET_LOCKER="$2"

# create a virtual env for fedcloudclient
python3 -m venv "$PWD/.venv"
export PATH="$PWD/.venv/bin:$PATH"
pip install fedcloudclient simplejson
pip install fedcloudclient simplejson yq

TMP_SECRETS="$(mktemp)"
fedcloud secret get --locker-token "$FEDCLOUD_SECRET_LOCKER" \
Expand Down
1 change: 1 addition & 0 deletions builder/cloud-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ write_files:
cloud-init status >"/var/tmp/egi/$VM_ID"
[ -f /var/log/image-build.log ] && \
cat /var/log/image-build.log >>"/var/tmp/egi/$VM_ID"
export PATH="/var/tmp/egi/.venv/bin:$PATH"
# try 10 times, otherwise just die
builder/refresh.sh vo.access.egi.eu "$(cat /var/tmp/egi/.refresh_token)" images
retry -t 25 -d 200 -- openstack --os-cloud backend object create \
Expand Down

0 comments on commit bd9b8e8

Please sign in to comment.