containers / podlet

Generate Podman Quadlet files from a Podman command, compose file, or existing object
https://crates.io/crates/podlet
Mozilla Public License 2.0
318 stars 10 forks source link

Handle env file #87

Closed gdmn closed 4 weeks ago

gdmn commented 4 weeks ago

Variables from .env file are currently ignored, quadlet generation from compose file using these variables fails.

E.g., Immich compose file with "${UPLOAD_LOCATION}/photos:/usr/src/app/upload" volume definition:

wget https://raw.githubusercontent.com/immich-app/immich/main/docker/docker-compose.yml

podlet compose docker-compose.yml 
Error: 
   0: error converting compose file
   1: error reading compose file
   2: File `docker-compose.prod.yml` is not a valid compose file
   3: services.immich-server.volumes[0]: error parsing volume source: error parsing volume identifier: invalid start character `$`, identifiers must start with an ASCII letter (a-z, A-Z) or digit (0-9) at line 14 column 9

Location:
   src/cli/compose.rs:203

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
k9withabone commented 4 weeks ago

Pretty sure this is a duplicate of #81, please correct me if I'm wrong.