Skip to content

Commit

Permalink
Add version-pinned yq
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiser committed Nov 15, 2023
1 parent 0f77b20 commit f092fae
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/deployments/validate_simcore_stack_yml.bash
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ export COMPOSE_FILE=simcore_stack.yml
export SETTINGS_BINARY_PATH=/home/scu/.venv/bin
export SERVICES_PREFIX=${PREFIX_STACK_NAME}
exit_code=0
for service in $(yq e '.services | keys | .[]' ${COMPOSE_FILE})
# Download version-pinned yq binary
python -c "import urllib.request,os,sys,urllib; f = open(os.path.basename(sys.argv[1]), 'wb'); f.write(urllib.request.urlopen(sys.argv[1]).read()); f.close();" https://github.com/mikefarah/yq/releases/download/v4.29.2/yq_linux_amd64
mv yq_linux_amd64 yq
chmod +x yq
_yq=$(realpath ./yq)
# start
for service in $(_yq e '.services | keys | .[]' ${COMPOSE_FILE})
do
export TARGETNAME=${service#"${SERVICES_PREFIX}"_}
# continue if the service == director since it doesnt have settings
Expand Down

0 comments on commit f092fae

Please sign in to comment.