-
Notifications
You must be signed in to change notification settings - Fork 132
Provide built image so that users don't have to build it for every commit #36
Comments
Github actions can use a URL with docker:// prefix to download built images from hub.docker.com. |
Great idea, does the Ansible team/maintainers want to host their own image on Docker hub or can we use an already existing one by a third party? |
I think the Dockerfile already present in this repository works fine. |
I get that, but the build image needs to be stored somewhere right? We could use the GitHub registry which is free but not usable for commonly used Action. Docker hub is an obvious choice, but then who will host it? |
@lpenz I'm interested in hearing more on this. Looking through the documentation, do you mean change this line: https://github.com/ansible/ansible-lint-action/blob/master/action.yml#L45 to as per this example? https://docs.github.com/en/free-pro-team@latest/actions/creating-actions/metadata-syntax-for-github-actions#example-using-public-docker-registry-container |
That line is fine What we need to change is the retrieval of the arguments - they have to be obtained from environment variables. I did that in here: After that, whoever owns the "ansible" user in hub.docker.com should set it up to build the image from this repository, "latest" from master and tag versions seems appropriate. You can then use the image by specifying |
That would be great if the repo owners could implement similar so we wouldn't have to build every time. 👍🏼 |
I second that, especially when Ansible has already user on Docker hub with an images. (https://hub.docker.com/u/ansible). Based on my experience, building of Docker image every time consumes about 80-90% of entire GH Action runtime. |
According to actions/runner-images#1445 (comment)
So, relying on docker hub should not hit rate limiting in github actions (at least for public repos). :) |
I asked on #ansible-devel about who can get this onto dockerhub and I got two responses:
The ansible/molecule container is currently 318.3MB |
@lpenz I would find a PR very helpful, it is very annoying that the action takes 3 minutes in building step... |
I've created a PR, here: #44 It's usable with Result from that example: https://github.com/lpenz/ansible-playbooks/actions/runs/490558134 |
No longer valid for version on main branch, where we use creator-ee container and no longer build our own. |
No description provided.
The text was updated successfully, but these errors were encountered: