fix silently skipped init scripts#453
fix silently skipped init scripts#453tianon merged 1 commit intodocker-library:masterfrom banzaicloud:fix-initdb-silent-fail
Conversation
|
I'm OK with this, but I don't understand the purpose of |
|
Hi, @tianon, the purpose of stdout of |
|
Right, that's what's got me confused -- it'd be pretty unique for someone to not have that directory existing, given that it's created in the base: Line 23 in 075c24d |
|
(And in that case, I think it's totally appropriate for folks to get a harmless |
|
Ohh i see, that makes more sense. I just removed the extra check. |
|
Once Travis is happy again I think we're good to merge. 👍 |
- `bash`: tianon/docker-bash#11 - `cassandra`: docker-library/cassandra#153 - `ghost`: docker-library/ghost#140 - `haproxy`: 1.8.13 - `httpd`: docker-library/httpd#106 - `mongo`: docker-library/mongo#289 - `mysql`: 5.7.23, 8.0.12, 5.5.61, 5.6.41, generate error on inability to read `initdb.d` files (docker-library/mysql#453) - `openjdk`: update `latest` to OpenJDK 10 (docker-library/openjdk#220) - `owncloud`: docker-library/owncloud#104 - `percona`: update to Stretch (docker-library/percona#67) - `postgres`: `11~beta2-2.pgdg90+2` - `rabbitmq`: docker-library/rabbitmq#270 - `rocket.chat`: 0.68.0 - `tomcat`: docker-library/tomcat#127 - `wordpress`: `WORDPRESS_CONFIG_EXTRA` (docker-library/wordpress#142), docker-library/wordpress#321 So, mostly instances of docker-library/php#666 with a few other changes mixed in.
The for loop calling process_init_file in docker-entrypoint.sh silently skips if there are permission issues.
Initializing
the official docs abour initializing-a-fresh-instance instructs to bind mount the /docker-entrypoint-initdb.d/ dir:
the
forcycle on a non readable directory (mode 600) silently skips the loop body, leaving the user wonder what's wrong with scripts.Proposed fix
by adding an extra
lscommand would produce an error message: