Skip to content

FTP with testcontainers #4784

Description

@rabiori

I'm trying to start and connect to an FTP server in my tests, I have a reproducible sample and all the data here: https://stackoverflow.com/q/70274689/2924784

Any help would be greatly appreciated.

Activity

  1. kiview commented on Dec 15, 2021

    @kiview
    Member

    In the Docker command, you did open a lot of ports. You need to add all of those exposed ports to Testcontainers and get the mapped ports accordingly. This image does not seem to be container-friendly and might not work well with randomized ports, especially with regards to the ports used in passive mode in this case.

  2. rabiori commented on Dec 16, 2021

    @rabiori
    Author

    I've received an answer there using the deprecated FixedHostPortGenericContainer - If you have any other solutions I'd be pleased to hear them

  3. kiview commented on Dec 16, 2021

    @kiview
    Member

    We strongly discourage usage of FixedHostPortGenericContainer, however, the answer on SO is still correct:
    https://stackoverflow.com/a/70371790/1396362

    I currently don't have a better idea for testing against an FTP container in passive mode.

  4. locked and limited conversation to collaborators on Dec 16, 2021
  5. converted this issue into a discussion #4787 on Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions