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

Support for anchors in YAML #58

Closed
bsv9 opened this issue Jan 30, 2024 · 1 comment · Fixed by #122
Closed

Support for anchors in YAML #58

bsv9 opened this issue Jan 30, 2024 · 1 comment · Fixed by #122
Labels
enhancement New feature or request
Milestone

Comments

@bsv9
Copy link

bsv9 commented Jan 30, 2024

Hello,

It would be good to add YAML anchors support.

Example

version: '3.4'
services:
  redis: &redis
    image: docker.io/redis:7-alpine
    command:
    - sh
    - -c # this is to evaluate the $REDIS_PASSWORD from the env
    - redis-server --appendonly yes --requirepass $$REDIS_PASSWORD ## $$ because of docker-compose
    env_file: redis.env
    volumes:
    - redis-data:/data
  redis-cache:
    <<: *redis
    env_file: redis-cache.env
    volumes:
    - redis-cache-data:/data

volumes:
  redis-cache-data:
    driver: local
  redis-data:
    driver: local

Error

$ 
Error:
   0: File `docker-compose.yaml` is not a valid compose file
   1: services.redis-cache: unknown attribute "<<", extensions must start with 'x-' (see https://docs.docker.com/compose/compose-file/#extension) at line 15 column 5

Location:
   src/cli/compose.rs:61

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

Version

podlet 0.2.4

@k9withabone k9withabone added the enhancement New feature or request label Feb 10, 2024
@k9withabone k9withabone added the blocked Waiting on something else to resolve label Feb 19, 2024
@k9withabone k9withabone added this to the v0.3.0 milestone Feb 19, 2024
@k9withabone
Copy link
Member

Blocked on #63 and k9withabone/compose_spec_rs#2.

@k9withabone k9withabone modified the milestones: v0.3.0, v0.3.1 Mar 22, 2024
@k9withabone k9withabone removed the blocked Waiting on something else to resolve label Oct 16, 2024
k9withabone added a commit that referenced this issue Oct 16, 2024
Closes: #58
Signed-off-by: Paul Nettleton <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants