testcontainers / testcontainers/testcontainers-java
Requested port X is not mapped with jenkins kubernates dind
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 8.7k
- Forks
- 1.9k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 9
Description
Description: Requested port X is not mapped when running with Jenkins Kubernetes docker in docker.
- The images start as expected
- I am using springboottests to start my application.
- When I call
Containers.POSTGRES.getMappedPort(X)
Current behavior: Requested port (X) is not mapped
Expected behavior: API should return the assigned port.
Version: 1.15.3
Logs:
testcontainer_logs.txt
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing Containers.POSTGRES.getMappedPort(X) from a Spring Boot test running in Jenkins Kubernetes Docker-in-Docker, using the attached testcontainer_logs.txt for comparison. Inspect the container and port-mapping behavior involved; done means the API returns the assigned port in that environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, java, kubernetes, postgresql, spring-boot
- Domain
- databases, devops, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100