You would need to mount the docker socket into the container (which has some non-trivial security implications). I do not believe there is anything the image needs to do specifically - this is something you can configure in the environment you are running it.
t
thankful-optician-22583
08/12/2019, 9:05 PM
Thank you luke! I will look into this
thankful-optician-22583
08/12/2019, 9:13 PM
I guess in Gitlab, the yaml file only specifies the image & entrypoint and in order to mount a volume, i would have to configure the runners to mount the volume as discussed here: https://docs.gitlab.com/runner/executors/kubernetes.html Do you think it would be worth while to mention that in the documentation here? Because if our index.ts contains building images we would need to mount the volume on top of the image.