chore: move to npx playwright-core install when using core (#23260)

This commit is contained in:
Pavel Feldman 2023-05-24 12:16:59 -07:00 коммит произвёл GitHub
Родитель f9521a01ce
Коммит 64dde29788
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -36,7 +36,7 @@
"./types/structs": "./types/structs.d.ts"
},
"bin": {
"playwright": "./cli.js"
"playwright-core": "./cli.js"
},
"types": "types/types.d.ts"
}

Просмотреть файл

@ -37,7 +37,7 @@ RUN mkdir /ms-playwright && \
mkdir /ms-playwright-agent && \
cd /ms-playwright-agent && npm init -y && \
npm i /tmp/playwright-core.tar.gz && \
npm exec --no -- playwright mark-docker-image "${DOCKER_IMAGE_NAME_TEMPLATE}" && \
npm exec --no -- playwright install --with-deps && rm -rf /var/lib/apt/lists/* && \
npm exec --no -- playwright-core mark-docker-image "${DOCKER_IMAGE_NAME_TEMPLATE}" && \
npm exec --no -- playwright-core install --with-deps && rm -rf /var/lib/apt/lists/* && \
rm /tmp/playwright-core.tar.gz && \
chmod -R 777 /ms-playwright

Просмотреть файл

@ -35,8 +35,8 @@ RUN mkdir /ms-playwright && \
mkdir /ms-playwright-agent && \
cd /ms-playwright-agent && npm init -y && \
npm i /tmp/playwright-core.tar.gz && \
npm exec --no -- playwright mark-docker-image "${DOCKER_IMAGE_NAME_TEMPLATE}" && \
npm exec --no -- playwright install --with-deps && rm -rf /var/lib/apt/lists/* && \
npm exec --no -- playwright-core mark-docker-image "${DOCKER_IMAGE_NAME_TEMPLATE}" && \
npm exec --no -- playwright-core install --with-deps && rm -rf /var/lib/apt/lists/* && \
rm /tmp/playwright-core.tar.gz && \
rm -rf /ms-playwright-agent && \
chmod -R 777 /ms-playwright

Просмотреть файл

@ -12,7 +12,7 @@ apt-get update && apt-get install -y curl && \
apt-get update && apt-get install -y apt-file && apt-file update
# Install tip-of-tree playwright-core and browsers
mkdir /root/tmp && cd /root/tmp && npm init -y && npm i /root/hostfolder/playwright-core.tar.gz && npx playwright install
mkdir /root/tmp && cd /root/tmp && npm init -y && npm i /root/hostfolder/playwright-core.tar.gz && npx playwright-core install
cp /root/hostfolder/inside_docker/list_dependencies.js /root/tmp/list_dependencies.js