{"action":"created","issue":{"url":"https://api.github.com/repos/Emergya/peer-dockerfiles/issues/5","labels_url":"https://api.github.com/repos/Emergya/peer-dockerfiles/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/Emergya/peer-dockerfiles/issues/5/comments","events_url":"https://api.github.com/repos/Emergya/peer-dockerfiles/issues/5/events","html_url":"https://github.com/Emergya/peer-dockerfiles/issues/5","id":95181479,"number":5,"title":"local_settings not on docker host","user":{"login":"rhoerbe","id":4348479,"avatar_url":"https://avatars.githubusercontent.com/u/4348479?v=3","gravatar_id":"","url":"https://api.github.com/users/rhoerbe","html_url":"https://github.com/rhoerbe","followers_url":"https://api.github.com/users/rhoerbe/followers","following_url":"https://api.github.com/users/rhoerbe/following{/other_user}","gists_url":"https://api.github.com/users/rhoerbe/gists{/gist_id}","starred_url":"https://api.github.com/users/rhoerbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhoerbe/subscriptions","organizations_url":"https://api.github.com/users/rhoerbe/orgs","repos_url":"https://api.github.com/users/rhoerbe/repos","events_url":"https://api.github.com/users/rhoerbe/events{/privacy}","received_events_url":"https://api.github.com/users/rhoerbe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-15T12:35:10Z","updated_at":"2015-07-15T17:13:09Z","closed_at":null,"body":"gunicorn.py and localsettings.py should be taken from the docker host, instead of providing it with the image.\r\n\r\nIt should be documented that the deployer needs to provide these files before running a container."},"comment":{"url":"https://api.github.com/repos/Emergya/peer-dockerfiles/issues/comments/121682658","html_url":"https://github.com/Emergya/peer-dockerfiles/issues/5#issuecomment-121682658","issue_url":"https://api.github.com/repos/Emergya/peer-dockerfiles/issues/5","id":121682658,"user":{"login":"enriquepablo","id":284715,"avatar_url":"https://avatars.githubusercontent.com/u/284715?v=3","gravatar_id":"","url":"https://api.github.com/users/enriquepablo","html_url":"https://github.com/enriquepablo","followers_url":"https://api.github.com/users/enriquepablo/followers","following_url":"https://api.github.com/users/enriquepablo/following{/other_user}","gists_url":"https://api.github.com/users/enriquepablo/gists{/gist_id}","starred_url":"https://api.github.com/users/enriquepablo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enriquepablo/subscriptions","organizations_url":"https://api.github.com/users/enriquepablo/orgs","repos_url":"https://api.github.com/users/enriquepablo/repos","events_url":"https://api.github.com/users/enriquepablo/events{/privacy}","received_events_url":"https://api.github.com/users/enriquepablo/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T17:13:09Z","updated_at":"2015-07-15T17:13:09Z","body":"The  thing is that local_settings.py is also needed at the time of building the image, to set up the db. So we need to edit it before building the image, and add it to the image; and then we may need to again edit it before running the container, to change runtime settings, and that's the reason it is provided with the image.\r\nAt the moment, the prod-env/local_settings/ dir is created when creating a container from the image, so the deployer does not need to provide them.\r\nA solution might be to expose the local_settings/ volume from the container to peer/config/ (from which they are added to the image) rather than to prod-env/, to not have duplicate config files. The problem I saw with this was that the settings in peer/config/ are under git control, but this problem may be less grave than the confusion from having duplicate config files ?"}}