{"action":"created","issue":{"url":"https://api.github.com/repos/Shippable/support/issues/2915","repository_url":"https://api.github.com/repos/Shippable/support","labels_url":"https://api.github.com/repos/Shippable/support/issues/2915/labels{/name}","comments_url":"https://api.github.com/repos/Shippable/support/issues/2915/comments","events_url":"https://api.github.com/repos/Shippable/support/issues/2915/events","html_url":"https://github.com/Shippable/support/issues/2915","id":173517605,"number":2915,"title":"Localhost networking with custom images","user":{"login":"elmpp","id":864612,"avatar_url":"https://avatars.githubusercontent.com/u/864612?v=3","gravatar_id":"","url":"https://api.github.com/users/elmpp","html_url":"https://github.com/elmpp","followers_url":"https://api.github.com/users/elmpp/followers","following_url":"https://api.github.com/users/elmpp/following{/other_user}","gists_url":"https://api.github.com/users/elmpp/gists{/gist_id}","starred_url":"https://api.github.com/users/elmpp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elmpp/subscriptions","organizations_url":"https://api.github.com/users/elmpp/orgs","repos_url":"https://api.github.com/users/elmpp/repos","events_url":"https://api.github.com/users/elmpp/events{/privacy}","received_events_url":"https://api.github.com/users/elmpp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Shippable/support/labels/in%20progress","name":"in progress","color":"006b75"},{"url":"https://api.github.com/repos/Shippable/support/labels/question","name":"question","color":"f9d0c4"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-26T18:44:03Z","updated_at":"2016-08-29T18:10:46Z","closed_at":"2016-08-29T18:10:46Z","body":"This is somewhat related to https://github.com/Shippable/support/issues/2542 , only difference being that I have bundled my processes up into the 1 image (php and postgres). \r\n\r\nI am experiencing problems connecting to the postgres DB from php. The PHP DB connection params are set through env variables in pre_ci_boot \r\n\r\n`build:\r\n  pre_ci_boot:\r\n    image_name: eu.gcr.io/partridge-alan/php-cli-wiremock-postgres\r\n    image_tag: latest\r\n    pull: true\r\n    options: \"-e SYMFONY__DATABASE__USER=postgres -e SYMFONY__DATABASE__HOST=localhost -e SYMFONY__DATABASE__PASSWORD=\"`\r\n\r\nThe container runs fine in testing locally.\r\n\r\nI have tried also `--net=host` without success. Should 2 processes within the same container be able to address eachother via localhost? \r\n\r\nBuild failure example - https://app.shippable.com/runs/57c088f81fcce00e00958901/1/console\r\n\r\nOne possible cause of this failure other than networking differences is if the entrypoint script overrides the image's default (it runs postgres and initdb before running the php tests). This seems to be the case but am unable to get eyes on the contents of it. Should i be able to see this through the scripts part of the console?\r\n"},"comment":{"url":"https://api.github.com/repos/Shippable/support/issues/comments/243206023","html_url":"https://github.com/Shippable/support/issues/2915#issuecomment-243206023","issue_url":"https://api.github.com/repos/Shippable/support/issues/2915","id":243206023,"user":{"login":"elmpp","id":864612,"avatar_url":"https://avatars.githubusercontent.com/u/864612?v=3","gravatar_id":"","url":"https://api.github.com/users/elmpp","html_url":"https://github.com/elmpp","followers_url":"https://api.github.com/users/elmpp/followers","following_url":"https://api.github.com/users/elmpp/following{/other_user}","gists_url":"https://api.github.com/users/elmpp/gists{/gist_id}","starred_url":"https://api.github.com/users/elmpp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elmpp/subscriptions","organizations_url":"https://api.github.com/users/elmpp/orgs","repos_url":"https://api.github.com/users/elmpp/repos","events_url":"https://api.github.com/users/elmpp/events{/privacy}","received_events_url":"https://api.github.com/users/elmpp/received_events","type":"User","site_admin":false},"created_at":"2016-08-29T18:10:46Z","updated_at":"2016-08-29T18:10:46Z","body":"I have indeed moved the entrypoint commands into the ci: section"}}
{"actor":{"display_login":"elmpp"}}