deployment-environments icon indicating copy to clipboard operation
deployment-environments copied to clipboard

ADE with extensibility and custom container image

Open msandbu opened this issue 1 year ago • 2 comments

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?

msandbu avatar Apr 30 '24 11:04 msandbu

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 avatar Apr 30 '24 15:04 j-rewerts

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

j-rewerts avatar Apr 30 '24 16:04 j-rewerts

You can now view logs on the devportal.microsoft.com.

varshagangu9 avatar Feb 18 '25 21:02 varshagangu9