Using entrypoint init scripts in services


  • given I have a build which needs e.g. a postgresql database or a tomcat.
  • As can be seen in 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 :-).

1 Like

I created an issue for that: