File tree Expand file tree Collapse file tree 2 files changed +26
-3
lines changed Expand file tree Collapse file tree 2 files changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ COPY repo /repo
55WORKDIR /repo
66RUN go build
77
8- FROM chromedp/headless-shell:latest
8+ FROM chromedp/headless-shell:128.0.6601.2
99
1010LABEL org.opencontainers.image.source "https://github.com/davidecavestro/docker-gphotos-cdp"
1111LABEL org.opencontainers.image.description "Download photos and videos from your account without loosing geo-location attributes"
Original file line number Diff line number Diff line change @@ -48,14 +48,14 @@ services:
4848
4949```
5050
51- ## Schedule from your host crontab
51+ ### Schedule from your host crontab
5252
5353Optionally configure cron, i.e. for me running ` crontab -l ` reveals:
5454``` bash
55550 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
6060I 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
You can’t perform that action at this time.
0 commit comments