16 lines
941 B
Bash
Executable File
16 lines
941 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Resolve and fetch the complete runtime, including vendor DEB, without a network.
|
|
set -Eeuo pipefail
|
|
BUNDLE=$(cd "${1:?Usage: offline/test_cold.sh BUNDLE}" && pwd)
|
|
IMAGE=${IOMATEX_BUNDLE_BUILDER_IMAGE:-debian:bullseye@sha256:6f519a81440354a85eb592c5f32109ab80605f6b892455983a6f618bf87fabe9}
|
|
PROJECT=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
|
|
docker run --rm --network none -v "$PROJECT/third_party/node:/node:ro" -v "$BUNDLE:/bundle:ro" "$IMAGE" bash -ec '
|
|
printf "deb [trusted=yes] file:/bundle/repo ./\n" > /etc/apt/sources.list
|
|
rm -f /etc/apt/sources.list.d/*
|
|
dpkg --add-architecture arm64
|
|
apt-get update
|
|
touch /tmp/empty-status
|
|
packages=$(sed "s/#.*//" /bundle/requested-packages.txt | xargs)
|
|
apt-get -y --download-only --no-install-recommends -o APT::Architecture=arm64 -o Dir::State::status=/tmp/empty-status install $packages qt-video-oes-plugins /node/nodejs_20.20.2-1nodesource1_arm64.deb
|
|
'
|