gitlab-runner: run a script after provisioning
I am using gitlab-runner with docker+machine executor. What is a problem? Slaves are created, but there is no way how to customize them at OS level. I want to install on them for example consul agent, or node-exporter. Seems that gitlab.com uses a custom images, right? Its not possible for example with docker+machine azure driver. It has limitations. So there should be at least option at deployment time to run a command or script.
For example: --run-command-after-provisioning="wget https://.../install.sh | bash"
It can be a docker-machine ssh command. I know that It can extend provisioning time, but seems that is a universal solution for all docker+machine drivers
Of course it makes sense, when are you using dynamic mode. For example OffPeakIdleCount = 0
and OffPeakPeriods
This guy has probably same problem: https://stackoverflow.com/questions/49170365/gitlab-runner-monitoring-with-prometheus-and-cadvisor