Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear instructions for docker use for regular home user #1

Open
dasb00ter opened this issue Jun 21, 2023 · 4 comments
Open

Clear instructions for docker use for regular home user #1

dasb00ter opened this issue Jun 21, 2023 · 4 comments
Assignees
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@dasb00ter
Copy link

Thanks for continuing to continue the torch after gmvault seems to have been abandoned.

I like that you described a flow for auth for your docker container for Auth but I am still a little unsure of exactly what to do especially in terms of ports and addresses to get proper authorization to my simple regular/free user gmail account. I assume the complication is that a browser cannot be opened for confirmation and that the browser is in fact being opened from the same origin as the request for auth.

I have looked at your instruction for just running not in docker and its helpful but I am not quite getting it.

Can you throw me a bone with nooby instructions. I think gmvault has over a million pulls so you could be helping quite a few people especially if your auth system is easier than that current situation
thanks for reading

@kamarton kamarton self-assigned this Jun 22, 2023
@kamarton kamarton added documentation Improvements or additions to documentation help wanted Extra attention is needed labels Jun 22, 2023
@kamarton
Copy link
Contributor

@dasb00ter Within a day or two, I will write a more detailed description this workflow.

@dasb00ter
Copy link
Author

Thanks for your time

@kamarton
Copy link
Contributor

kamarton commented Jul 4, 2023

@dasb00ter

  1. create .data directory with your credentials JSON
.data
.data/my-cred-app.json
  1. this script starting a temporary container and show the authorization URL
docker run -it --rm -p "127.0.0.1:43339:43339" -v "$(pwd)/.data:/data" -e GWBACKUPY_CREDENTIALS_FILEPATH="/data/my-cred-app.json" -e GWBACKUPY_ACCOUNT_EMAILS="mygmail@gmail.com" -e GWBACKUPY_OAUTH_REDIRECT_HOST=127.0.0.1 smartondev/gwbackupy /bin/bash access-init.sh
  1. copy URL and paste to a browser on same PC
  2. allow access in browser
  3. the google server redirect page to http://127.0.0.1:43339/... (gwbackupy script)
  4. if success then show mygmail@gmail.com account auth check successful for gmail service
  5. The script given in point 3. automatically deletes the container after the operation, but the data remains in the .data folder.

After that, you can start a always running container.

docker run -d -v "$(pwd)/.data:/data" --restart always -e GWBACKUPY_CREDENTIALS_FILEPATH="/data/my-cred-app.json" -e GWBACKUPY_ACCOUNT_EMAILS="mygmail@gmail.com" smartondev/gwbackupy

@dasb00ter
Copy link
Author

Thanks so much I'll have a look on my days off

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants