6

How do I use docker-compose (or a similar tool) with Bazel's rules-docker?

I know I could generate images, container-push them, and then reference the version in a docker-compose.yaml, but I would like a more developer friendly way of working with docker files in a way I don't need to push images to test changes.

1 Answer 1

5

I'm guessing that if you don't want to push the image that you want to mess with compose locally?

For that you can bazel run //path/to:image to load it into your local Docker daemon, and reference the temporary name bazel/path/to:image in your compose file.

If you can elaborate a bit on exactly what you'd like to do, I'd be happy to try and help.

Sign up to request clarification or add additional context in comments.

1 Comment

That is basically it. I can to test changes to a docker image without having to push the images every change.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.