Skip to content

Commit a338867

Browse files
authored
Merge branch 'main' into dependabot/pip/paramiko-4.0.0
2 parents b037142 + 717e7f1 commit a338867

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

cob_datapipeline/scripts/ingest_gencon.sh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,13 @@
22

33
set -eo pipefail
44

5-
# export / set all environment variables passed here by task for pick-up by subprocess
6-
export AIRFLOW_USER_HOME="/home/airflow"
7-
export HOME=$AIRFLOW_USER_HOME
8-
95
source $HOME/.bashrc
106

11-
export PATH="$AIRFLOW_USER_HOME/.local/bin:$PATH"
12-
export PATH="$AIRFLOW_USER_HOME/.rbenv/shims:$AIRFLOW_USER_HOME/.rbenv/bin:$PATH"
13-
7+
# Insert solr username and password into URL
148
export SOLR_URL="${SOLR_WEB_URL//\/\////$SOLR_AUTH_USER:$SOLR_AUTH_PASSWORD@}"
15-
export GENCON_INDEX_PATH="$PWD/gencon_index"
169

1710
# Get the raw CSV files from S3
11+
mkdir -p $GENCON_TEMP_PATH
1812
aws s3 sync $GENCON_CSV_S3 $GENCON_TEMP_PATH --include "*.csv"
1913

2014
if [[ ! -d "$GENCON_INDEX_PATH" ]]; then

0 commit comments

Comments
 (0)