How to use my docker config configuration with gitlab CI

I have a gitlab project and I would use gitlab CI for unit testing. Actually, I have a different docker repository name with docker-compose.yml and Dockerfile for two projects (because I reproduce the production configuration, the two projects are interdependent)

Actually in my dev configuration

in the project catalog:

  • docker
  • project_1
  • Project_2

in the docker directory:

  • docker-compose.yml
  • Dockerfile-project1
  • Dockerfile-project2
  • [some configuration file asks in dockerFile]

docker-compose.yml have a relative path like .. / project _1 and ../ project_2

To configure my configuration, I create:

  • cd docker
  • docker-compose up -d project1 (name in docker-compose.yml)
  • docker exec -ti project1 bash

? , git "" docker-compose 1, gitlab CI?

+4
1

gitlab runner docker-compose. . README .

, , . Makefiles docker-compose.

+1

All Articles