-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
az containerapp compose create
is stuck due to a specific docker compose file
#30674
Comments
Thank you for opening this issue, we will look into it. |
The cause of this issue is smurawski/pycomposefile#37, and the latest version also has the same issue. |
Hi @horihiro I think this behavior is the same as this issue: Azure/azure-cli-extensions#7007 (comment) This is because the variables and variable values are not set, after executing the assignment statement, it can execute normally. |
Thanks @Greedygre |
Sorry, I can repro it with https://github.com/langgenius/dify/blob/main/docker/docker-compose.yaml, my previous reply has typo error, I have updated it. I think this behavior is the same as this issue: Azure/azure-cli-extensions#7007 (comment) This is because the variables and variable values are not set, after executing the assignment statement, it can execute normally. |
Thanks. I suggest this behavior is describled as limitation of this command if the variable values must be set, because Docker Compose spec allows this. |
Hi @horihiro I found following code make the parse stuck:
Base on 4 and 5, maybe it cannot parse one line include 2 vars. Others I did some test.
some type for example For 5, I tested change to
This code is
It is the limitation of |
Yes I reached same causes, so I filed issue smurawski/pycomposefile#37 and PR smurawski/pycomposefile#38 |
Describe the bug
I tried
az containerapp compose create
with the following docker compose file, then the command was stuck.https://github.com/langgenius/dify/blob/main/docker/docker-compose.yaml
It seems that loading yaml fails because this log doesn't display even with
--debug
.azure-cli/src/azure-cli/azure/cli/command_modules/containerapp/custom.py
Line 4927 in f0b5572
Related command
az containerapp compose create
Errors
No error message because the command is stuck
Issue script & Debug output
No error message
Expected behavior
The container apps would be created related the YAML file
Environment Summary
azure-cli 2.68.0
core 2.68.0
telemetry 1.1.0
Extensions:
authV2 0.1.3
bastion 1.3.1
devcenter 6.2.0
spring 1.6.4
ssh 2.0.6
Dependencies:
msal 1.31.1
azure-mgmt-resource 23.1.1
Python location '/opt/az/bin/python3'
Extensions directory '/home/horihiro/.azure/cliextensions'
Python (Linux) 3.12.8 (main, Jan 8 2025, 03:38:17) [GCC 11.4.0]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
No response
The text was updated successfully, but these errors were encountered: