-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Adjust "wp-config.php" behavior to be skipped if configuration is not provided #206
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
Conversation
It doesn't help a ton, but it is easier to review at https://github.com/docker-library/wordpress/pull/206/files?w=1 (ignoring whitespace) |
Of course, it fails because I'll probably just scrape the variables we need directly from the environment instead in that bit of the script (which is still better than taking them in |
… provided Also, unset "secret" environment variables before starting Apache/FPM to ensure that a stray `phpinfo()` doesn't include secrets from our code.
Yay 🍏 |
- `docker`: 1.13.1 - `golang`: remove `wheezy` for 1.8 (docker-library/golang#144), update `1.8-rc` to be explicit about tracking pre-releases (docker-library/golang#145) - `irssi`: remove `VOLUME` (jessfraz/irssi#13) - `postgres`: 9.6.2, 9.3.16, 9.4.11, 9.5.6, 9.2.20, put `docker-entrypoint.sh` explicitly in `PATH` (docker-library/postgres#260) - `wordpress`: update `wp-config.php` handling to only generate/munge configuration upon user request and to unset all related environment variables explicitly (docker-library/wordpress#206)
Hey this is still an issue for me. Using the any tagged official wordpress image. But, my preferred tag is 7.1-fpm Here's the docker-compose.yml
I fail with the error: The image works if I comment out the line |
It'll only skip setting config values in |
Oh I see, thanks for the information. |
Also, unset "secret" environment variables before starting Apache/FPM to ensure that a stray
phpinfo()
doesn't include secrets from our code. (cc @thaJeztah)Fixes #135
It's worth noting that WordPress now will also detect the absence of
wp-config.php
, and have a short pre-wizard to configure it, so all configuration can be done directly in the browser (which this PR enables by skipping thewp-config.php
behavior if we don't have one of the specialWORDPRESS_...
vars, or an explicitly linkedmysql
container sharing environment variables with us).