Commit graph

107 commits

Author SHA1 Message Date
Nick Sweeting
3d9d01ccd7 fix PLAYWRIGHT_BROWSERS_PATH not always being created 2023-11-13 19:18:47 -08:00
Nick Sweeting
c808e53b44
chown PLAYWRIGHT_BROWSERS_PATH after installing so archivebox setup can run 2023-11-07 01:42:16 -08:00
Nick Sweeting
56f27fdb13 remove dev packages from lockfiles 2023-11-03 21:54:17 -07:00
Nick Sweeting
c6e5a565c0 switch back to locked cache instead of private but put targetarch in cache id to separate them 2023-10-31 19:43:41 -07:00
Nick Sweeting
57f033be60 add targetos to build args 2023-10-31 19:43:01 -07:00
Nick Sweeting
00d671240e use private caches for each architecture build so as not to pollute caches with bad binaries 2023-10-31 16:06:19 -07:00
Nick Sweeting
41bd7c6480 fix cache locking errors during parallel builds 2023-10-31 14:59:34 -07:00
Nick Sweeting
bc555cca96 working arm v7 build 2023-10-31 06:28:11 -07:00
Nick Sweeting
211ca363b5 better dockerfiles caching 2023-10-31 05:31:19 -07:00
Nick Sweeting
562fd5a3bb revert back to python-3.11 base image and add cache dirs for massive build speed increase 2023-10-31 03:58:24 -07:00
Nick Sweeting
ce4df6d965 use global pip cache 2023-10-31 03:19:35 -07:00
Nick Sweeting
da80a41afb use bookworm-backports for everything 2023-10-31 03:11:53 -07:00
Nick Sweeting
47d9161168 fix Dockerfile 2023-10-31 03:06:02 -07:00
Nick Sweeting
aabc89d6a7 add requirements.txt 2023-10-31 01:06:57 -07:00
Nick Sweeting
f0d51c377b attempt fix for python build 2023-10-31 01:05:39 -07:00
Nick Sweeting
214016d8a1 fix broken arg 2023-10-31 00:31:14 -07:00
Nick Sweeting
b87af19235 use pdm sync instead of pdm install in docker 2023-10-31 00:30:27 -07:00
Nick Sweeting
479a6f44ea dont install site packages as editable 2023-10-31 00:27:31 -07:00
Nick Sweeting
32e363848e install all optionall dependencies in docker 2023-10-31 00:00:09 -07:00
Nick Sweeting
1bfbf5e9c3 add pip packages build step 2023-10-30 23:58:13 -07:00
Nick Sweeting
a677ef7113 fix conditional on architecture 2023-10-30 23:34:26 -07:00
Nick Sweeting
6b35c30e17 fix armv7 build for Docker and bare metal 2023-10-30 23:25:51 -07:00
c01o
08cffb8742
Fix docker build
Lack of `fi` resulted in a syntax error.
Also, change `;` to `||` to ensure it builds successfully on architectures other than `linux/arm/v7`.


```
[2023-10-24T10:46:49.941Z] ------
 > [dev_container_auto_added_stage_label 11/18] RUN mkdir -p "/home/archivebox/.config/chromium/Crash Reports/pending/"     && chown -R archivebox "/home/archivebox/.config"     ; if [[ "linux/amd64" == "linux/arm/v7" ]]; then $exit 0; else exit 1:
0.401 /bin/bash: -c: line 2: syntax error: unexpected end of file
------
WARNING: buildx: git was not found in the system. Current commit information was not captured by the build
[2023-10-24T10:46:49.942Z] Dockerfile-with-features:135
--------------------
 134 |         && ln -s "$CHROME_BINARY" /usr/bin/chromium-browser
 135 | >>> RUN mkdir -p "/home/${ARCHIVEBOX_USER}/.config/chromium/Crash Reports/pending/" \
 136 | >>>     && chown -R $ARCHIVEBOX_USER "/home/${ARCHIVEBOX_USER}/.config" \
 137 | >>>     ; if [[ "$TARGETPLATFORM" == "linux/arm/v7" ]]; then $exit 0; else exit 1
 138 |         # ignore failure for architectures where no playwright release is available yet
--------------------
ERROR: failed to solve: process "/bin/bash -c mkdir -p \"/home/${ARCHIVEBOX_USER}/.config/chromium/Crash Reports/pending/\"     && chown -R $ARCHIVEBOX_USER \"/home/${ARCHIVEBOX_USER}/.config\"     ; if [[ \"$TARGETPLATFORM\" == \"linux/arm/v7\" ]]; then $exit 0; else exit 1" did not complete successfully: exit code: 2
```
2023-10-24 19:58:23 +09:00
Nick Sweeting
2681f752f1
ignore playwright chrome install on arm v7 2023-10-21 14:17:50 -07:00
Nick Sweeting
2928c19119 fix multiarch chromium install 2023-10-20 05:45:08 -07:00
Nick Sweeting
988b6585c9 better multiarch builds 2023-10-20 05:30:45 -07:00
Nick Sweeting
015737b1e4 fix buildx helper script 2023-10-20 05:10:03 -07:00
Nick Sweeting
bf7a6e4c09 add missing cpython packages needed for arm v8 docker build 2023-10-20 04:33:26 -07:00
Nick Sweeting
76f9b91ed3 dockerfile fixes 2023-10-20 04:08:38 -07:00
Nick Sweeting
6736e63ef0 new Dockerfile layout with better layering 2023-10-20 02:47:34 -07:00
root
23f086aa40 add LDAP support 2023-08-17 19:51:02 -05:00
Micah R Ledbetter
3edb319ba9 Set /app permissions in the Dockerfile
Add a note in readme to be careful of permissions with --reload
2023-05-05 23:47:02 -05:00
Nick Sweeting
f94e8cd9b2 bump docker base image version and node version 2023-03-13 10:49:02 +00:00
Joseph Turian
07de4a79a1
Merge branch 'dev' into feature/kludge-984-UTF8-bug 2022-12-20 11:39:01 +01:00
Joseph Turian
f5f7aff3b4 Added yt-dlp everywhere 2022-09-12 20:34:02 +00:00
Joseph Turian
35a052ae8b Another comment 2022-09-11 22:13:22 +02:00
Joseph Turian
cc56785695 Added standalone dockerfile instructions 2022-09-11 22:11:13 +02:00
Nick Sweeting
c5ccb05d4a update Dockerfile buildx instructions to exclude intel/386 2022-04-21 07:35:34 -07:00
Nick Sweeting
ed9ef588d9 add instructions for multi-arch build at top of Dockerfile 2022-04-21 07:29:27 -07:00
Nick Sweeting
57df65f28f use yt-dlp for media archiving instead of youtube-dl 2022-04-21 07:11:35 -07:00
Nick Sweeting
eb81d41f84 bump Dockerfile base image version and install yt-dlp 2022-04-21 07:11:35 -07:00
Nick Sweeting
b40a1e19d1
comment out healthcheck 2021-12-02 21:03:19 -05:00
Nick Sweeting
0a09bdb2ca create archivebox dir in code dir manually 2021-04-23 16:12:25 -04:00
Nick Sweeting
2fc9f1cfa3 dont depend on README in Dockerfile install step 2021-04-05 23:17:07 -04:00
Nick Sweeting
6aef1dd98d dont check db if init is pending 2021-02-28 22:53:23 -05:00
Nick Sweeting
05dbb1c160 add healthcheck to dockerfile 2021-02-17 18:24:38 -05:00
Nick Sweeting
908262b133 add dev dependencies install commented out in Dockerfile 2021-02-16 15:55:47 -05:00
Nick Sweeting
e61e12c889 use setup.py to determine dependencies in Dockerfile instead of egg-info requires.txt 2021-02-15 14:51:32 -05:00
Nick Sweeting
b90afc8c04 nodesource apt repo not supported on i386 2021-02-01 06:05:12 -05:00
Nick Sweeting
7e7ffcac18 bump pip and node versions 2021-02-01 05:45:21 -05:00