Azure / deployment-environments

Sample infrastructure-as-code templates to get started with Azure Deployment Environments service.
MIT License
68 stars 223 forks source link

ADE with extensibility and custom container image #54

Open msandbu opened 6 months ago

msandbu commented 6 months ago

Hi!

Im trying to use the custom container image here to run Terraform, and to begin with I have tried the ARM/Bicep image defined here --> https://github.com/Azure/deployment-environments/blob/main/Runner-Images/ARM-Bicep/Dockerfile I wanted to try and run the container image locally just to make sure it is working as intended. But when I try and run the image locally, I get this error message

docker run nameofimage

_Initializing runner Unrecognized command or argument 'Initializing runner'.

Description: Logs providing context to the operation that is being run.

Usage: ade log [options]

Options: --content The content to log. --type The level of logging for the content. Allowed values are 'log', 'verbose', and 'error'. [default: log] --operation The operation which is creating the log. [] -?, -h, --help Show help and usage information

Uploading environment state to Unrecognized command or argument 'Uploading environment state to '_

Should it have worked to run the container locally just so I can see use that way to debug that the terraform actions are running as intended?

j-rewerts commented 6 months ago

Hey @msandbu! We don't currently have a local development loop unfortunately. Images must be built locally, then referenced in an environment definition. The logs from your initial deployment can be surfaced here: https://learn.microsoft.com/en-us/cli/azure/devcenter/dev/environment?view=azure-cli-latest#az-devcenter-dev-environment-show-logs-by-operation

j-rewerts commented 6 months ago

We have plans to surface these logs in the dev portal eventually, but for the time being, the CLI must be used.