Grzegorzg
Grzegorzg

Reputation: 719

Docker. Run local tests from container

I need to create docker image, which will be describe only which tools needs to be installed.

Then, I want to start container from that image and run tests ( which is based on Robot Framework) and get logs in my local machine. Is it possible? If possible - how?

If it is not possible, how to create image so that I don't need to rebuild it after every change in code?

For example, I have Test Suite with 10 tests, if i build image, I cant just add test to test suite, I need to rebuild it, how to force docker "watch" for any changes?

Long story short - I need to run tests ( amount of tests will always increase) from isolated end ( docker container) - how can i do it?

This is my first docker experience.

Upvotes: 0

Views: 742

Answers (1)

Bryan Oakley
Bryan Oakley

Reputation: 386230

I think the right solution is to build the container without the tests, and then use a mount point to make the tests available inside the container. That way the container won't actually contain any of the tests and won't need to be rebuilt.

Upvotes: 2

Related Questions