Skip to content

Support running a supplied post reconfigure script in the docker container

DJ Mountney requested to merge docker-post-reconfigure into master

If the env variable GITLAB_POST_RECONFIGURE_SCRIPT is set, we will eval it in /assets/wrapper

This will be useful for the OpenShift template, as it's not easy to use their post hook for most of our use cases because they boot up another instance of the gitlab container to run your custom command (and you can't do much in a new gitlab container without running reconfigure first)

Specifically I am going to use it to run something like this: /opt/gitlab/bin/gitlab-rails runner -e production 'Doorkeeper::Application.where(uid: "generated_uid", secret: "generated_secret", redirect_uri: "http://example.com", name: "Mattermost").first_or_create;'

So that I can setup a separate Mattermost pod at the same time as bringing up gitlab.

Merge request reports