I am working on a dockerized selenium net. I can send my python tests [run with pytest] from the pytest container [see Below] by joining him. But I installed another LAMP container that will manage pytest. Therefore, I want to make the pytest container standalone by working in standby mode and waiting for commands from the LAMP container.
I have this Docker file:
I run the pytest container manually [for development] using this:
docker run -dit -v /project --name pytest repo/user:py
The thing is, I finished the development, and I want to run the pytest container from docker-compose and connect it to other containers [with reference and scope]. I just can't make him stay.
I used this:
pytest: image: repo/user:py volumes: - "/project" command: "/bin/bash tail -f /dev/null"
but does not work.
So, should a specific CMD or ENTRYPOINT be used inside the Dockerfile?
Should I use some command from docker-compose file?
Kostas demiris
source share