Skip to content

Commit

Permalink
devops: update Docker base images (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt authored Oct 18, 2024
1 parent e104371 commit 15bc132
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine as client-builder
FROM node:22-alpine as client-builder

WORKDIR /frontend

Expand Down
16 changes: 10 additions & 6 deletions frontend/src/examples/javascript/record-video.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ const { chromium } = require('playwright');
});
const page = await context.newPage();

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

await browser.close();
})();
8 changes: 2 additions & 6 deletions worker-csharp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG PLAYWRIGHT_VERSION=1.46.0
ARG PLAYWRIGHT_VERSION=1.47.0
FROM golang:1.20-buster as builder
WORKDIR /root
COPY go.mod /root/
Expand All @@ -9,7 +9,7 @@ COPY worker-csharp/main.go /root/
COPY internal/ /root/internal/
RUN CGO_ENABLED=0 GOOS=linux go build -o /app

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

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

WORKDIR /home/pwuser/

# Nuke /tmp/.dotnet/ folder to avoid permission issues root != pwuser
# Workaround for https://github.com/dotnet/runtime/issues/80619
RUN rm -rf /tmp/.dotnet/

USER pwuser

RUN mkdir /home/pwuser/project/ && \
Expand Down
4 changes: 2 additions & 2 deletions worker-java/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG PLAYWRIGHT_VERSION=1.46.0
ARG PLAYWRIGHT_VERSION=1.47.0
FROM golang:1.20-buster as builder
WORKDIR /root
COPY go.mod /root/
Expand All @@ -9,7 +9,7 @@ COPY worker-java/main.go /root/
COPY internal/ /root/internal/
RUN CGO_ENABLED=0 GOOS=linux go build -o /app

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

RUN apt-get remove -y git ssh xvfb curl && \
apt-get autoremove -y
Expand Down
2 changes: 1 addition & 1 deletion worker-javascript/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ COPY worker-javascript/main.go /root/
COPY internal/ /root/internal/
RUN CGO_ENABLED=0 GOOS=linux go build -o /app

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

ARG PLAYWRIGHT_VERSION
ENV PLAYWRIGHT_VERSION=$PLAYWRIGHT_VERSION
Expand Down
4 changes: 2 additions & 2 deletions worker-python/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG PLAYWRIGHT_VERSION=1.46.0
ARG PLAYWRIGHT_VERSION=1.47.0
FROM golang:1.20-buster as builder
WORKDIR /root
COPY go.mod /root/
Expand All @@ -9,7 +9,7 @@ COPY worker-python/main.go /root/
COPY internal/ /root/internal/
RUN CGO_ENABLED=0 GOOS=linux go build -o /app

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

ARG PLAYWRIGHT_VERSION
ENV PLAYWRIGHT_VERSION=$PLAYWRIGHT_VERSION
Expand Down

0 comments on commit 15bc132

Please sign in to comment.