Base PHP images for SquareOne projects
10K+
Base docker images for SquareOne projects. View it on DockerHub.
Image Name: moderntribe/squareone-php
latest: The latest Dockerfile version using the most recent PHP version (currently 8.0),
built from the master branch.80-latest: The latest Dockerfile version for PHP 8.0, built from the master branch.80-<x.y.z> or 80-<x.y>: Specific Dockerfile versions for PHP 8.0, built based on matching tags.74-latest: The latest Dockerfile version for PHP 7.4, built from the master branch.74-<x.y.z> or 74-<x.y>: Specific Dockerfile versions for PHP 7.4, built based on matching tags.moderntribe/squareone-php:80-1.0 moderntribe/squareone-php:74-2.1Create a directory for the new version, e.g., /php/8.1/
Create the Dockerfile and any supporting files in that directory.
Add automated build configurations to Docker Hub moderntribe/squareone-php for the PHP version. Here is an
example of the build rules to create version 8.0:
| Source Type | Source | Docker Tag | Dockerfile location | Build Context |
|---|---|---|---|---|
| Branch | master | 80-latest | Dockerfile | /php/8.0/ |
| Tag | /^php80-([0-9.]+)$/ | 80-{\1} | Dockerfile | /php/8.0/ |
After you've made changes to a Dockerfile, it should be built locally and tested before being released.
docker pull mlocati/php-extension-installerDockerfile that was modifieddocker build -t moderntribe/squareone-php:$version-test ., e.g. docker build -t moderntribe/squareone-php:74-3.0.6-test .x-php image.x-php: &php
# Original image
# image: moderntribe/squareone-php:74-3.0
# Test image
image: moderntribe/squareone-php:74-3.0.6-test
so start and validate the project successfully loads.master branch for the
*-latest tags.php80-1.0.0 for
the first release of a build for PHP 8.0.php<version>-<major>.<minor>.<patch>. <major> versions introduce
breaking changes. <minor> versions add features and fix bugs. <patch> versions fix bugs.When using an image from this repo in the downstream, you can add custom scripts in the docker-entrypoint.d folder.
All scripts in there will be copied over and automatically executed with run-parts
Keep in mind the limitations of naming these scripts, they must consist entirely of ASCII upper- and lower-case letters, ASCII digits, ASCII underscores, and ASCII minus-hyphens. So no .sh extensions.
Content type
Image
Digest
sha256:b9e5946d1…
Size
201.2 MB
Last updated
about 3 years ago
docker pull moderntribe/squareone-php