Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions images/chromium-headful/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=$CACHEIDPREFIX-ap
imagemagick \
sudo \
mutter \
# FUSE for fspipe virtual filesystem (fuse provides /bin/fusermount required by go-fuse)
fuse \
libfuse2 \
# Python/pyenv reqs
build-essential \
libssl-dev \
Expand Down Expand Up @@ -216,6 +219,9 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=$CACHEIDPREFIX-ap
COPY --from=ffmpeg-downloader /usr/local/bin/ffmpeg /usr/local/bin/ffmpeg
COPY --from=ffmpeg-downloader /usr/local/bin/ffprobe /usr/local/bin/ffprobe

# Enable user_allow_other in fuse.conf so FUSE mounts can be accessed by other users (e.g., Chrome)
RUN echo "user_allow_other" >> /etc/fuse.conf

# runtime
ENV USERNAME=root
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=$CACHEIDPREFIX-apt-cache \
Expand Down Expand Up @@ -318,4 +324,9 @@ RUN esbuild /tmp/playwright-daemon.ts \

RUN useradd -m -s /bin/bash kernel

# Create fspipe download directory with proper permissions for FUSE mount
RUN mkdir -p /home/kernel/fspipe-downloads && \
chown kernel:kernel /home/kernel/fspipe-downloads && \
chmod 777 /home/kernel/fspipe-downloads

ENTRYPOINT [ "/wrapper.sh" ]
1 change: 1 addition & 0 deletions images/chromium-headful/run-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ RUN_ARGS=(
--memory 8192m
-p 9222:9222
-p 444:10001
-p 9000:9000
-e DISPLAY_NUM=1
-e HEIGHT=1080
-e WIDTH=1920
Expand Down
2 changes: 1 addition & 1 deletion server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ oapi-generate: $(OAPI_CODEGEN)
go mod tidy

build: | $(BIN_DIR)
go build -o $(BIN_DIR)/api ./cmd/api
go build -buildvcs=false -o $(BIN_DIR)/api ./cmd/api

dev: build $(RECORDING_DIR)
OUTPUT_DIR=$(RECORDING_DIR) DISPLAY_NUM=$(DISPLAY_NUM) ./bin/api
Expand Down
Loading
Loading