Skip to content

Commit 70cb4df

Browse files
chore: pin version
1 parent f8302ec commit 70cb4df

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ COPY repo /repo
55
WORKDIR /repo
66
RUN go build
77

8-
FROM chromedp/headless-shell:latest
8+
FROM chromedp/headless-shell:128.0.6601.2
99

1010
LABEL org.opencontainers.image.source "https://github.com/davidecavestro/docker-gphotos-cdp"
1111
LABEL org.opencontainers.image.description "Download photos and videos from your account without loosing geo-location attributes"

README.md

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ services:
4848
4949
```
5050

51-
## Schedule from your host crontab
51+
### Schedule from your host crontab
5252

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

58-
## Schedule with chadburn
58+
### Schedule with chadburn
5959

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

@@ -93,6 +93,29 @@ services:
9393
9494
```
9595

96+
## How to build locally
97+
98+
The Dockerfile currently builds gphotos-cdp from a locally cloned repo
99+
(a fork with some customizations) but avoids actually cloning it, while
100+
the automated build on GH has a dedicated clone step.
101+
102+
Locally I simply symlink the repo with `ln -s ../gphotos-cdp repo`
103+
and resolve the link using tar `tar -ch . | docker build --progress plain --no-cache -t foo -`
104+
105+
Then I test it with
106+
107+
```bash
108+
docker run \
109+
--rm -it -u $(id -u):$(id -g) \
110+
-e DEST_DIR=/dest \
111+
-v $(pwd)/profile_famiglia:/tmp/gphotos-cdp/ \
112+
-v $(pwd)/download:/download \
113+
-v $(pwd)/dest:/dest \
114+
-w /download \
115+
--entrypoint /usr/local/bin/gphotos-cdp \
116+
--cap-add=SYS_ADMIN foo \
117+
-v -dev -headless -dldir /download -dltimeout 3 -run /usr/local/bin/save.sh
118+
```
96119

97120
## Image project home
98121

0 commit comments

Comments
 (0)