Can Ansible execute a Dockerfile on Docker to setup platforms for PXE boots?

22 views
Skip to first unread message

EspressoBeanies

unread,
Nov 12, 2018, 4:17:39 PM11/12/18
to Ansible Project
I'd like to setup an HTTP server on a Docker image to serve as a platform for PXE booting and I don't see a clear way for Ansible to be able to execute a Dockerfile on a local Docker instance to spawn an HTTP server. I don't know if it'd be effective to continuously build and destroy a docker image housing this PXE boot but wanted to see if at least a setup is possible from what I specify in my Dockerfile.

Thad Guidry

unread,
Nov 12, 2018, 5:25:30 PM11/12/18
to ansible...@googlegroups.com
Lots of ways to handle this...

What you are after is called "baremetal provisioning".  https://www.ansible.com/use-cases/provisioning
And lots of existing roles already on Ansible Galaxy to help you get started... https://galaxy.ansible.com/search?keywords=pxe&order_by=-relevance&page_size=100
As an aside, you might also want to learn about the new Ansible Container.

Introducing Ansible Container
Container users have relied on Ansible for some time to help orchestrate the process of building their containers,
but to fully automate the process of container building to production deployment still required a host of additional tooling.
Not anymore.




On Mon, Nov 12, 2018 at 3:17 PM EspressoBeanies <espress...@gmail.com> wrote:
I'd like to setup an HTTP server on a Docker image to serve as a platform for PXE booting and I don't see a clear way for Ansible to be able to execute a Dockerfile on a local Docker instance to spawn an HTTP server. I don't know if it'd be effective to continuously build and destroy a docker image housing this PXE boot but wanted to see if at least a setup is possible from what I specify in my Dockerfile.

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/2437ad6d-d6c0-439a-a368-55c8dbe29557%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages