{"action":"created","issue":{"url":"https://api.github.com/repos/docker-library/postgres/issues/40","labels_url":"https://api.github.com/repos/docker-library/postgres/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/docker-library/postgres/issues/40/comments","events_url":"https://api.github.com/repos/docker-library/postgres/issues/40/events","html_url":"https://github.com/docker-library/postgres/issues/40","id":51870409,"number":40,"title":"postgres /docker-entrypoint.sh not running scripts in /docker-entrypoint-initdb.d/","user":{"login":"kevinburke","id":234019,"avatar_url":"https://avatars.githubusercontent.com/u/234019?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinburke","html_url":"https://github.com/kevinburke","followers_url":"https://api.github.com/users/kevinburke/followers","following_url":"https://api.github.com/users/kevinburke/following{/other_user}","gists_url":"https://api.github.com/users/kevinburke/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinburke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinburke/subscriptions","organizations_url":"https://api.github.com/users/kevinburke/orgs","repos_url":"https://api.github.com/users/kevinburke/repos","events_url":"https://api.github.com/users/kevinburke/events{/privacy}","received_events_url":"https://api.github.com/users/kevinburke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2014-12-13T01:01:29Z","updated_at":"2015-10-14T13:17:10Z","closed_at":null,"body":"I'm having trouble writing a script to /docker-entrypoint-initdb.d/ and having Docker run it from /docker-entrypoint.sh.\r\n\r\n- It looks like /docker-entrypoint.sh is supposed to source any scripts it finds in /docker-entrypoint-initdb.d/. I verified I'm running this version of the script by `cat`ing the script and verifying this is the expected behavior.\r\n\r\n- I followed the instructions in \"justfalter\"'s comment here: https://registry.hub.docker.com/_/postgres/ to add a fix-acl.sh file and put it in the correct folder. I double checked the folder name was correct.\r\n\r\n- I also mirrored the commands in the /docker-entrypoint.sh script to check that the script could be sourced and would produce the desired behavior.\r\n\r\n- When I do \"docker run\", it's clear that Postgres starts but the specified line was not added to `pg_hba.conf`. I double checked this by verifying the mtime of `pg_hba.conf` - it wasn't touched or overwritten after my script ran. I also tried having my script `touch` various files to just verify that it ran, with no success.\r\n\r\nI'm at a loss for how to continue debugging this; I placed a file in the place that it's supposed to go, verified that the script runner that starts postgres should run it, and verified that the script does what I want, and I don't see any output (a changed pg_hba.conf, or even a simple file). \r\n\r\nI'm running the newest version of everything; starting Docker inside of a Ubuntu Virtualbox being provisioned from Vagrant. I share one folder from the Docker container to the host VM - the data folder containing pg_hba.conf.\r\n\r\nWould appreciate your help!\r\nKevin"},"comment":{"url":"https://api.github.com/repos/docker-library/postgres/issues/comments/148046522","html_url":"https://github.com/docker-library/postgres/issues/40#issuecomment-148046522","issue_url":"https://api.github.com/repos/docker-library/postgres/issues/40","id":148046522,"user":{"login":"danwyry","id":11514027,"avatar_url":"https://avatars.githubusercontent.com/u/11514027?v=3","gravatar_id":"","url":"https://api.github.com/users/danwyry","html_url":"https://github.com/danwyry","followers_url":"https://api.github.com/users/danwyry/followers","following_url":"https://api.github.com/users/danwyry/following{/other_user}","gists_url":"https://api.github.com/users/danwyry/gists{/gist_id}","starred_url":"https://api.github.com/users/danwyry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danwyry/subscriptions","organizations_url":"https://api.github.com/users/danwyry/orgs","repos_url":"https://api.github.com/users/danwyry/repos","events_url":"https://api.github.com/users/danwyry/events{/privacy}","received_events_url":"https://api.github.com/users/danwyry/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T13:17:10Z","updated_at":"2015-10-14T13:17:10Z","body":"would you mind trying it within a docker-compose configuration to see if maybe that's making any difference?"}}