Reputation: 75
I have a project on gitlab, and I would use gitlab CI for unit testing. Actually, I have a other repository name "docker" with docker-compose.yml and Dockerfile for two project (because i reproduce the production configuration, the two project are interdependant)
Actually in my dev configuration
in Projects directory:
in docker directory:
docker-compose.yml have relative path as ../project_1 and ../project_2
For set up my configuration, I make :
Question ? I want know how I can pull the git repository "docker" and launch docker-compose up for the project1 since gitlab CI start ?
Thanks
Upvotes: 4
Views: 1385
Reputation: 4708
We've built a gitlab runner with docker-compose support. See its README for setup and configuration.
Basically you just use the same commands like in development, see here for an example with Makefiles or this one with native docker-compose
commands.
Upvotes: 1