Azure / container-apps-deploy-pipelines-task

Azure Pipelines Task (Release Candidate) for building and deploying Azure Container Apps
MIT License
6 stars 10 forks source link

Is supporting the Java runtime stack on the roadmap? #9

Open chriswangelin opened 1 year ago

chriswangelin commented 1 year ago

Is supporting the Java runtime stack on the roadmap? I noticed that Java is not in the list of supported Oryx versions that can be pulled from MCR.

Before I was aware of the Java limitation, I tried to deploy a Java-based image and got the following error:

ERROR: failed to build: invalid run-image 'mcr.microsoft.com/oryx/:': invalid reference format

I also noticed this in the log:

No runtimeStack argument was provided; using the runtime stack that was found for the app ':'.

More context:

Status: Downloaded newer image for cormtestacr.azurecr.io/oryx/cli:latest
:
/usr/bin/bash -c rm /agent/_work/1/my/oryx-runtime.txt
No runtimeStack argument was provided; using the runtime stack that was found for the app ':'.
No Dockerfile was provided or found for the application source; attempting to create a runnable application image using the Oryx++ Builder.
/usr/local/bin/pack config default-builder cormtestacr.azurecr.io/builder:latest
Builder 'cormtestacr.azurecr.io/builder:latest' is now the default builder
/usr/local/bin/pack build mylabcr.azurecr.io/mytag:latest --path /agent/_work/1/my --builder cormtestacr.azurecr.io/builder:latest --run-image mcr.microsoft.com/oryx/: --env CALLER_ID=azure-pipelines-v0
ERROR: failed to build: invalid run-image 'mcr.microsoft.com/oryx/:': invalid reference format

An error message indicating that I attempted to use an unsupported runtime stack would have been helpful to me.

cormacpayne commented 1 year ago

@chriswangelin Hey Chris, thanks for the issue -- you are correct, there is currently no runtime image offered for Java, but Oryx does have the ability to build Java applications for other scenarios leveraged by internal Microsoft services.

We currently don't have any plans to extend runtime support to the Java platform, but that may change in the future if we see enough traction from the community and internal Microsoft services that would like to run their Java applications using this task.

The error message you're seeing is definitely not ideal, so I'll make sure that we update it so users targeting our Oryx builder to create a runnable application image are prompted with an actionable message when using an unsupported platform. Thanks for the feedback and feel free to let us know if you have any additional questions!

chriswangelin commented 1 year ago

@cormacpayne Cormac, thank you for the clarification and prompt action on this issue. Although my immediate use case is Java, I have several use cases for supported platforms that I look forward to trying out in the coming months. Really appreciate the work you and your team have put into evolving this product!