Sign inSign up

gvfn/gdrive

By gvfn

•Updated about 6 years ago

Image
0

1.1K

gvfn/gdrive repository overview

⁠Docker GDrive

build_status github license github issues github last commit github repo size docker stars docker pulls

This is docker image Gdrive⁠ that allows you to interact with google drive api v3.

⁠Before you use

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.
  • Share your google drive files with your new service account. It's id should be <YOU SPECIFIED>@governance-foundation.iam.gserviceaccount.com.

⁠Running

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.

Tag summary

Content type

Image

Digest

Size

7.1 MB

Last updated

about 6 years ago

docker pull gvfn/gdrive