Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Sample Service Account file for GCP auth inside docker #109

Merged
merged 2 commits into from
Oct 18, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deployment/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ do
IFS=' '
done

export GOOGLE_APPLICATION_CREDENTIALS=/app/megalista_dataflow/service-account-file.json
export GOOGLE_APPLICATION_CREDENTIALS=/app/service-account-file.json

echo "Activating virual environment (python)"
source virtual_env/bin/activate
Expand Down
12 changes: 12 additions & 0 deletions deployment/docker/service-account-file.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"type": "service_account",
"project_id": "",
"private_key_id": "",
"private_key": "",
"client_email": "",
"client_id": "",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": ""
}