Datasets:
File size: 1,811 Bytes
45721da | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | FROM node:20-bookworm
ARG DEBIAN_FRONTEND=noninteractive
ARG TARGET_COMMIT=77a82a631bcc6219c4f7892f7d538f5e2b58cd57
RUN set -eux; \
printf '%s\n' \
'Acquire::Retries "5";' \
'Acquire::http::Timeout "30";' \
'Acquire::https::Timeout "30";' \
'Acquire::http::Pipeline-Depth "0";' \
'Acquire::https::Pipeline-Depth "0";' \
'Acquire::BrokenProxy "true";' \
> /etc/apt/apt.conf.d/80-retries; \
find /etc/apt -type f \( -name '*.list' -o -name '*.sources' \) \
-exec sed -i 's|http://deb.debian.org|https://deb.debian.org|g; s|http://security.debian.org|https://security.debian.org|g' {} +; \
installed=0; \
for attempt in 1 2 3 4 5; do \
if apt-get update && apt-get install -y --no-install-recommends \
bash \
ca-certificates \
curl \
wget \
git \
patch \
unzip \
xz-utils \
libcurl4-openssl-dev \
libxml2-utils \
libharfbuzz-dev \
libfribidi-dev \
poppler-utils \
fonts-dejavu-core; then \
installed=1; \
break; \
fi; \
apt-get clean; \
sleep 5; \
done; \
if [ "$installed" -ne 1 ]; then exit 1; fi; \
apt-get clean; \
update-ca-certificates; \
node --version; \
npm --version
RUN printf '%s\n' \
'retry = 5' \
'retry-all-errors' \
'connect-timeout = 30' \
> /root/.curlrc
RUN git clone https://github.com/quarto-dev/quarto-cli.git /testbed && \
cd /testbed && \
git checkout --detach "$TARGET_COMMIT" && \
test "$(git rev-parse HEAD)" = "$TARGET_COMMIT"
WORKDIR /testbed
RUN ./configure.sh
ENV PATH="/testbed/package/dist/bin:${PATH}" \
QUARTO_TESTS_NO_CONFIG="true" \
QUARTO_TESTS_FORCE_NO_VENV="true"
CMD ["/bin/bash"]
|