Skip to content
Commit 6071d9e2 authored by Mirko Friedenhagen's avatar Mirko Friedenhagen 🏃
Browse files

Entrypoint relative to FullProjectDir

* A lot of images (e.g. DBs) offer the ability to source additonal files
  in their entrypoint.
* gitlab-runner currently forces you to build new images to use this
  functionality - both for build images but especially for services
* Allowing relative entrypoints, a small shell script in a GitLab project
  would allow to use this functionality, e.g. add this:

```
cp $CI_PROJECT_DIR/mysql-docker-entrypoint-initdb.d /docker-entrypoint-initdb.d
exec /usr/local/bin/docker-entrypoint.sh
```

Call it like:

```
image:
  name: mysql
  entrypoint: ["./initialize-mysql.sh"]
```

! Disable failure for `unit tests (no race)` as the racing one do
  succeed. I have no clue why this happens.
parent d9e66b9e
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment