mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
A transient Debian/Ubuntu mirror fetch aborts a docker build layer with exit 100 (it killed the web-app-nextcloud swarm openldap build while the same image built fine elsewhere). New lint under tests/lint/docker/dockerfile/apt/ flags any RUN with apt-get update/install that omits Acquire::Retries; retrofit all 15 apt Dockerfiles with -o Acquire::Retries=3. Both apt lints move into the apt/ subpackage. dnf retries by default and apk has no equivalent flag, so both stay out of scope. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
21 lines
879 B
Docker
21 lines
879 B
Docker
ARG JOOMLA_IMAGE
|
|
ARG JOOMLA_VERSION
|
|
ARG JOOMLA_ENTRYPOINT_SCRIPT_HOST_REL
|
|
ARG JOOMLA_ENTRYPOINT_SCRIPT_DOCKER
|
|
FROM ${JOOMLA_IMAGE}:${JOOMLA_VERSION}
|
|
ARG JOOMLA_ENTRYPOINT_SCRIPT_HOST_REL
|
|
ARG JOOMLA_ENTRYPOINT_SCRIPT_DOCKER
|
|
|
|
RUN rm -rf /var/lib/apt/lists/* \
|
|
&& apt-get -o Acquire::Retries=3 update \
|
|
&& apt-get -o Acquire::Retries=3 install -y --no-install-recommends git unzip curl ca-certificates \
|
|
&& curl --connect-timeout 5 --max-time 120 -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY ${JOOMLA_ENTRYPOINT_SCRIPT_HOST_REL} ${JOOMLA_ENTRYPOINT_SCRIPT_DOCKER}
|
|
RUN chmod +x "${JOOMLA_ENTRYPOINT_SCRIPT_DOCKER}" \
|
|
&& ln -sf "${JOOMLA_ENTRYPOINT_SCRIPT_DOCKER}" /usr/local/bin/entrypoint-joomla
|
|
|
|
ENTRYPOINT ["/usr/local/bin/entrypoint-joomla"]
|
|
CMD ["apache2-foreground"]
|