Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: remove docker image size computation scripts (#3650)
Andrey Lushnikovc96ea4b6dec8
diff --git a/docs/docker/CURRENT_DOCKER_IMAGE_SIZE b/docs/docker/CURRENT_DOCKER_IMAGE_SIZEdeleted file mode 100644index 328d27db78..0000000000--- a/docs/docker/CURRENT_DOCKER_IMAGE_SIZE+++ /dev/null@@ -1,2 +0,0 @@-(generated with docker-image-size.sh)-496Mdiff --git a/docs/docker/README.md b/docs/docker/README.mdindex 9c29ea629a..3f80fed725 100644--- a/docs/docker/README.md+++ b/docs/docker/README.md@@ -81,8 +81,6 @@ The image will be tagged as `playwright:localbuild` and could be run as:$ docker run --rm -it playwright:localbuild /bin/bash```-> **NOTE**: any commit that changes docker image should also update [`//docs/docker/CURRENT_DOCKER_IMAGE_SIZE`](CURRENT_DOCKER_IMAGE_SIZE). Please run [`//docs/docker/docker-image-size.sh`](docker-image-size.sh) locally and commit updated number.-### PushDocker images are published automatically by Github Actions. We currently publish the followingdiff --git a/docs/docker/docker-image-size.sh b/docs/docker/docker-image-size.shdeleted file mode 100755index 9d44c1c356..0000000000--- a/docs/docker/docker-image-size.sh+++ /dev/null@@ -1,56 +0,0 @@-#!/bin/bash-set -e-set +x--# This script computes **compressed image size with all its layers**.-# This solution is based on https://stackoverflow.com/a/55156181/314883---if [[ ($1 == '--help') || ($1 == '-h') ]]; then- echo "usage: $(basename $0) [--image-name <local image to compute size>]"- echo- echo "Compute docker image size defined by the 'Dockerfile.bionic'."- echo ""- echo "Script will build the image using 'build.sh', unless '--image-name'"- echo "is specified."- echo ""- echo "NOTE: this requires on Playwright dependencies to be installed with 'npm install'"- echo " and Playwright itself being built with 'npm run build'"- echo- echo " --image-name custom image name to compute size of."- echo ""- exit 0-fi--CUSTOM_IMAGE_NAME=""-if [[ $1 == "--image-name" ]]; then- CUSTOM_IMAGE_NAME=$2-fi--TMP_IMAGE_NAME="docker-image-to-count-compressed-size"-FILE_NAME="docker-image-to-count-compressed-size"--function cleanup() {- rm -f "${FILE_NAME}.tar"- rm -f "${FILE_NAME}.tar.gz"- docker rmi "${TMP_IMAGE_NAME}:bionic" >/dev/null-}--trap "cleanup; cd $(pwd -P)" EXIT-cd "$(dirname "$0")"--if [[ -z "${CUSTOM_IMAGE_NAME}" ]]; then- echo "-- Building image..."- ./build.sh >/dev/null- echo "-- Saving .tar of the image..."- docker save "${TMP_IMAGE_NAME}:bionic" > "${FILE_NAME}.tar"-else- echo "-- Saving .tar of the image..."- docker save "${CUSTOM_IMAGE_NAME}" > "${FILE_NAME}.tar"-fi-echo "-- Compressing image..."-gzip "${FILE_NAME}.tar" >/dev/null--echo "(generated with docker-image-size.sh)" > CURRENT_DOCKER_IMAGE_SIZE-du -sh ${FILE_NAME}.tar.gz | cut -f1 | xargs >> CURRENT_DOCKER_IMAGE_SIZE-