Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there an easy way to let Azure Resource Manager Templates build a docker image? #196

Closed
daniela-waranie opened this issue Dec 20, 2019 · 9 comments
Labels
question Further information is requested

Comments

@daniela-waranie
Copy link

I do not know the azure ecosystem. Is there an option in azure to build a docker image based on this file: https://github.com/actions/virtual-environments/blob/master/images/linux/ubuntu1804.json

I could try to execute or convert all shell commands to a Dockerfile but i would prefer an automated approach, to easily catch-up this this repo, if it changes. Is azure able to output docker images from this template? Is there a converter to Dockerfile available? Other ideas?

PS: I want to run some stuff in a local build environment, before pushing it to github (to let github build my official release).

@alepauly
Copy link
Contributor

Hi @daniela-waranie, it might be possible but I'm not sure how straightforward it would be. I think @StanleyGoldman tried it once and went through some pain (please correct me if I'm wrong), maybe he can share his experience.

@christian-weiss
Copy link

christian-weiss commented Dec 21, 2019

I am also interested in a docker image.

@github-actions
Copy link
Contributor

This issue has not had any activity for 45 days and will be closed in 45 days if there continues to be no activity.

@christian-weiss
Copy link

@StanleyGoldman, please share your experience with us.

@jpb
Copy link

jpb commented Mar 12, 2020

I was able to modify the packer definition to build a docker image for my use cases. I ended up removing a lot of packages that I did not need to reduce the image size, the build time, and to avoid issues caused by differences between the Azure and Docker base images. The excluded packages may have issues when building in docker that I did not encounter. This could be the starting point for more generalized docker support: master...jpb:docker.

@alepauly
Copy link
Contributor

@daniela-waranie I'll close this since there's no supported way to do this right now. I think it's fine to keep the discussion going here as a closed issue or we can move it to the community forums: https://github.saobby.my.eu.orgmunity/t5/GitHub-Actions/bd-p/actions.

@alepauly alepauly removed their assignment Mar 18, 2020
@daniela-waranie
Copy link
Author

This ticket started out as a support request, but more and more thinking about it i would now like to treat it as a feature request: "build azure base images and docker images with the same provisioning tool" / "add docker image as a supported option to run github actions locally"

@daniela-waranie
Copy link
Author

would be cool it you can reopen this ticket

@alepauly
Copy link
Contributor

Hi, @daniela-waranie. At this time this is not a feature we plan to support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants