Skip to content

Remove empty CMD on tc_new_container_request()#25

Merged
oleg-nenashev merged 1 commit intotestcontainers:mainfrom
xtremekforever:bugfix/container-startup-cmd
Jul 10, 2024
Merged

Remove empty CMD on tc_new_container_request()#25
oleg-nenashev merged 1 commit intotestcontainers:mainfrom
xtremekforever:bugfix/container-startup-cmd

Conversation

@xtremekforever
Copy link
Contributor

Small fix for starting up a rabbitmq container using the generic containers implementation.

What does this PR do?

Passing an empty string in the Cmd member of the ContainerRequest variable was causing a rabbitmq container to not launch properly. This change removes the empty string being passed to fix the issue.

Why is it important?

Passing a Cmd to ContainerRequest is not needed for the current implementation, and removing this does not affect the WireMock demo either. So, the fix works all around.

Related issues

Closes #24

How to test this PR

Compile and run the code from the issue (#24) and prove that the RabbitMQ container launches and does not stop immediately with the described error.

@oleg-nenashev oleg-nenashev added the bug Something isn't working label Jul 10, 2024
@oleg-nenashev oleg-nenashev changed the title Remove empty Cmd on tc_new_container_request Remove empty CMDon tc_new_container_request() Jul 10, 2024
Copy link
Collaborator

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A bit YOLO, but definitely +1.
It would be nice to also have a smoke test for RabbitMQ, but it can be added later

@oleg-nenashev oleg-nenashev changed the title Remove empty CMDon tc_new_container_request() Remove empty CMD on tc_new_container_request() Jul 10, 2024
@oleg-nenashev oleg-nenashev merged commit 77034db into testcontainers:main Jul 10, 2024
@xtremekforever xtremekforever deleted the bugfix/container-startup-cmd branch July 11, 2024 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to run a RabbitMq testcontainer (exits with error)

2 participants