Hi everyone, I am just getting started with pants ...
# plugins
b
Hi everyone, I am just getting started with pants and was wondering if there are any plugins to package as docker image?
šŸ‘‹ 3
c
There is a experimental docker backend for building images in the upcoming 2.7.0 release (latest is 2.7.0rc2)
It is being actively worked upon to bring you good coverage for your Docker needs. Documentation is currently being written, too, so it is all rather early.
Let me know if you need any help, taking it for a spin. I’d be happy to help, and to know how you want to use it.
As plugins go, there is also a plugin by @average-australia-85137 https://github.com/compyman/pants-docker
šŸ‘€ 1
h
I will have the documentation page for Docker published today!
šŸ™Œ 2
šŸ’Æ 2
b
This is awesome, all stars aligned šŸ˜„
a
@boundless-garage-48817 feel free to reach out if you are interested in using the plugin!
h
Here is that doc page, as promised: https://www.pantsbuild.org/v2.7/docs/docker
šŸ‘€ 1
šŸš€ 1
b
Awesome I will check it out today šŸ™‚
I have a question regarding the package goal with docker. Is "./pants package src/docker/hw/Dockerfile" this currently the only way to package it or can it also work with "./pants package ::"? I would require a different channel to provide the path to the Dockerfile, maybe as parameter of the docker_image target?
c
./pants package ::
will package everything, including docker images, so yes, that will do fine.
You can also use the target address, rather than the path to the Dockerfile.
b
Ah yes I found it in the docker_image target reference, awesome šŸ™‚
šŸ‘ 1
Hmm okay I think I was very close to having it run, but I will drop it for now. It complicates the local setup in wsl as well as the CI setup since it requires docker in docker. I think copying the pex file into a docker image is not that much of a hussle šŸ™‚ Thank you very much for you assistance, the experience with this community is exceptional so far. I am very happy with pants overall so far šŸ™‚
šŸ™ 2
šŸŽ‰ 2