Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

bitbucket pipeline can't find localstack service

I added localstack:localstack docker image for a service in my bitbucket pipeline.

The pipeline was triggered, and it launched the docker container with dynamodb service enabled. Then it ran my branch's build steps:

  • apt-get update
  • apt-get install -y netcat
  • nc -zv 127.0.0.1 4569

The netcat command isn't printing out anything. I presume 127.0.0.1 is not the correct address :(

2 comments

Could you fix that? 

I have an error with localstack in bitbucket:


UnknownEndpoint: Inaccessible host: `localstack'. This service may not be available in the `us-east-1' region.

Just in case.

In my case, It's worked setting de LOCALSTACK_HOSTNAME = localhost and using it in aws endpoints:

image: node:8.10-alpine

pipelines: 
  default: 
    - step: 
        script:
          - export ENVIRONMENT=docker
          - export AWS_REGION=us-east-1
          - export LOCALSTACK_HOSTNAME=localhost
          - export HOSTNAME=localhost
          - export AWS_ACCESS_KEY_ID=test
          - export AWS_SECRET_ACCESS_KEY=test
          - npm install
          - npx fly test:local
        services:
          - localstack 

definitions: 
  services:
    localstack:
      image: localstack/localstack
      environment:
        SERVICES: ses
        LOCALSTACK_HOSTNAME: localhost
        HOSTNAME: localhost
      ports:
        - "4567-4583:4567-4583"
        - "8080:8080"

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,776 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you