Yury Semikhatsky 70065ba6dd
Revert "chore(driver): roll driver to recent Node.js LTS version (#18… (#18791)
…636)"

The new node resolves loalhost to ::1 by default which breaks API tests
in the ports (Java in particular). Reverting to the previous LTS to
allow some time to implement happy eyeballs algorithm on our end by next
release.

This reverts commit 63a0b75186c984528dc661c6d334bb0fb6a7002a.
Reference https://github.com/microsoft/playwright/issues/18790
2022-11-14 11:30:36 -08:00

24 lines
656 B
Bash
Executable File

#!/bin/bash
set -e
set +x
# Install Node.js
apt-get update && apt-get install -y curl && \
curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
apt-get install -y nodejs
# Install apt-file
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
cp /root/hostfolder/inside_docker/list_dependencies.js /root/tmp/list_dependencies.js
FILENAME="RUN_RESULT"
if [[ -n $1 ]]; then
FILENAME=$1
fi
node list_dependencies.js | tee "/root/hostfolder/$FILENAME"