Can Pants run inside of Docker? We use vs code dev...
# general
c
Can Pants run inside of Docker? We use vs code dev containers and primarily use Pants for packaging right now. In fact, a lot of our devs don't even have pants installed since most of the Pants workflows are done in CI. I would like to add a pre-commit hook that runs pants tailor and adds BUILD files to a commit.
Didn't have any issues using
get-pants.sh
in the Dockerfile and running pants tailor commands as pre-commit hooks.
👍 1
b
FYI, there's sometimes issues running within a docker image on mac, e.g. https://www.pantsbuild.org/2.20/docs/getting-started/prerequisites#macos; if that's relevant
c
Oh that’s very good to know. Thanks!
p
fwiw we run Pants in Docker on CircleCI with
setup_remote_docker
to give the container access to a Docker daemon and it's been working fine https://circleci.com/docs/building-docker-images/