Skip to content

Commit

Permalink
fixup! Build and publish grafana/k6:with-browser images
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewslotin committed Jul 17, 2023
1 parent 6180a3a commit 3c35212
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ 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/

ENV K6_BROWSER_ENABLED=true
ENV K6_BROWSER_HEADLESS=true
# 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"
ENV K6_BROWSER_ARGS="--disable-software-rasterizer --disable-dev-shm-usage"

ENTRYPOINT ["k6"]

0 comments on commit 3c35212

Please sign in to comment.