Skip to content

Commit

Permalink
fixup! Add a stage to build browser-enabled image
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewslotin committed Jul 17, 2023
1 parent 9e7e0bf commit 6180a3a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,12 @@ RUN apk --no-cache add chromium-swiftshader
USER k6

ENV K6_BROWSER_ENABLED=true
ENV K6_BROWSER_HEADLESS=true
ENV CHROME_BIN=/usr/bin/chromium-browser
ENV CHROME_PATH=/usr/lib/chromium/

# Disable RAM-heavy GPU rasterizer and make chromium use /tmp instead of /dev/shm that is typically
# too small in Docker
ENV CHROMIUM_FLAGS="--disable-software-rasterizer --disable-dev-shm-usage"

ENTRYPOINT ["k6"]

0 comments on commit 6180a3a

Please sign in to comment.