Skip to content

Commit

Permalink
feat: use obsolete run.sh for vespa setup (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
olaughter authored Oct 23, 2023
1 parent 972cc55 commit 0aae86f
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions cli/run.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/bin/bash
set -e

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}"
echo Setting up for vespa

mkdir -p $(dirname $VESPA_KEY_LOCATION)
echo ${VESPA_PRIVATE_KEY} > ${VESPA_KEY_LOCATION}

mkdir -p $(dirname $VESPA_PUBLIC_CERT_LOCATION)
echo ${VESPA_PUBLIC_CERT} > ${VESPA_PUBLIC_CERT_LOCATION}

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

0 comments on commit 0aae86f

Please sign in to comment.