Skip to content

πŸ“¦ Dockerfiles from WebDevOps for PHP, Apache and Nginx

License

Notifications You must be signed in to change notification settings

night-xiaoqi/Dockerfile

This branch is 3 commits behind webdevops/Dockerfile:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4e854cd Β· Sep 12, 2024
Dec 13, 2022
Jun 28, 2024
Jun 28, 2024
Aug 6, 2024
Sep 10, 2024
Jun 29, 2024
Aug 6, 2024
Dec 13, 2022
Nov 10, 2016
Oct 25, 2018
Nov 1, 2018
Jun 28, 2024
Dec 13, 2022
Dec 13, 2022
Aug 6, 2024
Nov 21, 2016

Repository files navigation

PHP docker images with super powers πŸš€

We provide images which extend the official PHP-Images. We add additional stuff like:

  • almost any PHP module preinstalled
  • configuration based on ENV variables
  • run multiple services (like php-fpm and nginx) with supervisord

GitHub issuesGitHub forksGitHub starsGitHub license pipeline status

Automated build and test running on Gitlab CI (GitLab.com CI custom Google Cloud runner) sponsored by Onedrop GmbH & Co. KG.

Docker layout

Communication and support

Or write an issue in our GitHub repository.

Or join our discord https://discord.gg/gnYPfZhX

Build process

File generation

The general build process is currently a mixture of python jinja2 legacy and PHP.

First we build the files inside the docker directory using this command:

docker run --rm -ti -v $PWD:/app -w /app webdevops/dockerfile-build-env make provision

It will use the Jinja2 templates inside of the template directory and the config files from the provisioning directory.

The files in the docker directory are never modified manually

This will be replaced with PHP twig templates in the future to streamline everything.

Building in CI

We generate a multi stage Gitlab-CI configuration using PHP:

docker run --rm -ti -v $PWD:/app -w /app/ci webdevops/php:8.1 composer install
docker run --rm -ti -v $PWD:/app -w /app webdevops/php:8.1 ci/console gitlab:generate

Gitlab CI builds every image independant and runs serverspec and structure tests on every image before pushing them to the registry.

Documentation

As in many projects the documentation is kind of up to date πŸ˜….

Debian PHP

The following images which are currently supported are based on php:{VER}-fpm-buster.

  • webdevops/php:8.0
  • webdevops/php:8.1
  • webdevops/php:8.2
  • webdevops/php:8.3
  • webdevops/php-dev:8.0
  • webdevops/php-dev:8.1
  • webdevops/php-dev:8.2
  • webdevops/php-dev:8.3
  • webdevops/php-apache:8.0
  • webdevops/php-apache:8.1
  • webdevops/php-apache:8.2
  • webdevops/php-apache:8.3
  • webdevops/php-apache-dev:8.0
  • webdevops/php-apache-dev:8.1
  • webdevops/php-apache-dev:8.2
  • webdevops/php-apache-dev:8.3
  • webdevops/php-nginx:8.0
  • webdevops/php-nginx:8.1
  • webdevops/php-nginx:8.2
  • webdevops/php-nginx:8.3
  • webdevops/php-nginx-dev:8.0
  • webdevops/php-nginx-dev:8.1
  • webdevops/php-nginx-dev:8.2
  • webdevops/php-nginx-dev:8.3

Alpine PHP

The following images which are currently supported are based on php:{VER}-fpm-alpine.

  • webdevops/php:8.0-alpine
  • webdevops/php:8.1-alpine
  • webdevops/php:8.2-alpine
  • webdevops/php:8.3-alpine
  • webdevops/php-dev:8.0-alpine
  • webdevops/php-dev:8.1-alpine
  • webdevops/php-dev:8.2-alpine
  • webdevops/php-dev:8.3-alpine
  • webdevops/php-apache:8.0-alpine
  • webdevops/php-apache:8.1-alpine
  • webdevops/php-apache:8.2-alpine
  • webdevops/php-apache:8.3-alpine
  • webdevops/php-apache-dev:8.0-alpine
  • webdevops/php-apache-dev:8.1-alpine
  • webdevops/php-apache-dev:8.2-alpine
  • webdevops/php-apache-dev:8.3-alpine
  • webdevops/php-nginx:8.0-alpine
  • webdevops/php-nginx:8.1-alpine
  • webdevops/php-nginx:8.2-alpine
  • webdevops/php-nginx:8.3-alpine
  • webdevops/php-nginx-dev:8.0-alpine
  • webdevops/php-nginx-dev:8.1-alpine
  • webdevops/php-nginx-dev:8.2-alpine
  • webdevops/php-nginx-dev:8.3-alpine

About

πŸ“¦ Dockerfiles from WebDevOps for PHP, Apache and Nginx

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 68.2%
  • Python 13.5%
  • Dockerfile 10.0%
  • Ruby 4.0%
  • Jinja 3.6%
  • PHP 0.6%
  • Other 0.1%