Merge pull request #193 from suchja/extension

Documentation how to add extensions
This commit is contained in:
yosifkit 2015-03-25 10:55:33 -07:00
commit 85eebcff2f
2 changed files with 22 additions and 0 deletions

View File

@ -56,6 +56,17 @@ Example `docker-compose.yml` for `wordpress`:
Run `docker-compose up`, wait for it to initialize completely, and visit `http://localhost:8080` or `http://host-ip:8080`.
## Add additional libraries / extensions
This image does not provide any additional php-extensions or other libraries, even if they are required by several plugins. That is because there are so many plugins, requiring so many extensions and libraries, that the image will dramatically increase in size.
If you need one or several extensions or libraries, the easiest way is to create your own image. Base it on the version of the official wordpress image you need and add the extensions you need. The [documentation of the php image](https://github.com/docker-library/docs/blob/master/php/README.md#how-to-install-more-php-extensions) shows how to accomplish that in detail.
In order to keep your image with the extensions you require up to date, there are features of Docker Hub which help you:
- [Automated Builds](https://docs.docker.com/docker-hub/builds/): Let Docker Hub automatically create a new image from your Dockerfile each time you push changes to it.
- [Repository Links](https://docs.docker.com/docker-hub/builds/#repository-links): Link your docker image to `library/wordpress` so it is automatically rebuild once the official wordpress image is rebuild.
# Supported Docker versions
This image is officially supported on Docker version 1.5.0.

View File

@ -34,3 +34,14 @@ If you'd like to use an external database instead of a linked `mysql` container,
## %%COMPOSE%%
Run `docker-compose up`, wait for it to initialize completely, and visit `http://localhost:8080` or `http://host-ip:8080`.
## Add additional libraries / extensions
This image does not provide any additional php-extensions or other libraries, even if they are required by several plugins. That is because there are so many plugins, requiring so many extensions and libraries, that the image will dramatically increase in size.
If you need one or several extensions or libraries, the easiest way is to create your own image. Base it on the version of the official wordpress image you need and add the extensions you need. The [documentation of the php image](https://github.com/docker-library/docs/blob/master/php/README.md#how-to-install-more-php-extensions) shows how to accomplish that in detail.
In order to keep your image with the extensions you require up to date, there are features of Docker Hub which help you:
- [Automated Builds](https://docs.docker.com/docker-hub/builds/): Let Docker Hub automatically create a new image from your Dockerfile each time you push changes to it.
- [Repository Links](https://docs.docker.com/docker-hub/builds/#repository-links): Link your docker image to `library/wordpress` so it is automatically rebuild once the official wordpress image is rebuild.