fix: route JD01 browser deps through apt proxy
This commit is contained in:
@@ -823,7 +823,23 @@ lanes:
|
|||||||
npx --version
|
npx --version
|
||||||
install:
|
install:
|
||||||
executor: host
|
executor: host
|
||||||
dependencyCommand: npm install --no-save --package-lock=false --ignore-scripts --no-audit --no-fund playwright@1.59.1 && npx playwright install-deps chromium
|
dependencyCommand: |
|
||||||
|
set -eu
|
||||||
|
npm install --no-save --package-lock=false --ignore-scripts --no-audit --no-fund playwright@1.59.1
|
||||||
|
if [ -n "${HTTP_PROXY:-}" ]; then
|
||||||
|
cat >/etc/apt/apt.conf.d/99unidesk-host-proxy <<APT_PROXY
|
||||||
|
Acquire::http::Proxy "${HTTP_PROXY}";
|
||||||
|
Acquire::https::Proxy "${HTTPS_PROXY:-$HTTP_PROXY}";
|
||||||
|
Acquire::Retries "3";
|
||||||
|
Acquire::http::Timeout "60";
|
||||||
|
Acquire::https::Timeout "60";
|
||||||
|
APT_PROXY
|
||||||
|
fi
|
||||||
|
for apt_source in /etc/apt/sources.list /etc/apt/sources.list.d/*.list /etc/apt/sources.list.d/*.sources; do
|
||||||
|
[ -f "$apt_source" ] || continue
|
||||||
|
sed -i 's|http://mirrors.jdcloudcs.com/ubuntu|http://archive.ubuntu.com/ubuntu|g' "$apt_source"
|
||||||
|
done
|
||||||
|
npx playwright install-deps chromium
|
||||||
browserCommand: PLAYWRIGHT_BROWSERS_PATH=0 npx playwright install chromium
|
browserCommand: PLAYWRIGHT_BROWSERS_PATH=0 npx playwright install chromium
|
||||||
stateDir: /var/lib/unidesk/hwlab-source-workspace-install
|
stateDir: /var/lib/unidesk/hwlab-source-workspace-install
|
||||||
timeoutSeconds: 900
|
timeoutSeconds: 900
|
||||||
|
|||||||
Reference in New Issue
Block a user