Download tasks/t19-friction-tutorial-part2/environment/Dockerfile from refreshdotdev/Refresh-GUI-dataset: direct link, hf CLI and curl.
- Browser
- Download file 7.28 kB
-
https://huggingface.co/datasets/refreshdotdev/Refresh-GUI-dataset/resolve/main/tasks/t19-friction-tutorial-part2/environment/Dockerfile
- Command line
-
hf download hf://datasets/refreshdotdev/Refresh-GUI-dataset/tasks/t19-friction-tutorial-part2/environment/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/datasets/refreshdotdev/Refresh-GUI-dataset/resolve/main/tasks/t19-friction-tutorial-part2/environment/Dockerfile
7.28 kB
| # t19-friction-tutorial-part2 — Friction (open-source After-Effects tier) + | |
| # BOTH Nuxttux tutorials (Part One "Introduction to Friction", Part Two | |
| # "Basics of Friction Motion Graphics") + the media Part Two imports: rebuild | |
| # Part One's water drop, then Part Two's composition on top of it. | |
| # | |
| # Layers onto vedit-task:base (Kdenlive + Natron + Shotcut + xterm + desktop | |
| # stack + Debian chromium, built by `./suite/suite.sh base build` — check | |
| # `docker image inspect vedit-task:base --format '{{.Created}}'` against the | |
| # base Dockerfile's last commit first; a stale base cost t16 a smoke run): | |
| # - Friction 1.0.0-rc.3 exactly as t16 ships it (pinned tarball + debs, | |
| # null-sink PulseAudio launcher, xfdesktop4 for the Desktop icons). | |
| # - /root/tutorial/tutorial-1.mp4 + tutorial-2.mp4: the two tutorials with | |
| # captions BURNED IN (computer-1 sees screenshots and hears nothing); | |
| # "Tutorial 1" / "Tutorial 2" Desktop launchers open them in chromium. | |
| # Video only — no transcript/sheets (Sid's rule from t18). | |
| # - /root/media: the asset(s) Part Two imports (environment/media/, | |
| # gitignored, checksummed in tests/source.sha256) REPLACING the synthetic | |
| # seed media. | |
| # | |
| # Build (from the repo root, after `suite base build`, | |
| # tools/fetch-friction.sh and tools/fetch-tutorial.sh): | |
| # docker build --platform linux/amd64 \ | |
| # -f tasks/t19-friction-tutorial-part2/environment/Dockerfile \ | |
| # -t refresh-fcpx-t19:dev tasks/t19-friction-tutorial-part2/environment | |
| # | |
| # REMOTE RUNS: push the Daytona snapshot from THIS image with | |
| # `-e /usr/local/bin/start-editor --cpu 4 --memory 8 --disk 10` and record it | |
| # as current_t19 in environments/vedit/env.toml [snapshots]. | |
| FROM vedit-task:base | |
| # Friction: pinned portable tarball (bundles its own Qt5, Skia, ffmpeg, xcb | |
| # libs — ldd against vedit-task:base resolved everything except | |
| # libpulse-mainloop-glib.so.0) plus a PulseAudio server: Friction's audio | |
| # handler pops a modal "Critical Error: audiohandler.cpp toAVAudioFormat() | |
| # Unsupported sample format 0" at EVERY launch when no Pulse server answers | |
| # (t16 Xvfb smoke, 2026-09-02); the launcher below starts one with a null | |
| # sink. All artifacts are COPIED from the build context, fetched beforehand by | |
| # tools/fetch-friction.sh (sha256-pinned): the build needs no network and no | |
| # apt. The ldd assertion fails the build if the bundle's layout or deps | |
| # change. bin/portable.txt is removed: with it Friction opens a modal "You are | |
| # in portable mode" box on every launch. | |
| COPY friction.tar.xz /tmp/ | |
| COPY debs/ /tmp/debs/ | |
| RUN dpkg -i /tmp/debs/*.deb \ | |
| && mkdir -p /opt/friction \ | |
| && tar -xJf /tmp/friction.tar.xz -C /opt/friction --strip-components=1 \ | |
| && rm -rf /tmp/friction.tar.xz /tmp/debs \ | |
| && test -x /opt/friction/bin/friction \ | |
| && rm -f /opt/friction/bin/portable.txt \ | |
| && missing="$(ldd /opt/friction/bin/friction | grep 'not found' || true)" \ | |
| && { [ -z "$missing" ] || { echo "friction: unresolved libs:"; echo "$missing"; exit 1; }; } | |
| COPY friction-launcher.sh /usr/local/bin/friction | |
| RUN chmod 755 /usr/local/bin/friction | |
| # Part Two's media. The synthetic seed media from the base image is replaced | |
| # entirely so the bin isn't cluttered with distractors. The build fails if | |
| # environment/media/ holds nothing but the README — the asset is required. | |
| RUN rm -f /root/media/*.mp4 | |
| COPY media/ /root/media/ | |
| RUN rm -f /root/media/.DS_Store /root/media/README.md \ | |
| && n="$(ls /root/media | wc -l)" \ | |
| && { [ "$n" -ge 1 ] || { echo "no asset in /root/media — drop Sid's video into environment/media/"; exit 1; }; } | |
| # The tutorials, captions burned in. tutorial-1.mp4 = t18's Part One (Sid's | |
| # 22:34 cut, 720p); tutorial-2.mp4 = t17's Part Two (27:15, 360p — a 720p copy | |
| # needs the Chrome-cookie yt-dlp route, see tools/fetch-tutorial.sh). | |
| COPY tutorial/ /root/tutorial/ | |
| RUN test -s /root/tutorial/tutorial-1.mp4 && test -s /root/tutorial/tutorial-2.mp4 \ | |
| && rm -f /root/tutorial/.DS_Store | |
| # Friction autostarts with the XFCE session (APP=friction → start-editor | |
| # copies /opt/autostart/friction-autostart.desktop). Desktop launchers for | |
| # Friction (relaunch after a crash/quit) and the Tutorial; the icon layer that | |
| # renders them is xfdesktop4 (in debs/ above — the vedit base has | |
| # xfce4-panel/xfwm4/xfce4-session but no xfdesktop, t16 smoke a1 saw a bare | |
| # black root window). Applications-menu copies are a second route. | |
| # ASSERTS the base is the post-t08 one (xterm + Desktop launchers) and that | |
| # Debian's chromium (H.264-capable) is at /usr/bin/chromium for the tutorial. | |
| COPY friction-autostart.desktop /opt/autostart/friction-autostart.desktop | |
| COPY friction.desktop /root/Desktop/friction.desktop | |
| COPY tutorial-1.desktop tutorial-2.desktop /root/Desktop/ | |
| RUN chmod 755 /root/Desktop/*.desktop \ | |
| && mkdir -p /usr/share/applications /root/edit \ | |
| && cp /root/Desktop/friction.desktop /root/Desktop/tutorial-?.desktop /usr/share/applications/ \ | |
| && rm -f /root/Desktop/kdenlive.desktop /root/Desktop/shotcut.desktop \ | |
| && test -x /usr/bin/xterm \ | |
| && test -x /usr/bin/xfdesktop \ | |
| && test -x /usr/bin/chromium \ | |
| && test -f /root/Desktop/terminal.desktop | |
| # Crash recovery + relaunch routes (t19 run a1 lessons, 2026-09-03): | |
| # * start-editor override: the supervisor relaunches a crashed Friction on | |
| # the harness's display :1 (the base targeted :0 and every relaunch died). | |
| # * Thunar, so double-clicking Desktop launchers works (xfdesktop delegates | |
| # launching to Thunar over D-Bus — t16 smoke a3 "requires a file manager | |
| # service"). The build FAILS if apt cannot install it: with no terminal in | |
| # the image (below) the icons are the only manual relaunch route. | |
| # GUI-ONLY (Sid, 2026-09-04): agents may not have a terminal. The base's | |
| # xterm (and its Desktop/menu entries) is removed — both a1 agents that | |
| # recovered did so through a terminal, which is not the skill under test. | |
| # The assertion at the end fails the build if any terminal emulator remains. | |
| COPY start-editor.sh /usr/local/bin/start-editor | |
| RUN chmod 755 /usr/local/bin/start-editor \ | |
| && apt-get update && apt-get install -y --no-install-recommends thunar && rm -rf /var/lib/apt/lists/* \ | |
| && echo "thunar installed" \ | |
| && (apt-get purge -y xterm xfce4-terminal >/dev/null 2>&1 || true) \ | |
| && rm -f /usr/bin/xterm /usr/bin/uxterm /usr/bin/lxterm /usr/bin/koi8rxterm /usr/bin/resize \ | |
| /usr/bin/x-terminal-emulator /etc/alternatives/x-terminal-emulator \ | |
| /root/Desktop/terminal.desktop /root/.config/autostart/xterm.desktop /opt/autostart/xterm-autostart.desktop \ | |
| /usr/share/applications/*term* /usr/share/applications/*Term* \ | |
| && ! command -v xterm && ! command -v x-terminal-emulator && ! command -v xfce4-terminal \ | |
| && ! ls /usr/share/applications | grep -qi term \ | |
| && echo "no terminal emulator in image" | |
| # Browser hardening for BOTH chromiums (harness + tutorial launchers): see the | |
| # comments in chromium-safe-flags. Debian's launcher sources /etc/chromium.d/*. | |
| COPY chromium-safe-flags /etc/chromium.d/90-vedit-safe | |
| RUN grep -q "chromium.d" /usr/bin/chromium && test -s /etc/chromium.d/90-vedit-safe | |
| # Oracle-only reference artifacts (see reference/README.md). Not part of the | |
| # agent's brief; the instruction never points here. | |
| COPY reference/ /opt/t19-reference/ | |
| WORKDIR /root | |