This is docker image Gdrive that allows you to interact with google drive api v3.
Create are service account for your self to allow you uploading files without prompts.
Google Dashboard -> Library - Add this Google Drive API to your Google Dashboard.Google Dashboard -> Credentials - Then create a new Service Account in the IAM & Admin, before you leave click Create Key on account actions and download the file which you will use to access your google drive files.<YOU SPECIFIED>@governance-foundation.iam.gserviceaccount.com.To test container run following command:
In Powershell:
Set-Variable -Name "SERVICE_ACCOUNT_JSON" -Value (Get-Content test.json -Raw)
docker run --rm -v ${pwd}:/gdrive -e SERVICE_ACCOUNT_JSON=$SERVICE_ACCOUNT_JSON gvfn/gdrive --config /gdrive --service-account-evar SERVICE_ACCOUNT_JSON list
In Bash
export SERVICE_ACCOUNT_JSON=`cat test.json`
docker run --rm -v `pwd`:/gdrive -e SERVICE_ACCOUNT_JSON gvfn/gdrive --config /gdrive --service-account-evar SERVICE_ACCOUNT_JSON list
Your current folder will be mapped into /gdrive folder and SERVICE_ACCOUNT_JSON will be mapped directly into container for your google drive activities.
Content type
Image
Digest
Size
7.1 MB
Last updated
about 6 years ago
docker pull gvfn/gdrive