Based on City-of-Helsinki/drupal-docker-base image with a few additions:
- OpenShift origin client (OC)
- Xdebug
Available PHP versions: 8.3
, 8.4
:
ghcr.io/city-of-helsinki/drupal-web:8.3
ghcr.io/city-of-helsinki/drupal-web:8.4
- You must be logged in to
ghcr.io
Docker repository: https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#authenticating-to-the-container-registry - docker/buildx (most likely already included by default)
- Ability to build multi-platform images. You can check if you have multiplatform BuildKit enabled by calling
docker buildx ls
.
It should output something like (see linux/amd64
and linux/arm64
):
# docker buildx ls
NAME/NODE DRIVER/ENDPOINT STATUS BUILDKIT PLATFORMS
fervent_wright * docker-container
fervent_wright0 unix:///var/run/docker.sock running v0.11.5 linux/amd64, linux/amd64/v2, linux/amd64/v3, linux/386, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, linux/mips64le, linux/mips64
If not, call docker buildx create --use
and docker run --privileged --rm tonistiigi/binfmt --install all
See docker/buildx#building-multi-platform-images for more documentation about building multi-platform images.
To run image locally:
8.1
tag (onamd64
arch):make run-php81-amd64
8.1
tag (onarm64
arch):make run-php81-arm64
To release a specific tag:
- Release
8.1
tag:make push-php81
To release all tags at once: make push-php
.