Skip to content

Commit

Permalink
chore: pin version
Browse files Browse the repository at this point in the history
  • Loading branch information
davidecavestro committed Jul 24, 2024
1 parent f8302ec commit 70cb4df
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ COPY repo /repo
WORKDIR /repo
RUN go build

FROM chromedp/headless-shell:latest
FROM chromedp/headless-shell:128.0.6601.2

LABEL org.opencontainers.image.source "https://github.com/davidecavestro/docker-gphotos-cdp"
LABEL org.opencontainers.image.description "Download photos and videos from your account without loosing geo-location attributes"
Expand Down
27 changes: 25 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ services:
```

## Schedule from your host crontab
### Schedule from your host crontab

Optionally configure cron, i.e. for me running `crontab -l` reveals:
```bash
0 20 * * * docker compose --project-name gphotos_family -f /path/to/gphotos/compose.yml up -d
```

## Schedule with chadburn
### Schedule with chadburn

I currently prefer scheduling from [chadburn](https://github.com/PremoWeb/chadburn) container

Expand Down Expand Up @@ -93,6 +93,29 @@ services:
```

## How to build locally

The Dockerfile currently builds gphotos-cdp from a locally cloned repo
(a fork with some customizations) but avoids actually cloning it, while
the automated build on GH has a dedicated clone step.

Locally I simply symlink the repo with `ln -s ../gphotos-cdp repo`
and resolve the link using tar `tar -ch . | docker build --progress plain --no-cache -t foo -`

Then I test it with

```bash
docker run \
--rm -it -u $(id -u):$(id -g) \
-e DEST_DIR=/dest \
-v $(pwd)/profile_famiglia:/tmp/gphotos-cdp/ \
-v $(pwd)/download:/download \
-v $(pwd)/dest:/dest \
-w /download \
--entrypoint /usr/local/bin/gphotos-cdp \
--cap-add=SYS_ADMIN foo \
-v -dev -headless -dldir /download -dltimeout 3 -run /usr/local/bin/save.sh
```

## Image project home

Expand Down

0 comments on commit 70cb4df

Please sign in to comment.