Skip to content

Commit fad4bf2

Browse files
committed
fix: use new k6/experimental/browser and update npm packages
1 parent f3481b0 commit fad4bf2

File tree

5 files changed

+327
-338
lines changed

5 files changed

+327
-338
lines changed

Diff for: .gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ dist
55
/playwright-report/
66
/playwright/.cache/
77
.bin/
8-
.DS_Store
8+
.DS_Store
9+
.project

Diff for: Dockerfile

+4-14
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
1-
FROM golang:1.19-bullseye as builder
1+
FROM grafana/k6:0.45.0
2+
USER root
23

3-
RUN go install -trimpath go.k6.io/xk6/cmd/xk6@latest
4+
RUN apk update && apk add --no-cache chromium
45

5-
RUN xk6 build --output "/tmp/k6" --with github.com/grafana/xk6-browser
6-
7-
FROM debian:bullseye
8-
9-
RUN apt-get update && \
10-
apt-get install -y chromium
11-
12-
COPY --from=builder /tmp/k6 /usr/bin/k6
13-
14-
ENV XK6_HEADLESS=true
15-
16-
ENTRYPOINT ["k6"]
6+
ENV K6_BROWSER_ENABLED=true

0 commit comments

Comments
 (0)