Skip to content

Commit

Permalink
feat: allow vespa secrets to be passed into container (#65)
Browse files Browse the repository at this point in the history
Co-authored-by: NextGenEng <[email protected]>
  • Loading branch information
olaughter and THOR300 authored Oct 19, 2023
1 parent e9aaa8a commit 972cc55
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cli/run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/bin/bash
set -e

python -m cli.index_data --s3 "${INDEXER_INPUT_PREFIX}"
if [[ -z ${VESPA_KEY_LOCATION} ]]; then
echo "VESPA_KEY_LOCATION not found"
else
mkdir -p $(dirname $VESPA_KEY_LOCATION)
echo ${VESPA_PRIVATE_KEY} > ${VESPA_KEY_LOCATION}
fi

python -m cli.index_data --s3 "${INDEXER_INPUT_PREFIX}"

0 comments on commit 972cc55

Please sign in to comment.