dcmerge/pkg
Markus Pesch 003db26fe5
All checks were successful
continuous-integration/drone/push Build is passing
feat: respect individual ports instead of replacing the entire slice of ports
The following patch adapts the logic of the merge strategy existing and last
win for service ports.

In the past, the complete object has been replaced based on the merge strategy.
This behavior has been adapted, that each port should now considered
individually per strategy.

Both strategies now focus on the src port of the host system. With a last-win,
the dest port of the container is overwritten with an existing src port.

```diff
  service:
    my-app:
      ports:
- - 0.0.0.0:8080:80
+ - 0.0.0.0:8080:8080
      - 0.0.0.0:8443:8443
```

The situation is different with the existing win strategy. There, the destination
port can no longer be changed once there is a connection with a sourc port.
2025-02-21 13:55:53 +01:00
..
domain/dockerCompose feat: respect individual ports instead of replacing the entire slice of ports 2025-02-21 13:55:53 +01:00
fetcher fix(fetcher): handle all os.Stat() errors 2024-12-03 11:09:38 +01:00