{"action":"created","issue":{"url":"https://api.github.com/repos/CentOS/container-index/issues/197","repository_url":"https://api.github.com/repos/CentOS/container-index","labels_url":"https://api.github.com/repos/CentOS/container-index/issues/197/labels{/name}","comments_url":"https://api.github.com/repos/CentOS/container-index/issues/197/comments","events_url":"https://api.github.com/repos/CentOS/container-index/issues/197/events","html_url":"https://github.com/CentOS/container-index/issues/197","id":258481772,"number":197,"title":"build script support","user":{"login":"TomasTomecek","id":1662493,"avatar_url":"https://avatars0.githubusercontent.com/u/1662493?v=4","gravatar_id":"","url":"https://api.github.com/users/TomasTomecek","html_url":"https://github.com/TomasTomecek","followers_url":"https://api.github.com/users/TomasTomecek/followers","following_url":"https://api.github.com/users/TomasTomecek/following{/other_user}","gists_url":"https://api.github.com/users/TomasTomecek/gists{/gist_id}","starred_url":"https://api.github.com/users/TomasTomecek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomasTomecek/subscriptions","organizations_url":"https://api.github.com/users/TomasTomecek/orgs","repos_url":"https://api.github.com/users/TomasTomecek/repos","events_url":"https://api.github.com/users/TomasTomecek/events{/privacy}","received_events_url":"https://api.github.com/users/TomasTomecek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-09-18T13:35:24Z","updated_at":"2017-09-18T14:35:05Z","closed_at":null,"author_association":"NONE","body":"We would like to start building [our images](https://github.com/container-images) in your infrastructure. The issue is that it seems like it won't work because our github repositories contain source templates ([en example](https://github.com/TomasTomecek/tools/blob/5c571acc92a7e68be743809390c8caa450c96d86/Dockerfile.template)) and before building container images, we need to render them first. For that, we have a tool called [distgen](https://github.com/devexp-db/distgen).\r\n\r\nAfter reading readme of this repo, I stumbled upon `Build Script (build-script)` which made me so happy and the feeling immediately vanished after reading `Currently unusable`. How difficult would be to implement it? "},"comment":{"url":"https://api.github.com/repos/CentOS/container-index/issues/comments/330242997","html_url":"https://github.com/CentOS/container-index/issues/197#issuecomment-330242997","issue_url":"https://api.github.com/repos/CentOS/container-index/issues/197","id":330242997,"user":{"login":"TomasTomecek","id":1662493,"avatar_url":"https://avatars0.githubusercontent.com/u/1662493?v=4","gravatar_id":"","url":"https://api.github.com/users/TomasTomecek","html_url":"https://github.com/TomasTomecek","followers_url":"https://api.github.com/users/TomasTomecek/followers","following_url":"https://api.github.com/users/TomasTomecek/following{/other_user}","gists_url":"https://api.github.com/users/TomasTomecek/gists{/gist_id}","starred_url":"https://api.github.com/users/TomasTomecek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomasTomecek/subscriptions","organizations_url":"https://api.github.com/users/TomasTomecek/orgs","repos_url":"https://api.github.com/users/TomasTomecek/repos","events_url":"https://api.github.com/users/TomasTomecek/events{/privacy}","received_events_url":"https://api.github.com/users/TomasTomecek/received_events","type":"User","site_admin":false},"created_at":"2017-09-18T14:35:04Z","updated_at":"2017-09-18T14:35:04Z","author_association":"NONE","body":"We just need distgen and all of its dependencies (can be installed via PyPI):\r\n  ```\r\n  /usr/bin/python3\r\n  python(abi) = 3.6\r\n  python3-PyYAML\r\n  python3-jinja2\r\n  python3-six\r\n  rpmlib(CompressedFileNames) <= 3.0.4-1\r\n  rpmlib(FileDigests) <= 4.6.0-1\r\n  rpmlib(PayloadFilesHavePrefix) <= 4.0-1\r\n  rpmlib(PayloadIsXz) <= 5.2-1\r\n  ```\r\nIt runs just fine in a container. Actually that's what we do in Docker Hub: we have [a custom build script](https://github.com/TomasTomecek/tools/blob/27ce1f4e14fe109dc8d1c72a6b93e1900e449b3f/hooks/pre_build) in there which renders the templates using 2 distinct containers. If we could run that script prior to build, that would be awesome.\r\n"}}
{"actor":{"display_login":"TomasTomecek"}}