pipeline with webserver access the pipeline website within the pipeline.

Xavi September 28, 2020

title may be a bit confusing but basically if my project is a website and I have a mysql service set up. how can I run the project/website being cloned in the pipeline say under http://localhost. i need to be able to say curl http://localhost in a step in the pipeline. im trying to setup some e2e tests.

1 answer

0 votes
Eddie Webbinaro
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 9, 2021

Hi @Xavi 

The pattern you describe should work fine.

Your pipeline runs inside the container you specify. Once started your webserver should respond to its configured port on localhost without any additional setup.

The MySQL is another piece, and should run in a service container, that would be available on 127.0.0.1:3306

https://support.atlassian.com/bitbucket-cloud/docs/databases-and-service-containers/#MySQL-%E2%80%93-test-user

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events