Skip to content

Commit 15bc132

Browse files
authored
devops: update Docker base images (#284)
1 parent e104371 commit 15bc132

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

frontend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18-alpine as client-builder
1+
FROM node:22-alpine as client-builder
22

33
WORKDIR /frontend
44

frontend/src/examples/javascript/record-video.js

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,16 @@ const { chromium } = require('playwright');
1010
});
1111
const page = await context.newPage();
1212

13-
await page.goto('https://github.com');
14-
await page.locator('button').filter({ hasText: 'Search or jump to...' }).click();
15-
await page.getByRole('combobox', { name: 'Search' }).fill('Playwright');
16-
await page.getByRole('combobox', { name: 'Search' }).press('Enter');
17-
await page.getByRole('link', { name: 'microsoft/playwright', exact: true }).click();
18-
await page.waitForLoadState('networkidle');
13+
for (let i = 0; i < 3; i++) {
14+
await page.goto('https://news.ycombinator.com/');
15+
await page.getByRole('link', { name: 'new', exact: true }).click();
16+
await page.locator('.pagetop > a').first().click();
17+
await page.getByRole('link', { name: 'comments', exact: true }).click();
18+
await page.getByRole('link', { name: 'ask' }).click();
19+
await page.getByRole('link', { name: 'show' }).click();
20+
await page.getByRole('link', { name: 'jobs' }).click();
21+
await page.getByRole('link', { name: 'login' }).click();
22+
}
1923

2024
await browser.close();
2125
})();

worker-csharp/Dockerfile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG PLAYWRIGHT_VERSION=1.46.0
1+
ARG PLAYWRIGHT_VERSION=1.47.0
22
FROM golang:1.20-buster as builder
33
WORKDIR /root
44
COPY go.mod /root/
@@ -9,7 +9,7 @@ COPY worker-csharp/main.go /root/
99
COPY internal/ /root/internal/
1010
RUN CGO_ENABLED=0 GOOS=linux go build -o /app
1111

12-
FROM mcr.microsoft.com/playwright/dotnet:v${PLAYWRIGHT_VERSION}-jammy
12+
FROM mcr.microsoft.com/playwright/dotnet:v${PLAYWRIGHT_VERSION}-noble
1313

1414
ARG PLAYWRIGHT_VERSION
1515
ENV PLAYWRIGHT_VERSION=$PLAYWRIGHT_VERSION
@@ -20,10 +20,6 @@ RUN apt-get remove -y git ssh xvfb curl && \
2020

2121
WORKDIR /home/pwuser/
2222

23-
# Nuke /tmp/.dotnet/ folder to avoid permission issues root != pwuser
24-
# Workaround for https://github.com/dotnet/runtime/issues/80619
25-
RUN rm -rf /tmp/.dotnet/
26-
2723
USER pwuser
2824

2925
RUN mkdir /home/pwuser/project/ && \

worker-java/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG PLAYWRIGHT_VERSION=1.46.0
1+
ARG PLAYWRIGHT_VERSION=1.47.0
22
FROM golang:1.20-buster as builder
33
WORKDIR /root
44
COPY go.mod /root/
@@ -9,7 +9,7 @@ COPY worker-java/main.go /root/
99
COPY internal/ /root/internal/
1010
RUN CGO_ENABLED=0 GOOS=linux go build -o /app
1111

12-
FROM mcr.microsoft.com/playwright/java:v$PLAYWRIGHT_VERSION-jammy
12+
FROM mcr.microsoft.com/playwright/java:v$PLAYWRIGHT_VERSION-noble
1313

1414
RUN apt-get remove -y git ssh xvfb curl && \
1515
apt-get autoremove -y

worker-javascript/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ COPY worker-javascript/main.go /root/
99
COPY internal/ /root/internal/
1010
RUN CGO_ENABLED=0 GOOS=linux go build -o /app
1111

12-
FROM mcr.microsoft.com/playwright:v${PLAYWRIGHT_VERSION}-jammy
12+
FROM mcr.microsoft.com/playwright:v${PLAYWRIGHT_VERSION}-noble
1313

1414
ARG PLAYWRIGHT_VERSION
1515
ENV PLAYWRIGHT_VERSION=$PLAYWRIGHT_VERSION

worker-python/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG PLAYWRIGHT_VERSION=1.46.0
1+
ARG PLAYWRIGHT_VERSION=1.47.0
22
FROM golang:1.20-buster as builder
33
WORKDIR /root
44
COPY go.mod /root/
@@ -9,7 +9,7 @@ COPY worker-python/main.go /root/
99
COPY internal/ /root/internal/
1010
RUN CGO_ENABLED=0 GOOS=linux go build -o /app
1111

12-
FROM mcr.microsoft.com/playwright/python:v${PLAYWRIGHT_VERSION}-jammy
12+
FROM mcr.microsoft.com/playwright/python:v${PLAYWRIGHT_VERSION}-noble
1313

1414
ARG PLAYWRIGHT_VERSION
1515
ENV PLAYWRIGHT_VERSION=$PLAYWRIGHT_VERSION

0 commit comments

Comments
 (0)