Make container noisier for debug

This commit is contained in:
2025-04-25 00:02:44 -04:00
parent cf9621b72a
commit 52b0b67b38

View File

@@ -1840,11 +1840,10 @@ create_mc_apt_container() {
declare -g CNT declare -g CNT
local -a cmds=("$@") local -a cmds=("$@")
{ command -v buildah &>/dev/null || install_package buildah &>/dev/null; } && { command -v buildah &>/dev/null || install_package buildah &>/dev/null; } &&
echo HERE &&
CNT=$(sudo buildah from --quiet alpine:edge) && CNT=$(sudo buildah from --quiet alpine:edge) &&
sudo buildah run "$CNT" -- sh -c ' sudo buildah run "$CNT" -- sh -c '
apk add --no-cache apt curl gnupg && apk add --no-cache apt curl gnupg
curl -fsSL https://dist.jriver.com/mediacenter@jriver.com.gpg.key | gpg --dearmor -o /usr/share/keyrings/jriver-com-archive-keyring.gpg && curl -fsSL https://dist.jriver.com/mediacenter@jriver.com.gpg.key | gpg --dearmor -o /usr/share/keyrings/jriver-com-archive-keyring.gpg
cat <<-EOF > /etc/apt/sources.list.d/jriver.sources cat <<-EOF > /etc/apt/sources.list.d/jriver.sources
Types: deb Types: deb
URIs: https://dist.jriver.com/latest/mediacenter/ URIs: https://dist.jriver.com/latest/mediacenter/
@@ -1852,8 +1851,8 @@ create_mc_apt_container() {
Suites: '"$MC_REPO"' Suites: '"$MC_REPO"'
Components: main Components: main
Architectures: '"$MC_ARCH"' Architectures: '"$MC_ARCH"'
EOF && EOF
apt-get update --allow-insecure-repositories' && apt-get update --allow-insecure-repositories'
# If user passes command strings run them in the container # If user passes command strings run them in the container
for cmd in "${cmds[@]}"; do for cmd in "${cmds[@]}"; do
sudo buildah run "$CNT" -- sh -c "$cmd" sudo buildah run "$CNT" -- sh -c "$cmd"