Running Docker containers in parallel with tests

That would start Apache outside of the container.

AFAICS, something like this should work:

- docker run --cidfile=db.cid <db> & PIDS="$!"
- docker run --cidfile=app.cid <app> & PIDS="$PIDS $!"
<...>
- docker kill $(cat app.cid db.cid)
- wait $PIDS

If not, ask for a better way at a Docker forum.

1 Like