Hi, I'd like to know how to curl a defined service in difinitions.services section from my step.
This is my bitbucket-pipelines.yml:
image: cypress/base:10
pipelines:
default:
- step: &run
name: Run
image: mongo
script:
- curl http://<span>my-service</span>/my-path
services:
- my-service
branches:
'**':
- step: *run
definitions:
services:
my-service:
image:
name: 098765431234.dkr.ecr.us-east-1.amazonaws.com/my-service:latest
aws:
access-key: $AWS_ACCESS_KEY_ID
secret-key: $AWS_SECRET_ACCESS_KEY
mongo:
image: mongo
That's the error I'm facing:
<1s<span>+ curl http://my-service/my-path</span><span> % Total % Received % Xferd Average Speed Time Time Time Current</span><span> Dload Upload Total Spent Left Speed</span><span> 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: my-service</span>
I'm assuming the request could be performed to service definition name my-service instead of host name or IP, folowing docker-compose principles.
Please, appreciate any help
Thanx