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

Commit

Permalink
Sample Service Account file for GCP auth inside docker (#109)
Browse files Browse the repository at this point in the history
Sample Service Account file for GCP auth inside docker
  • Loading branch information
diogoaihara committed Oct 20, 2022
1 parent d379bee commit 5a0df4f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
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": ""
}

0 comments on commit 5a0df4f

Please sign in to comment.