Skip to content

Commit

Permalink
Docker - Drupal - Bump PHP to 8.2 (#2824)
Browse files Browse the repository at this point in the history
* Docker - Drupal - Upgrade PHP

* Docker - Drupal - Fix latest version

* fix: instal curl
  • Loading branch information
armandomiani authored Dec 4, 2024
1 parent 2068edf commit deea2d7
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 8 deletions.
8 changes: 6 additions & 2 deletions docker/drupal/10/php8/debian12/10.2/apache/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
FROM marketplace.gcr.io/google/php8-apache2:8.1 as ospo
FROM marketplace.gcr.io/google/debian12 as ospo

# Download Licenses and restricted source-code
COPY components.csv /components.csv
COPY source_code.txt /source_code.txt

RUN apt update && apt -y install curl ca-certificates

RUN curl -o /download-licenses.sh -L https://raw.githubusercontent.com/GoogleCloudPlatform/click-to-deploy/master/scripts/download-licenses.sh \
&& curl -o /download-ref-repos.sh -L https://raw.githubusercontent.com/GoogleCloudPlatform/click-to-deploy/master/scripts/download-ref-repos.sh \
&& chmod +x /download-licenses.sh \
Expand All @@ -13,7 +15,7 @@ RUN mkdir -p /usr/src/licenses \
&& /download-licenses.sh /components.csv /usr/src/licenses \
&& /download-ref-repos.sh /source_code.txt /usr/src

FROM marketplace.gcr.io/google/php8-apache2:8.1
FROM marketplace.gcr.io/google/php8-apache2:8.2

COPY --from=ospo /usr/src /usr/src

Expand All @@ -25,12 +27,14 @@ RUN set -ex; \
libjpeg-dev \
libpng-dev \
libpq-dev \
libwebp-dev \
libzip-dev \
; \
\
docker-php-ext-configure gd \
--with-freetype=/usr \
--with-jpeg=/usr \
--with-webp \
; \
\
docker-php-ext-install -j "$(nproc)" \
Expand Down
8 changes: 6 additions & 2 deletions docker/drupal/10/php8/debian12/10.3/apache/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
FROM marketplace.gcr.io/google/php8-apache2:8.1 as ospo
FROM marketplace.gcr.io/google/debian12 as ospo

# Download Licenses and restricted source-code
COPY components.csv /components.csv
COPY source_code.txt /source_code.txt

RUN apt update && apt -y install curl ca-certificates

RUN curl -o /download-licenses.sh -L https://raw.githubusercontent.com/GoogleCloudPlatform/click-to-deploy/master/scripts/download-licenses.sh \
&& curl -o /download-ref-repos.sh -L https://raw.githubusercontent.com/GoogleCloudPlatform/click-to-deploy/master/scripts/download-ref-repos.sh \
&& chmod +x /download-licenses.sh \
Expand All @@ -13,7 +15,7 @@ RUN mkdir -p /usr/src/licenses \
&& /download-licenses.sh /components.csv /usr/src/licenses \
&& /download-ref-repos.sh /source_code.txt /usr/src

FROM marketplace.gcr.io/google/php8-apache2:8.1
FROM marketplace.gcr.io/google/php8-apache2:8.2

COPY --from=ospo /usr/src /usr/src

Expand All @@ -25,12 +27,14 @@ RUN set -ex; \
libjpeg-dev \
libpng-dev \
libpq-dev \
libwebp-dev \
libzip-dev \
; \
\
docker-php-ext-configure gd \
--with-freetype=/usr \
--with-jpeg=/usr \
--with-webp \
; \
\
docker-php-ext-install -j "$(nproc)" \
Expand Down
6 changes: 5 additions & 1 deletion docker/drupal/9/php8/debian11/9.5/apache/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
FROM marketplace.gcr.io/google/php8-apache2:8.1 as ospo
FROM marketplace.gcr.io/google/debian12 as ospo

# Download Licenses and restricted source-code
COPY components.csv /components.csv
COPY source_code.txt /source_code.txt

RUN apt update && apt -y install curl ca-certificates

RUN curl -o /download-licenses.sh -L https://raw.githubusercontent.com/GoogleCloudPlatform/click-to-deploy/master/scripts/download-licenses.sh \
&& curl -o /download-ref-repos.sh -L https://raw.githubusercontent.com/GoogleCloudPlatform/click-to-deploy/master/scripts/download-ref-repos.sh \
&& chmod +x /download-licenses.sh \
Expand All @@ -25,12 +27,14 @@ RUN set -ex; \
libjpeg-dev \
libpng-dev \
libpq-dev \
libwebp-dev \
libzip-dev \
; \
\
docker-php-ext-configure gd \
--with-freetype=/usr \
--with-jpeg=/usr \
--with-webp \
; \
\
docker-php-ext-install -j "$(nproc)" \
Expand Down
6 changes: 5 additions & 1 deletion docker/drupal/templates/Dockerfile.template
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{{- $drupal := index .Packages "drupal" -}}
{{- $composer := index .Packages "composer" -}}

FROM marketplace.gcr.io/google/php8-apache2:8.1 as ospo
FROM marketplace.gcr.io/google/debian12 as ospo

# Download Licenses and restricted source-code
COPY components.csv /components.csv
COPY source_code.txt /source_code.txt

RUN apt update && apt -y install curl ca-certificates

RUN curl -o /download-licenses.sh -L https://raw.githubusercontent.com/GoogleCloudPlatform/click-to-deploy/master/scripts/download-licenses.sh \
&& curl -o /download-ref-repos.sh -L https://raw.githubusercontent.com/GoogleCloudPlatform/click-to-deploy/master/scripts/download-ref-repos.sh \
&& chmod +x /download-licenses.sh \
Expand All @@ -28,12 +30,14 @@ RUN set -ex; \
libjpeg-dev \
libpng-dev \
libpq-dev \
libwebp-dev \
libzip-dev \
; \
\
docker-php-ext-configure gd \
--with-freetype=/usr \
--with-jpeg=/usr \
--with-webp \
; \
\
docker-php-ext-install -j "$(nproc)" \
Expand Down
4 changes: 2 additions & 2 deletions docker/drupal/versions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cloudbuild:
enable_parallel: false
versions:
- dir: 10/php8/debian12/10.3/apache
from: marketplace.gcr.io/google/php8-apache2:8.1
from: marketplace.gcr.io/google/php8-apache2:8.2
packages:
composer:
gpg: f07934fad44f9048c0dc875a506cca31cc2794d6aebfc1867f3b1fbf48dce2c5
Expand All @@ -41,7 +41,7 @@ versions:
- '10'
- latest
- dir: 10/php8/debian12/10.2/apache
from: marketplace.gcr.io/google/php8-apache2:8.1
from: marketplace.gcr.io/google/php8-apache2:8.2
packages:
composer:
gpg: f07934fad44f9048c0dc875a506cca31cc2794d6aebfc1867f3b1fbf48dce2c5
Expand Down

0 comments on commit deea2d7

Please sign in to comment.