Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main synch #5

Closed
wants to merge 12 commits into from
18 changes: 10 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
name: "Build on main"
on:
push:
branches: [ main ]
workflow_dispatch:
push:
branches:
- main

jobs:
scheduler:
name: Build Trigger
runs-on: ubuntu-latest
strategy:
matrix:
version: [ 'buster', 'bullseye' ]
version: [ 'bullseye', 'bookworm' ]
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v6
with:
push: true
platforms: linux/amd64,linux/arm64
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "Pull Request"
on:
pull_request:
branches:
- main

jobs:
lint:
strategy:
matrix:
version: [ 'bullseye', 'bookworm' ]
runs-on: ubuntu-latest
container: pipelinecomponents/hadolint:latest
steps:
- uses: actions/checkout@v4
- uses: hadolint/[email protected]
with:
dockerfile: ./src/${{ matrix.version }}/src/Dockerfile
14 changes: 7 additions & 7 deletions .github/workflows/schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,31 @@ name: "Build Scheduler"
on:
workflow_dispatch:
schedule:
- cron: '35 1 * * 0'
- cron: '30 3 * * 1'

jobs:
scheduler:
name: Build Trigger
runs-on: ubuntu-latest
strategy:
matrix:
version: [ 'buster', 'bullseye' ]
version: [ 'bullseye', 'bookworm' ]
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v6
with:
push: true
platforms: linux/amd64,linux/arm64
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# PHP Base Image (WIP)

This Repo contains the build instructions for the PHP base image (Stretch and Buster). All PHP images should inherit from this image.
This Repo contains the build instructions for the PHP base image (bullseye and bookworm). All PHP images should inherit from this image.

## Documentation

Expand Down
17 changes: 8 additions & 9 deletions src/buster/src/Dockerfile → src/bookworm/src/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
FROM openmage/debian:buster-latest
FROM openmage/debian:bookworm-latest

COPY root /

## configure default environment stuff and file permissions
RUN set -xe; \
chmod 755 /usr/local/bin/{docker-php-source-prepare,docker-entrypoint,docker-fpm-healthcheck,docker-php-ext-configure,docker-php-ext-enable,docker-php-ext-disable,docker-php-ext-install,docker-php-pecl-install,docker-php-source,phpgosu}; \
rm -rf /etc/apt/preferences.d/debian_main_cmake; \
chmod 755 /usr/local/bin/{docker-php-source-prepare,docker-entrypoint,docker-fpm-healthcheck,docker-php-ext-configure,docker-php-ext-enable,docker-php-ext-disable,docker-php-ext-disable,docker-php-ext-install,docker-php-pecl-install,docker-php-source,phpgosu}; \
mkdir /home/www-data; \
chmod 711 /home/www-data; \
chown www-data:www-data /home/www-data; \
Expand Down Expand Up @@ -35,19 +34,19 @@ ARG IMAGICK_BUILD_REQUIREMENTS_EXTRA=""
ARG IMAGICK_EXTRA_CONFIGURE_ARGS=""

ARG MOZJPEG_EXTRA_CONFIGURE_ARGS=""
ARG MOZJPEG_VERSION="4.0.3"
ARG MOZJPEG_VERSION="4.1.1"

ARG TIFF_VERSION="4.6.0"
ARG TIFF_EXTRA_CONFIGURE_ARGS=""
ARG TIFF_VERSION="4.3.0"

ARG WEBP_VERSION="1.2.2"
ARG WEBP_VERSION="1.4.0"
ARG WEBP_EXTRA_CONFIGURE_ARGS=""

ARG OPENJPEG_VERSION="2.4.0"

ARG IMAGICK_VERSION="7.1.0-25"
ARG IMAGICK_VERSION="7.1.1-36"
ARG IMAGICK_EXTRA_CONFIGURE_ARGS=""

ARG OPENJPEG_VERSION="2.5.2"

## configure imagick and the dependencies
RUN set -xe; \
\
Expand Down
File renamed without changes.
12 changes: 6 additions & 6 deletions src/bullseye/src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,20 @@ ARG IMAGICK_BUILD_REQUIREMENTS="curl cmake gcc libtool libedit-dev liblcms2-dev
ARG IMAGICK_BUILD_REQUIREMENTS_EXTRA=""
ARG IMAGICK_EXTRA_CONFIGURE_ARGS=""

ARG MOZJPEG_VERSION="4.1.1"
ARG MOZJPEG_EXTRA_CONFIGURE_ARGS=""
ARG MOZJPEG_VERSION="4.0.3"

ARG TIFF_VERSION="4.6.0"
ARG TIFF_EXTRA_CONFIGURE_ARGS=""
ARG TIFF_VERSION="4.3.0"

ARG WEBP_VERSION="1.2.2"
ARG WEBP_VERSION="1.4.0"
ARG WEBP_EXTRA_CONFIGURE_ARGS=""

ARG OPENJPEG_VERSION="2.4.0"

ARG IMAGICK_VERSION="7.1.0-25"
ARG IMAGICK_VERSION="7.1.1-36"
ARG IMAGICK_EXTRA_CONFIGURE_ARGS=""

ARG OPENJPEG_VERSION="2.5.2"

## configure imagick and the dependencies
RUN set -xe; \
\
Expand Down
Loading