{"action":"created","issue":{"url":"https://api.github.com/repos/cismet/docker-images/issues/1","repository_url":"https://api.github.com/repos/cismet/docker-images","labels_url":"https://api.github.com/repos/cismet/docker-images/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/cismet/docker-images/issues/1/comments","events_url":"https://api.github.com/repos/cismet/docker-images/issues/1/events","html_url":"https://github.com/cismet/docker-images/issues/1","id":148378041,"number":1,"title":"cids-server does not wait for integration-base service","user":{"login":"p-a-s-c-a-l","id":1788226,"avatar_url":"https://avatars.githubusercontent.com/u/1788226?v=3","gravatar_id":"","url":"https://api.github.com/users/p-a-s-c-a-l","html_url":"https://github.com/p-a-s-c-a-l","followers_url":"https://api.github.com/users/p-a-s-c-a-l/followers","following_url":"https://api.github.com/users/p-a-s-c-a-l/following{/other_user}","gists_url":"https://api.github.com/users/p-a-s-c-a-l/gists{/gist_id}","starred_url":"https://api.github.com/users/p-a-s-c-a-l/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p-a-s-c-a-l/subscriptions","organizations_url":"https://api.github.com/users/p-a-s-c-a-l/orgs","repos_url":"https://api.github.com/users/p-a-s-c-a-l/repos","events_url":"https://api.github.com/users/p-a-s-c-a-l/events{/privacy}","received_events_url":"https://api.github.com/users/p-a-s-c-a-l/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cismet/docker-images/labels/bug","name":"bug","color":"ee0701"}],"state":"closed","locked":false,"assignee":{"login":"p-a-s-c-a-l","id":1788226,"avatar_url":"https://avatars.githubusercontent.com/u/1788226?v=3","gravatar_id":"","url":"https://api.github.com/users/p-a-s-c-a-l","html_url":"https://github.com/p-a-s-c-a-l","followers_url":"https://api.github.com/users/p-a-s-c-a-l/followers","following_url":"https://api.github.com/users/p-a-s-c-a-l/following{/other_user}","gists_url":"https://api.github.com/users/p-a-s-c-a-l/gists{/gist_id}","starred_url":"https://api.github.com/users/p-a-s-c-a-l/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p-a-s-c-a-l/subscriptions","organizations_url":"https://api.github.com/users/p-a-s-c-a-l/orgs","repos_url":"https://api.github.com/users/p-a-s-c-a-l/repos","events_url":"https://api.github.com/users/p-a-s-c-a-l/events{/privacy}","received_events_url":"https://api.github.com/users/p-a-s-c-a-l/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-04-14T14:24:01Z","updated_at":"2016-04-20T08:59:47Z","closed_at":"2016-04-20T08:59:46Z","body":"cids-server start fails if postgresdb in integration-base container is not yet initialized when cids-server container is started. Waiting for dependent docker services is a common problem but not (yet) resolved at docker api level. See also https://github.com/docker/compose/issues/374\r\n\r\nA workaround to use e.g. [dockerize](https://github.com/jwilder/dockerize) to check if postgresdb is running cannot be used! The startup sequence in integration-base container is:\r\n- start postgresdb  (running and able to answer requests)\r\n- import dump sql files from host-mounted volumes\r\n\r\nWorkarounds:\r\n- Add startup delay in cids server image CMD (ugly hack)\r\n- move DB initialisation to RUN (not recommended - 1 image for each DB instance / cids system needed!)\r\n- others?"},"comment":{"url":"https://api.github.com/repos/cismet/docker-images/issues/comments/212338092","html_url":"https://github.com/cismet/docker-images/issues/1#issuecomment-212338092","issue_url":"https://api.github.com/repos/cismet/docker-images/issues/1","id":212338092,"user":{"login":"p-a-s-c-a-l","id":1788226,"avatar_url":"https://avatars.githubusercontent.com/u/1788226?v=3","gravatar_id":"","url":"https://api.github.com/users/p-a-s-c-a-l","html_url":"https://github.com/p-a-s-c-a-l","followers_url":"https://api.github.com/users/p-a-s-c-a-l/followers","following_url":"https://api.github.com/users/p-a-s-c-a-l/following{/other_user}","gists_url":"https://api.github.com/users/p-a-s-c-a-l/gists{/gist_id}","starred_url":"https://api.github.com/users/p-a-s-c-a-l/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/p-a-s-c-a-l/subscriptions","organizations_url":"https://api.github.com/users/p-a-s-c-a-l/orgs","repos_url":"https://api.github.com/users/p-a-s-c-a-l/repos","events_url":"https://api.github.com/users/p-a-s-c-a-l/events{/privacy}","received_events_url":"https://api.github.com/users/p-a-s-c-a-l/received_events","type":"User","site_admin":false},"created_at":"2016-04-20T08:59:46Z","updated_at":"2016-04-20T08:59:46Z","body":"done"}}