Skip to content

Commit 9a99e45

Browse files
committed
Quarto: use prerelease JSON method (amd64) exactly as requested; remove previous stable/fallback logic.
1 parent 852f0bf commit 9a99e45

1 file changed

Lines changed: 5 additions & 15 deletions

File tree

‎Dockerfile‎

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -88,22 +88,12 @@ RUN set -eux; \
8888
# cleanup \
8989
apt-get autoremove -y && rm -rf /var/lib/apt/lists/*
9090

91-
# Quarto (for scientific writing) — latest AMD64 build
91+
# Quarto (for scientific writing) — prerelease channel, AMD64
9292
RUN set -eux; \
93-
STABLE_URL="https://github.com/quarto-dev/quarto-cli/releases/latest/download/quarto-linux-amd64.deb"; \
94-
TMP_DEB="/tmp/quarto-linux-amd64.deb"; \
95-
if ! curl -fL --retry 5 --retry-all-errors -o "$TMP_DEB" "$STABLE_URL"; then \
96-
echo "Stable Quarto download failed; trying prerelease channel"; \
97-
PRE_URL=$(curl -fsSL https://quarto.org/docs/download/_prerelease.json \
98-
| sed -n 's/.*"download_url"[[:space:]]*:[[:space:]]*"\([^"']*amd64\.deb\)".*/\1/p' \
99-
| head -n1); \
100-
test -n "$PRE_URL"; \
101-
curl -fL --retry 5 --retry-all-errors -o "$TMP_DEB" "$PRE_URL"; \
102-
fi; \
103-
apt-get update -y --quiet; \
104-
apt-get install -y --quiet --no-install-recommends "$TMP_DEB"; \
105-
rm -f "$TMP_DEB" && \
106-
apt-get autoremove -y && rm -rf /var/lib/apt/lists/*
93+
ARCH=amd64; \
94+
curl -L "$(curl -fsSL https://quarto.org/docs/download/_prerelease.json | grep -oP "(?<=\\\"download_url\\\":\\s\\\")https.*${ARCH}\\.deb")" -o /tmp/quarto.deb; \
95+
dpkg -i /tmp/quarto.deb; \
96+
rm /tmp/quarto.deb
10797

10898
# Python dependencies (relaxed pins for rapid development) + Snakemake
10999
RUN python -m pip install --no-cache-dir --upgrade pip setuptools wheel && \

0 commit comments

Comments
 (0)