Skip to content
This repository was archived by the owner on Nov 3, 2024. It is now read-only.

Commit 4270a61

Browse files
authored
fix: do not fail on apt-get update, cleanup (#245)
1 parent 5a9212a commit 4270a61

File tree

7 files changed

+6
-25
lines changed

7 files changed

+6
-25
lines changed

Diff for: docker-compose-services/php8_2/php-build/Dockerfile

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
ARG BASE_IMAGE
2-
FROM $BASE_IMAGE
3-
ENV PHP_EXTENSIONS="curl fileinfo gd pdo_mysql"
1+
ARG PHP_EXTENSIONS="curl fileinfo gd pdo_mysql"
42
SHELL ["bash", "-c"]
53

6-
RUN apt-get update -qq && apt-get install -y -qq build-essential less libpng-dev netcat procps telnet vim zlib1g-dev
4+
RUN (apt-get update || true) && apt-get install -y -qq build-essential less libpng-dev netcat procps telnet vim zlib1g-dev
75
RUN set -eu -o pipefail && for extension in ${PHP_EXTENSIONS}; do \
86
docker-php-ext-configure ${extension} && docker-php-ext-install ${extension}; \
97
done

Diff for: docker-compose-services/sqlsrv/Dockerfile

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
ARG BASE_IMAGE
2-
FROM $BASE_IMAGE
3-
41
ENV PATH="${PATH}:/opt/mssql-tools/bin"
5-
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -o Dpkg::Options::="--force-confold" --no-install-recommends --no-install-suggests apt-utils curl gnupg2 ca-certificates
2+
RUN (apt-get update || true) && DEBIAN_FRONTEND=noninteractive apt-get install -y -o Dpkg::Options::="--force-confold" --no-install-recommends --no-install-suggests apt-utils curl gnupg2 ca-certificates
63

74
RUN curl -sSL -O https://packages.microsoft.com/keys/microsoft.asc
85
RUN apt-key add <microsoft.asc
96
RUN curl -sSL -o /etc/apt/sources.list.d/mssql-release.list https://packages.microsoft.com/config/debian/11/prod.list
107

11-
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -o Dpkg::Options::="--force-confold" --no-install-recommends --no-install-suggests build-essential dialog php-pear php-dev unixodbc-dev locales
8+
RUN (apt-get update || true) && DEBIAN_FRONTEND=noninteractive apt-get install -y -o Dpkg::Options::="--force-confold" --no-install-recommends --no-install-suggests build-essential dialog php-pear php-dev unixodbc-dev locales
129

1310
RUN ACCEPT_EULA=Y DEBIAN_FRONTEND=noninteractive apt-get install -y msodbcsql18 mssql-tools
1411

-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
ARG BASE_IMAGE
2-
FROM $BASE_IMAGE
3-
41
# Add horizon supervisor
52
ADD horizon.conf /etc/supervisor/conf.d

Diff for: recipes/proxy/Dockerfile

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# This is a Dockerfile for use with the ddev-webserver image
22
# It should be in .ddev/web-build/Dockerfile
33
# and then you can expand on it.
4-
ARG BASE_IMAGE=drud/ddev-webserver:v1.9.1
5-
FROM $BASE_IMAGE
64
# If HTTP_PROXY is set in the docker environment, then add the same proxy configuration
75
# into apt system in the Debian-based ddev-webserver image at
86
# /etc/apt/apt.conf.d/proxy.conf

Diff for: web-container-dockerfiles/grpc/Dockerfile

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
ARG BASE_IMAGE
2-
FROM $BASE_IMAGE
3-
41
ENV PHP_VERSION=$DDEV_PHP_VERSION
52
RUN \
6-
apt-get update && apt-get install -y libz-dev php-dev php-pear && \
3+
(apt-get update || true) && apt-get install -y libz-dev php-dev php-pear && \
74
pecl install grpc && \
85
pecl install protobuf && \
96
echo "extension=grpc.so" > /etc/php/$DDEV_PHP_VERSION/cli/conf.d/grpc.ini && \
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
ARG BASE_IMAGE
2-
FROM $BASE_IMAGE
31
ADD laravel-worker.conf /etc/supervisor/conf.d/
42

Diff for: web-container-dockerfiles/stripe-cli/Dockerfile

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11

22
# Install the Stripe CLI
33
# Documentation: https://stripe.com/docs/stripe-cli#install
4-
5-
ARG BASE_IMAGE
6-
FROM $BASE_IMAGE
7-
84
RUN curl -s https://packages.stripe.dev/api/security/keypair/stripe-cli-gpg/public | gpg --dearmor | sudo tee /usr/share/keyrings/stripe.gpg
95
RUN echo "deb [signed-by=/usr/share/keyrings/stripe.gpg] https://packages.stripe.dev/stripe-cli-debian-local stable main" | sudo tee -a /etc/apt/sources.list.d/stripe.list
10-
RUN sudo apt update && apt install stripe
6+
RUN (apt update || true) && apt install stripe

0 commit comments

Comments
 (0)