{"action":"created","issue":{"url":"https://api.github.com/repos/democracyworks/electorate-works/issues/11","labels_url":"https://api.github.com/repos/democracyworks/electorate-works/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/democracyworks/electorate-works/issues/11/comments","events_url":"https://api.github.com/repos/democracyworks/electorate-works/issues/11/events","html_url":"https://github.com/democracyworks/electorate-works/pull/11","id":100825456,"number":11,"title":"Do initial lein immutant war to cache dependencies.","user":{"login":"ericnormand","id":116172,"avatar_url":"https://avatars.githubusercontent.com/u/116172?v=3","gravatar_id":"","url":"https://api.github.com/users/ericnormand","html_url":"https://github.com/ericnormand","followers_url":"https://api.github.com/users/ericnormand/followers","following_url":"https://api.github.com/users/ericnormand/following{/other_user}","gists_url":"https://api.github.com/users/ericnormand/gists{/gist_id}","starred_url":"https://api.github.com/users/ericnormand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericnormand/subscriptions","organizations_url":"https://api.github.com/users/ericnormand/orgs","repos_url":"https://api.github.com/users/ericnormand/repos","events_url":"https://api.github.com/users/ericnormand/events{/privacy}","received_events_url":"https://api.github.com/users/ericnormand/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"tie-rack","id":3526,"avatar_url":"https://avatars.githubusercontent.com/u/3526?v=3","gravatar_id":"","url":"https://api.github.com/users/tie-rack","html_url":"https://github.com/tie-rack","followers_url":"https://api.github.com/users/tie-rack/followers","following_url":"https://api.github.com/users/tie-rack/following{/other_user}","gists_url":"https://api.github.com/users/tie-rack/gists{/gist_id}","starred_url":"https://api.github.com/users/tie-rack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tie-rack/subscriptions","organizations_url":"https://api.github.com/users/tie-rack/orgs","repos_url":"https://api.github.com/users/tie-rack/repos","events_url":"https://api.github.com/users/tie-rack/events{/privacy}","received_events_url":"https://api.github.com/users/tie-rack/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-08-13T17:32:57Z","updated_at":"2015-08-13T17:58:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/democracyworks/electorate-works/pulls/11","html_url":"https://github.com/democracyworks/electorate-works/pull/11","diff_url":"https://github.com/democracyworks/electorate-works/pull/11.diff","patch_url":"https://github.com/democracyworks/electorate-works/pull/11.patch"},"body":"This patch should make it so that we download fewer packages each time we rebuild.\r\n\r\n`lein immutant war` was downloading dependencies that were not picked up with `lein deps`. So at the last step in the Dockerfile, it was downloading stuff again.\r\n\r\n3 solutions were attempted:\r\n\r\n1. adding `[org.immutant/wildfly \"2.0.0\"]` dependency to the project's dependencies. This worked but the dependency needs to be kept up to date with the lein-immutant plugin.\r\n\r\n2. replacing the `RUN lein deps` call with a call to `RUN lein immutant war ...`. This did not work. It had problems with datomic when `lein deps` did not.\r\n\r\n3. adding a `RUN lein immutant war ...` line after the `RUN lein deps` line. This creates a war file with dependencies but no code.\r\n\r\nThis patch includes #3. This is an easier solution. it doesn't require us to keep dependencies in sync."},"comment":{"url":"https://api.github.com/repos/democracyworks/electorate-works/issues/comments/130780865","html_url":"https://github.com/democracyworks/electorate-works/pull/11#issuecomment-130780865","issue_url":"https://api.github.com/repos/democracyworks/electorate-works/issues/11","id":130780865,"user":{"login":"tie-rack","id":3526,"avatar_url":"https://avatars.githubusercontent.com/u/3526?v=3","gravatar_id":"","url":"https://api.github.com/users/tie-rack","html_url":"https://github.com/tie-rack","followers_url":"https://api.github.com/users/tie-rack/followers","following_url":"https://api.github.com/users/tie-rack/following{/other_user}","gists_url":"https://api.github.com/users/tie-rack/gists{/gist_id}","starred_url":"https://api.github.com/users/tie-rack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tie-rack/subscriptions","organizations_url":"https://api.github.com/users/tie-rack/orgs","repos_url":"https://api.github.com/users/tie-rack/repos","events_url":"https://api.github.com/users/tie-rack/events{/privacy}","received_events_url":"https://api.github.com/users/tie-rack/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T17:58:22Z","updated_at":"2015-08-13T17:58:22Z","body":"Cool. Looks good. Is this something that can be added to the template?!"}}