Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add port forwarding support and bump to 2.2.0 #19

Merged
merged 5 commits into from
Apr 19, 2024
Merged

Commits on Apr 18, 2024

  1. Refactor docker eth0 interface detection/rename.

    - Split out interface detection into intf-exists? function.
    - Use 'intf-exists?' to check for 'eth0' (docker host bridge interface)
      and store result in ctx :docker-eth0? property.
    - Some minor docs/formating changes.
    kanaka committed Apr 18, 2024
    Configuration menu
    Copy the full SHA
    f449ac2 View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2024

  1. [run-tests] refactor test functions for more flexibility.

    The function that runs a docker-compose commmand becomes dc_run and
    that's all it does (not wait loop). The main test running function that
    includes the retry functionality is split out into a non-compose
    specific function called do_test. If the WITH_DC environment variable is
    set then it uses dc_run to run a command, otherwise it invokes the
    arguments in a regular shell call.
    
    The dc_wait and dc_test function become trivial wrappers around do_test.
    kanaka committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    3d02084 View commit details
    Browse the repository at this point in the history
  2. [run-tests] make test7 less sensitive to system noise

    Allow the minimum ping delay over the netem link to be anywhere from
    80ms - 85ms instead of 80ms.
    kanaka committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    eb93117 View commit details
    Browse the repository at this point in the history
  3. Add port forwarding support (conlink -> containers)

    - Add new 'forward' link property. This property is an array of strings
      of the form `conlink_port:container_port/proto` similar to docker port
      publishing.
    - Add 'link-forward.sh' script that will add (or delete) the iptables
      and route rules to accomplish the port forwarding from one interface
      to an IP on another interface with port remappping (NAT/masquerade).
    - Add a test10 example that shows a single forward definition forwarding
      to two container replicas and shows two forward defintions both
      forwarding to a single container service/port.
    kanaka committed Apr 19, 2024
    Configuration menu
    Copy the full SHA
    803fd8c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d164d02 View commit details
    Browse the repository at this point in the history