Using entrypoint init scripts in services

Hello,

  • given I have a build which needs e.g. a postgresql database or a tomcat.
  • As can be seen in docker-entrypoint.sh the script looks for init files in /docker-entrypoint-initdb.d/. Now gitlab-ci starts services in “Prepare” before even cloning the repository as outlined in Workflow.
  • Same with the official Tomcat images. Say I want to build a WAR and somehow put it into the webapps directory of a tomcat service.
  • I can not figure out how to achieve this (except maybe building specific Docker-images for every service I need).

Any hints are welcome :-).
Regards
Mirko

1 Like

I created an issue for that: https://gitlab.com/gitlab-org/gitlab-runner/issues/3210