Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
fix readme and only deploy tagged releases to docker
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed Aug 14, 2019
1 parent 171cd2b commit 2ca8606
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ matrix:
- provider: script
script: bash ./build-docker.sh
on:
all_branches: true
# tags: true
tags: true
install:
- pip install .
- pip install codecov
Expand Down
27 changes: 11 additions & 16 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -150,30 +150,25 @@ For a description of additional command line parameters type::
gphotos-sync --help

Running with docker
------------------
-------------------

You can run the tool from the container using [prebuilt Docker image](https://hub.docker.com/r/gilesknap/gphotos-sync). The container
has a 2 mount points:
- `/storage` - this is where your photos will be stored. You can mount single directory, or
multiple subdirectories in case you want to backup multiple accounts
- `/config` - the directory that contains `client_secret.json` file
- `/config` - the directory that contains `client_secret.json` file::

```
docker run \
-ti \
--name gphotos-sync \
-v /YOUR_LOCAL/PATH/TO_PHOTOS:/storage \
-v /YOUR_LOCAL/PATH/TO_CONFIG:/config \
gilesknap/gphotos-sync
/storage
```
docker run \
-ti \
--name gphotos-sync \
-v /YOUR_LOCAL/PATH/TO_PHOTOS:/storage \
-v /YOUR_LOCAL/PATH/TO_CONFIG:/config \
gilesknap/gphotos-sync
/storage

To remove the container (for instance if you want to run it on scheduled basis and do a cleanup):

```
docker rm -f $(docker ps --filter name=gphotos-sync -qa) 2> /dev/null
```
To remove the container (for instance if you want to run it on scheduled basis and do a cleanup)::

docker rm -f $(docker ps --filter name=gphotos-sync -qa) 2> /dev/null

Appendix
========
Expand Down

0 comments on commit 2ca8606

Please sign in to comment.