in your rails app, setup the links generator to use subdomains
The result will be:
Rails will generate domains using *.example-ci.com
Selenium will resolve this domain and get [HOSTNAME] as the first result
it will try to resolve [HOSTNAME] a second time and will find the IP because all services and the main container are linked together gitlab service alias
selenium will send the http requests to the right container containing your rails app
Hope this help you
Merry Christmas
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hello Patrik, thankyou for your comment.
To solve your issue, I will proceed like this:
Find the hostname of the main container that run your rails app in gitlab CI, in the rest of this comment, I will refer to it as
[HOSTNAME]
setup a test domain with sub-domains using CNAME ( you can use route53 from aws for this) :
The result will be:
[HOSTNAME]
as the first result it will try to resolve[HOSTNAME]
a second time and will find theIP
because all services and the main container are linked together gitlab service aliasHope this help you
Merry Christmas