I have a pipeline setup which successfully builds my docker image using compose, starts the containers using compose, runs tests on it, and then pushes it out to remote repository.
I am now trying to add in another set of tests, the code for which is a completely separate repo on Bitbucket. Initially I tried doing git clone and running the code in the new repo against the local running containers, but kept running into issues of git, ssh, npm not being available in the "image:docker/compose".
What I would like to do is:
step1:
- build image, and start container
step2:
- run tests within the original repo
step3:
- clone in the secondary repo, and run its code against containers from step1
step4:
- push image out
Is this possible? Sharing containers across steps? Or would it be possible using pipes?