-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
docker-compose.yml does not support arrays for env_file entries.
To Reproduce
Steps to reproduce the behavior:
- Download https://goauthentik.io/docker-compose.yml
- Run
mw deploy stack - See error
Expected behavior
Should support arrays for env_files.
cli/src/lib/resources/stack/enrich.ts
Lines 36 to 37 in 76203a9
| const envFileContent = await readFile(service.env_file, "utf-8"); | |
| const envVars = parse(envFileContent); |
After changing the original docker-compose.yml to env_file: .env instead of env_file: \n - .env, it works.
Console logs
If applicable, add console outputs to help explain your problem.
Details
Deploying container stack
❌getting image configurations. error
An error occurred during this operation:
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received an instance of Array
┌──────────────────────────────────────────────────────────────────────────────┐
│ ERROR │
│ │
│ An error occurred while executing this command: │
│ │
│ TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type │
│ string or an instance of Buffer or URL. Received an instance of Array │
│ │
│ If you believe this to be a bug, please open an issue at │
│ https://github.com/mittwald/cli/issues/new. │
└──────────────────────────────────────────────────────────────────────────────┘
ERROR STACK TRACE
Please provide this when opening a bug report.
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received an instance of Array
at open (node:internal/fs/promises:636:10)
at readFile (node:internal/fs/promises:1246:20)
at setEnvironmentFromEnvFile (file:///usr/local/Cellar/mw/1.11.0/libexec/dist/lib/resources/stack/enrich.js:17:34)
at enrichStackDefinition (file:///usr/local/Cellar/mw/1.11.0/libexec/dist/lib/resources/stack/enrich.js:7:25)
at file:///usr/local/Cellar/mw/1.11.0/libexec/dist/commands/stack/deploy.js:38:81
at FancyProcessRenderer.runStep (file:///usr/local/Cellar/mw/1.11.0/libexec/dist/rendering/process/process_fancy.js:43:56)
at Deploy.exec (file:///usr/local/Cellar/mw/1.11.0/libexec/dist/commands/stack/deploy.js:38:35)
at async Deploy.run (file:///usr/local/Cellar/mw/1.11.0/libexec/dist/lib/basecommands/ExecRenderBaseCommand.js:21:24)
at async Deploy._run (/usr/local/Cellar/mw/1.11.0/libexec/node_modules/@oclif/core/lib/command.js:181:22)
at async Config.runCommand (/usr/local/Cellar/mw/1.11.0/libexec/node_modules/@oclif/core/lib/config/config.js:456:25)
Environment (please complete the following information):
- OS: macOS
- Version: @mittwald/cli/1.11.0 darwin-x64 node-v20.19.3
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working