{"action":"opened","issue":{"url":"https://api.github.com/repos/grammarly/rocker/issues/141","repository_url":"https://api.github.com/repos/grammarly/rocker","labels_url":"https://api.github.com/repos/grammarly/rocker/issues/141/labels{/name}","comments_url":"https://api.github.com/repos/grammarly/rocker/issues/141/comments","events_url":"https://api.github.com/repos/grammarly/rocker/issues/141/events","html_url":"https://github.com/grammarly/rocker/issues/141","id":178993076,"number":141,"title":"Allow templates in external files?","user":{"login":"kinghajj","id":3409,"avatar_url":"https://avatars.githubusercontent.com/u/3409?v=3","gravatar_id":"","url":"https://api.github.com/users/kinghajj","html_url":"https://github.com/kinghajj","followers_url":"https://api.github.com/users/kinghajj/followers","following_url":"https://api.github.com/users/kinghajj/following{/other_user}","gists_url":"https://api.github.com/users/kinghajj/gists{/gist_id}","starred_url":"https://api.github.com/users/kinghajj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinghajj/subscriptions","organizations_url":"https://api.github.com/users/kinghajj/orgs","repos_url":"https://api.github.com/users/kinghajj/repos","events_url":"https://api.github.com/users/kinghajj/events{/privacy}","received_events_url":"https://api.github.com/users/kinghajj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-23T23:20:14Z","updated_at":"2016-09-23T23:20:14Z","closed_at":null,"body":"I'm working on defining all of our images off of `debian:jessie`, eschewing all other Docker Hub images. As part of this, I'm defining copious templates for repeated sequences of steps (e.g. installing Java, Python, etc.), as those will be reused by both the build images (which have a lot of extra tools, like compilers) and the runtime images (which only have the absolute minimum number of packages needed to run the build artifacts). However, my Rockerfile is already serveral hundred lines of fairly-dense shell code, so I'd like to split these into separate files to make the main Rockerfile more declarative. I tried moving one template definition into a file and including it via `{{ template \"devops/build/templates/java\" }}`, but that failed:\r\n\r\n    FATA[0000] Error executing template /home/samf/armada/Rockerfile, error: template: /home/samf/armada/Rockerfile:254:12: executing \"/home/samf/armada/Rockerfile\" at <{{template \"devops/b...>: template \"devops/build/templates/java\" not defined\r\n\r\nLooking at the Golang html/template documentation, it appears that these external files have to be specified manually. I'm not terribly familiar with Golang templates, so would it be possible for Rocker to detect this and include these external files so that the engine correctly instantiates them?"}}
{"actor":{"display_login":"kinghajj"}}