File tree Expand file tree Collapse file tree
docker-entrypoint-initdb.d Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ if os.getenv('DATABASE_STORAGE') == "s3":
2828
2929elif os .getenv ('DATABASE_STORAGE' ) == "gcs" :
3030 scopes = ['https://www.googleapis.com/auth/devstorage.full_control' ]
31- credentials = ServiceAccountCredentials .from_json_keyfile_name (os .getenv ('GS_APPLICATION_CREDS ' ), scopes = scopes )
32- with open (os .getenv ('GS_APPLICATION_CREDS ' )) as data_file :
31+ credentials = ServiceAccountCredentials .from_json_keyfile_name (os .getenv ('GOOGLE_APPLICATION_CREDENTIALS ' ), scopes = scopes )
32+ with open (os .getenv ('GOOGLE_APPLICATION_CREDENTIALS ' )) as data_file :
3333 data = json .load (data_file )
3434 conn = Client (credentials = credentials , project = data ['project_id' ])
3535 exists = True
Original file line number Diff line number Diff line change @@ -28,10 +28,10 @@ if [[ "$DATABASE_STORAGE" == "s3" || "$DATABASE_STORAGE" == "minio" ]]; then
2828 echo $AWS_REGION > AWS_REGION
2929 echo $BUCKET_NAME > BUCKET_NAME
3030elif [ " $DATABASE_STORAGE " == " gcs" ]; then
31- GS_APPLICATION_CREDS =" /var/run/secrets/deis/objectstore/creds/key.json"
31+ GOOGLE_APPLICATION_CREDENTIALS =" /var/run/secrets/deis/objectstore/creds/key.json"
3232 BUCKET_NAME=$( cat /var/run/secrets/deis/objectstore/creds/database-bucket)
3333 echo " gs://$BUCKET_NAME " > WALE_GS_PREFIX
34- echo $GS_APPLICATION_CREDS > GS_APPLICATION_CREDS
34+ echo $GOOGLE_APPLICATION_CREDENTIALS > GOOGLE_APPLICATION_CREDENTIALS
3535 echo $BUCKET_NAME > BUCKET_NAME
3636elif [ " $DATABASE_STORAGE " == " azure" ]; then
3737 WABS_ACCOUNT_NAME=$( cat /var/run/secrets/deis/objectstore/creds/accountname)
You can’t perform that action at this time.
0 commit comments