score-spec / score-compose

Reference implementation for docker-compose target platform support
https://score.dev/
Apache License 2.0
445 stars 39 forks source link

[FEATURE] support volume subpath #166

Closed ndeloof closed 1 week ago

ndeloof commented 2 weeks ago

Documentation says:

Volume mounts with path will be rejected. Docker compose doesn't support sub-path mounts for Docker volumes."

this isn't true (since https://github.com/compose-spec/compose-go/pull/594)

      - type: volume
        source: foo
        target: /app
        volume:
          subpath: etc/settings
astromechza commented 2 weeks ago

hah! well spotted @ndeloof and thanks for the contribution to compose 👍 We'll get this fixed up.

ndeloof commented 2 weeks ago

also, feel free to add score-compose to the list of users for compose-go library on https://github.com/compose-spec/compose-go?tab=readme-ov-file#used-by

astromechza commented 2 weeks ago

👍 Done in https://github.com/compose-spec/compose-go/pull/660