Jarvis2345 commited on
Commit
a98fce9
Β·
verified Β·
1 Parent(s): 4ec6735

deploy(S4): Blender headless pipeline + WebAR client + backend fixes

Browse files
Files changed (2) hide show
  1. Dockerfile +29 -5
  2. dist/app-release.apk +1 -1
Dockerfile CHANGED
@@ -45,12 +45,36 @@ RUN apt-get update && apt-get install -y \
45
  # ── S4: Blender 4.5 LTS headless (official Linux x64 tarball, URL verified 2026-07-17).
46
  # Geometry processing + GLB export only β€” no rendering β†’ CPU hardware is sufficient.
47
  ARG BLENDER_VERSION=4.5.3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  RUN mkdir -p /opt/blender && \
49
- curl -fsSL "https://download.blender.org/release/Blender4.5/blender-${BLENDER_VERSION}-linux-x64.tar.xz" \
50
- -o /tmp/blender.tar.xz && \
51
- tar -xJf /tmp/blender.tar.xz -C /opt/blender --strip-components=1 && \
52
- rm /tmp/blender.tar.xz && \
53
- /opt/blender/blender --version
 
 
 
 
 
 
 
 
 
 
54
 
55
  # Set up a new user named "user" with user ID 1000
56
  RUN useradd -m -u 1000 user
 
45
  # ── S4: Blender 4.5 LTS headless (official Linux x64 tarball, URL verified 2026-07-17).
46
  # Geometry processing + GLB export only β€” no rendering β†’ CPU hardware is sufficient.
47
  ARG BLENDER_VERSION=4.5.3
48
+ # BLENDER IS OPTIONAL AND MUST NOT BE ABLE TO TAKE THE BACKEND DOWN.
49
+ #
50
+ # This step used to be fatal. On 2026-08-08 download.blender.org began answering
51
+ # HuggingFace's build IPs with 403 β€” the file is still published (verified 200
52
+ # with the same URL and the same curl User-Agent from a normal network), so this
53
+ # is the CDN refusing the builder, not a bad version pin. The whole Space failed
54
+ # to build and the API, the assistant and the PC relay all went offline because a
55
+ # 377 MB download for the 3D geometry pipeline was refused by a third party.
56
+ #
57
+ # The core backend does not need Blender; only the model/GLB pipeline does. So
58
+ # the download is now best-effort with a mirror fallback and a soft exit, and
59
+ # blender_available() at runtime decides whether that one feature is offered.
60
+ # An optional dependency of one subsystem should degrade that subsystem, never
61
+ # the server.
62
  RUN mkdir -p /opt/blender && \
63
+ ( curl -fsSL --retry 3 --retry-delay 2 \
64
+ -A "Mozilla/5.0 (X11; Linux x86_64) omega-build" \
65
+ "https://download.blender.org/release/Blender4.5/blender-${BLENDER_VERSION}-linux-x64.tar.xz" \
66
+ -o /tmp/blender.tar.xz \
67
+ || curl -fsSL --retry 2 --retry-delay 2 \
68
+ -A "Mozilla/5.0 (X11; Linux x86_64) omega-build" \
69
+ "https://mirrors.ocf.berkeley.edu/blender/release/Blender4.5/blender-${BLENDER_VERSION}-linux-x64.tar.xz" \
70
+ -o /tmp/blender.tar.xz \
71
+ || echo "BLENDER DOWNLOAD UNAVAILABLE β€” continuing without it" ) && \
72
+ ( test -s /tmp/blender.tar.xz \
73
+ && tar -xJf /tmp/blender.tar.xz -C /opt/blender --strip-components=1 \
74
+ && rm -f /tmp/blender.tar.xz \
75
+ && /opt/blender/blender --version \
76
+ || echo "Blender not installed; 3D geometry features will report unavailable" ) && \
77
+ true
78
 
79
  # Set up a new user named "user" with user ID 1000
80
  RUN useradd -m -u 1000 user
dist/app-release.apk CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:3768e22e18bbcc3cb6721d89727731626d6a1c675e227383dca5197d37915519
3
  size 116538395
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a3905dc8e7e13df42584f11579773098ec39330e80884ae6272082136c2cdffe
3
  size 116538395