Skip to content

Commit 2c59e6b

Browse files
chore: mark docker images as Playwright (#1250)
Co-authored-by: Max Schmitt <[email protected]>
1 parent e22c5e1 commit 2c59e6b

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.github/workflows/test_docker.yml

+2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ on:
44
paths:
55
- '.github/workflows/test_docker.yml'
66
- 'setup.py'
7+
- '**/Dockerfile.*'
78
branches:
89
- main
910
- release-*
1011
pull_request:
1112
paths:
1213
- '.github/workflows/test_docker.yml'
1314
- 'setup.py'
15+
- '**/Dockerfile.*'
1416
branches:
1517
- main
1618
- release-*

utils/docker/Dockerfile.bionic

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ FROM ubuntu:bionic
22

33
ARG DEBIAN_FRONTEND=noninteractive
44
ARG TZ=America/Los_Angeles
5+
ARG DOCKER_IMAGE_NAME_TEMPLATE="mcr.microsoft.com/playwright/python:v%version%-bionic"
56

67
# === INSTALL Python ===
78

@@ -38,6 +39,7 @@ RUN mkdir /ms-playwright && \
3839
if [ "$(uname -m)" = "x86_64" ]; then pip install /tmp/*manylinux1_x86_64*.whl; fi && \
3940
# if its arm64 then install the manylinux1_aarch64 pip package
4041
if [ "$(uname -m)" = "aarch64" ]; then pip install /tmp/*manylinux_2_17_aarch64*.whl; fi && \
42+
playwright mark-docker-image "${DOCKER_IMAGE_NAME_TEMPLATE}" && \
4143
playwright install --with-deps && rm -rf /var/lib/apt/lists/* && \
4244
rm /tmp/*.whl && \
4345
rm -rf /ms-playwright-agent && \

utils/docker/Dockerfile.focal

+2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ FROM ubuntu:focal
22

33
ARG DEBIAN_FRONTEND=noninteractive
44
ARG TZ=America/Los_Angeles
5+
ARG DOCKER_IMAGE_NAME_TEMPLATE="mcr.microsoft.com/playwright/python:v%version%-focal"
56

67
# === INSTALL Python ===
78

@@ -38,6 +39,7 @@ RUN mkdir /ms-playwright && \
3839
if [ "$(uname -m)" = "x86_64" ]; then pip install /tmp/*manylinux1_x86_64*.whl; fi && \
3940
# if its arm64 then install the manylinux1_aarch64 pip package
4041
if [ "$(uname -m)" = "aarch64" ]; then pip install /tmp/*manylinux_2_17_aarch64*.whl; fi && \
42+
playwright mark-docker-image "${DOCKER_IMAGE_NAME_TEMPLATE}" && \
4143
playwright install --with-deps && rm -rf /var/lib/apt/lists/* && \
4244
rm /tmp/*.whl && \
4345
rm -rf /ms-playwright-agent && \

0 commit comments

Comments
 (0)