Commit graph

132 commits

Author SHA1 Message Date
Nick Sweeting
6939edeaf6
generate global unique machine id on docker build 2024-10-04 14:47:57 -07:00
Nick Sweeting
396a7ffcd8
move tmp dir to machine-id scoped dir 2024-10-04 03:24:15 -07:00
Nick Sweeting
8336c997a1
bump python version to 3.12 in docker 2024-10-04 00:45:13 -07:00
Nick Sweeting
ed2d76af00
minor Dockerfile improvements 2024-10-04 00:16:03 -07:00
Nick Sweeting
152b530249
scope LIB_DIR by os, arch, and docker status 2024-10-04 00:08:44 -07:00
Nick Sweeting
2e3a2f459c
add sonic to docker build 2024-10-04 00:08:18 -07:00
Nick Sweeting
c5da3c1f22
fix docker build 2024-10-03 18:24:27 -07:00
Nick Sweeting
490e5ba11d
fallback to localhost if detecting dnsserver fails 2024-10-03 03:53:50 -07:00
Nick Sweeting
770e06960c
change pdm to use 3.11 for locking 2024-09-06 03:49:10 -07:00
Nick Sweeting
c63917a22d
fix more CHROME_USER_DATA_DIR issues 2024-06-03 02:51:11 -07:00
Nick Sweeting
c570674798
fix docker build 2024-06-03 01:13:17 -07:00
Nick Sweeting
1d9e7ec66a
declare no-install-recommends at top of dockerfile and remove armv7 build steps 2024-04-25 21:35:09 -07:00
Nick Sweeting
11acc9ceea
Add Dockerfile labels needed for depandabot and Docker Extension marketplace 2024-04-12 14:16:55 -07:00
Nick Sweeting
ac73fb5129 merge fixes 2024-03-26 15:22:40 -07:00
Nick Sweeting
8007e97c3f point archivebox to novnc display container by default 2024-03-18 14:41:57 -07:00
Nick Sweeting
3afd7b0cf0 add healthcheck to Dockerfile 2024-02-22 04:50:22 -08:00
Nick Sweeting
014c1e1dc7 remove dbus from docker setup, not actually needed 2024-01-11 19:02:34 -08:00
Nick Sweeting
eb2112e5b1 install and start dbus service to silence chrome headless errors 2024-01-11 17:26:26 -08:00
Nick Sweeting
a0c16ecae0 bump dependency versions 2024-01-02 17:10:29 -08:00
Nick Sweeting
5881a64353 fallback to alternative way of getting chrome version if needed 2023-12-17 22:11:13 -08:00
Nick Sweeting
b021a23b7b dont install C compiler for final pip install archivebox in Dockerfile 2023-12-17 21:02:42 -08:00
Nick Sweeting
4a4ed2cad6 fix version string parsing 2023-12-17 17:44:26 -08:00
Nick Sweeting
c183de2903 split archivebox version into separate RUN line so that version can depend on VERSION.txt to get build time 2023-12-17 16:04:48 -08:00
Nick Sweeting
083d8b9965 fix Dockerfile lint issues 2023-11-13 22:38:19 -08:00
Nick Sweeting
eaedd828b7 fix missing stderr redirect breaking docker hub autobuild 2023-11-13 20:40:29 -08:00
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