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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Container startup failed: Using Testcontainers Localstack 1.15.0-rc2 with Maven/Spring Boot Edited

Error running Testcontainers Localstack(https://mvnrepository.com/artifact/org.testcontainers/localstack/1.15.0-rc2) in integration test.

 

It runs fine locally but fails in Bitbucket Pipelines

 

Error:

Container startup failed

org.testcontainers.containers.ContainerLaunchException: Container startup failed

Caused by: org.testcontainers.containers.ContainerFetchException: Can't get Docker image: RemoteDockerImage(imageName=localstack/localstack:latest, imagePullPolicy=DefaultPullPolicy())

Caused by: com.github.dockerjava.api.exception.DockerException: Status 403: {"message":"authorization denied by plugin pipelines: Invalid content length provided"}

 

pipelines.yml excerpt

definitions:
services:
docker:
memory: 2048
localstack:
image: localstack/localstack:latest
environment:
SERVICES: S3
LOCALSTACK_HOSTNAME: localhost
HOSTNAME: localhost

steps:
- parallel: &buildStepMain
- step:
name: Test M
caches:
- maven
script:
- export TESTCONTAINERS_RYUK_DISABLED=true
- ./build.sh test
services:
- docker

 

I already tried the remediations suggested here:  https://www.testcontainers.org/supported_docker_environment/continuous_integration/bitbucket_pipelines/

 

Test code:

@Rule
public LocalStackContainer localstack = new LocalStackContainer( DockerImageName.parse("localstack/localstack:latest")).withServices(S3);

 

Localstack was an opensource project by Atlassian originally, I would think they would have first-class support for it.

1 answer

0 votes

Any news on this topic? I'm experiencing the same with version 1.15.1, Gradle/Spring Boot.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,320 views 0 3
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