diff --git a/config/hwlab-node-control-plane.yaml b/config/hwlab-node-control-plane.yaml index c5e40454..03ec6734 100644 --- a/config/hwlab-node-control-plane.yaml +++ b/config/hwlab-node-control-plane.yaml @@ -140,7 +140,7 @@ targets: - ARG no_proxy - RUN ln -sf /usr/local/bin/bun /usr/local/bin/bunx - ENV HWLAB_CI_NODE_DEPS=/opt/hwlab-ci-node-deps/node_modules - - RUN set -eu; mkdir -p /opt/hwlab-ci-node-deps; cd /opt/hwlab-ci-node-deps; npm init -y >/dev/null; if [ -n "${HTTP_PROXY:-}" ]; then npm config set proxy "$HTTP_PROXY"; fi; if [ -n "${HTTPS_PROXY:-}" ]; then npm config set https-proxy "$HTTPS_PROXY"; fi; npm install --omit=dev --ignore-scripts --no-audit --no-fund yaml@2.8.3; node --input-type=module -e 'import("yaml").then(() => console.log("yaml-ok"))' + - RUN set -eu; deps=/opt/hwlab-ci-node-deps/node_modules; mkdir -p "$deps/yaml"; proxy="${HTTPS_PROXY:-${HTTP_PROXY:-}}"; curl_args="-fsSL --connect-timeout 10 --max-time 120 --retry 2"; if [ -n "$proxy" ]; then curl_args="$curl_args --proxy $proxy"; fi; curl $curl_args https://registry.npmjs.org/yaml/-/yaml-2.8.3.tgz | tar -xz -C "$deps/yaml" --strip-components=1; test -f "$deps/yaml/package.json"; node -e 'const path=require("path"); const yaml=require("/opt/hwlab-ci-node-deps/node_modules/yaml"); console.log("yaml-ok", typeof yaml.parse, path.basename(require.resolve("/opt/hwlab-ci-node-deps/node_modules/yaml")));' - RUN node --version && npm --version && bun --version && git --version && python3 --version && docker --version && ssh -V buildArgs: {} buildNetwork: host