Fix LTX Desktop first-run setup

This commit is contained in:
Mikei386
2026-09-13 22:09:24 +02:00
parent 763ac85154
commit 7d02fa1b8b
5 changed files with 23 additions and 2 deletions
+2 -1
View File
@@ -21,7 +21,8 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
&& ln -s /usr/share/novnc/vnc.html /usr/share/novnc/index.html && ln -s /usr/share/novnc/vnc.html /usr/share/novnc/index.html
COPY entrypoint.sh /usr/local/bin/ltx-desktop-entrypoint COPY entrypoint.sh /usr/local/bin/ltx-desktop-entrypoint
RUN chmod 0755 /usr/local/bin/ltx-desktop-entrypoint COPY tar-no-owner.sh /usr/local/bin/tar
RUN chmod 0755 /usr/local/bin/ltx-desktop-entrypoint /usr/local/bin/tar
ENV DISPLAY=:0 \ ENV DISPLAY=:0 \
HOME=/data/home \ HOME=/data/home \
+4
View File
@@ -14,3 +14,7 @@ The RTX 5080 has the official minimum of 16 GiB VRAM for LTX Desktop local
generation. Start with LTX Fast, 720p or below and at most about ten seconds. generation. Start with LTX Fast, 720p or below and at most about ten seconds.
Model downloads may require accepting Lightricks' model license and signing in Model downloads may require accepting Lightricks' model license and signing in
to Hugging Face in the application. to Hugging Face in the application.
The image installs a narrow `tar` wrapper that ignores uid/gid metadata in the
official first-run Python archive. This keeps `cap_drop: [ALL]` intact while
allowing the archive, whose entries belong to build user 1001, to be extracted.
+9 -1
View File
@@ -10,11 +10,19 @@ services:
restart: "no" restart: "no"
labels: labels:
com.mike-ai.video-worker: ltx2 com.mike-ai.video-worker: ltx2
gpus: all deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids:
- ${LTX2_GPU_UUID:-GPU-8ad38c6c-5a01-9d8e-1dfa-ed662ad78fbe}
capabilities: [gpu]
shm_size: 8g shm_size: 8g
environment: environment:
NVIDIA_VISIBLE_DEVICES: ${LTX2_GPU_UUID:-GPU-8ad38c6c-5a01-9d8e-1dfa-ed662ad78fbe} NVIDIA_VISIBLE_DEVICES: ${LTX2_GPU_UUID:-GPU-8ad38c6c-5a01-9d8e-1dfa-ed662ad78fbe}
NVIDIA_DRIVER_CAPABILITIES: compute,utility,graphics NVIDIA_DRIVER_CAPABILITIES: compute,utility,graphics
CUDA_VISIBLE_DEVICES: "0"
volumes: volumes:
- /data/video/ltx-desktop:/data - /data/video/ltx-desktop:/data
networks: networks:
+3
View File
@@ -8,6 +8,9 @@ cleanup() {
} }
trap cleanup EXIT INT TERM trap cleanup EXIT INT TERM
# A stopped container keeps its writable layer. Remove stale X11 state so the
# same container can be started again by the profile controller.
rm -f /tmp/.X0-lock /tmp/.X11-unix/X0
Xvfb :0 -screen 0 1600x1000x24 -nolisten tcp & Xvfb :0 -screen 0 1600x1000x24 -nolisten tcp &
x_pid=$! x_pid=$!
for _ in $(seq 1 50); do for _ in $(seq 1 50); do
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
# LTX Desktop's Linux Python archive carries its build-host uid/gid. The
# container deliberately drops CAP_CHOWN, so ignore archive ownership while
# retaining all paths, modes and contents.
exec /usr/bin/tar --no-same-owner "$@"