-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep the source and instead just "make clean" #41
Conversation
I'm wondering if we should just install and keep |
@tianon I think +1 on the |
So it looks like we need to expand out some of the build dependencies and then add in "runtime" deps (for |
Updated: diff --git a/5.6/Dockerfile b/5.6/Dockerfile
index afbd82c..5e3c4f7 100644
--- a/5.6/Dockerfile
+++ b/5.6/Dockerfile
@@ -3,6 +3,9 @@ FROM debian:jessie
# persistent / runtime deps
RUN apt-get update && apt-get install -y ca-certificates curl libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
+# phpize deps
+RUN apt-get update && apt-get install -y autoconf pkg-config --no-install-recommends && rm -r /var/lib/apt/lists/*
+
##<autogenerated>##
##</autogenerated>##
@@ -20,8 +23,6 @@ RUN buildDeps=" \
libreadline6-dev \
libssl-dev \
libxml2-dev \
- m4 \
- pkg-config \
"; \
set -x \
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \ |
I've been playing with trying to compile FPM directly from this, and haven't had any luck (it's in |
Perhaps running a separate build only works for things under I don't have time to do this today, but it would be interesting to iterate through the unbuilt extensions under
That would at least show that It seems like it's fine to deal with the |
Maybe we should also setup the following:
I'm thinking something like |
Having conf.d sounds cool, assuming that option wasn't added to a more recent version of PHP than 5.4. I also think having the config under |
Well, one easy way to find out... 😄 |
How about |
👍 |
/me too 👍 |
For example, the following makes WordPress work: ```Dockerfile RUN apt-get update && apt-get install -y libpng12-dev && rm -rf /var/lib/apt/lists/* \ && docker-php-ext-install gd \ && apt-get purge --auto-remove -y libpng12-dev RUN docker-php-ext-install mysqli ```
LGTM |
@md5 care to take a look at my scripts? 👍 |
4d09bc4 Add new
|
So, this will require a change on the WordPress images (which are now |
I've got the change staged locally and ready for committing as soon as @md5 is happy with my scripts here. 😈 |
Keep the source and instead just "make clean"
@md5, if you have issues with this let us know or make a PR. We need these changes to fix wordpress. |
@tianon: the scripts look fine. Sorry I couldn't review them earlier, but I was AFK today. The one thing I'd say is that there will probably be people making images based on this one who will end up needing to delete or modify the |
Indeed. I guess if it becomes common enough, we could always add a flag to the script to disable the behavior. However, this is part of the reason I made each "extension" go into a separate file, so it would be easy to do things like |
See also docker-library/wordpress#26 for a concrete implementation of this in WordPress. 😄 |
- `php`: fix some Apache woes (docker-library/php#43), and add `docker-php-ext-install` and `docker-php-ext-configure` (docker-library/php#41) - `tomcat`: 7.0.57 - `wordpress`: push more of the PHP+Apache logic into `php` where it belongs (docker-library/wordpress#25), and update the image to use the new `docker-php-ext-install` magic for the extra core extensions it needs (docker-library/wordpress#26)
- `php`: fix some Apache woes (docker-library/php#43), and add `docker-php-ext-install` and `docker-php-ext-configure` (docker-library/php#41) - `tomcat`: 7.0.57 - `wordpress`: push more of the PHP+Apache logic into `php` where it belongs (docker-library/wordpress#25), and update the image to use the new `docker-php-ext-install` magic for the extra core extensions it needs (docker-library/wordpress#26)
As discussed starting at #39 (comment) (hopefully with more magic to come).
Fixes #42 (4d09bc4)