Explorar o código

Merge pull request #193 from suchja/extension

Documentation how to add extensions
yosifkit %!s(int64=10) %!d(string=hai) anos
pai
achega
85eebcff2f
Modificáronse 2 ficheiros con 22 adicións e 0 borrados
  1. 11 0
      wordpress/README.md
  2. 11 0
      wordpress/content.md

+ 11 - 0
wordpress/README.md

@@ -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.

+ 11 - 0
wordpress/content.md

@@ -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.