Skip to content

Make use of gdk config to populate auto devops ports

João Alexandre Cunha requested to merge fix/auto-devops-procfile-tunnels into master

Looks like after we started using Procfile.erb instead of Procfile.example as our template, our tunneling lines are not getting the ports set properly with gdk reconfigure. This MR fixes the ports.

This is happening because we used to make the Procfile and replacing ports with:

Procfile: Procfile.example
  bin/safe-sed "$@" \
    -e "s|/home/git|${gitlab_development_root}|g"\
    ...
    -e "$(if $(filter true,$(auto_devops_enabled)),s|#tunnel_gitlab:.*|tunnel_gitlab: ssh -N -R $(auto_devops_gitlab_port):localhost:\$$port qa-tunnel.gitlab.info|g,/^#tunnel_gitlab:/s/^//)" \
    -e "$(if $(filter true,$(auto_devops_enabled)),s|#tunnel_registry:.*|tunnel_registry: ssh -N -R ${auto_devops_registry_port}:localhost:${registry_port} qa-tunnel.gitlab.info|g,/^#tunnel_registry:/s/^//)" \
  "$<"

But now we only do:

Procfile: Procfile.erb
  rake $@

So we need to get the ports from the new lib/gdk/config.rb that we now populate.

Edited by 🤖 GitLab Bot 🤖

Merge request reports