Skip to content
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

Enable jar file deployments for Azure app service #1386

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

bec-callow-oct
Copy link
Contributor

@bec-callow-oct bec-callow-oct commented Nov 14, 2024

SC-96592
Deployment of jar files via the Deploy an Azure App Service step in Octopus Server is currently disabled. This PR is in response to a feature request to support jar deployment.

The existing implementation for war files is not suitable for jar deployment because the file contents are extracted on deployment. The Kudu service supports jar deployment via the /api/publish?type=jar endpoint, which renames the jar to app.jar and places it within the wwwroot directory on the app service. By default, the app service is not capable of running jar files, so a startup script or command is required (eg. java -jar /home/site/wwwroot/app.jar)

Testing this PR requires a sandbox app service configured to support Java, with a startup command to execute the jar.

No Octopus branch instance is available for this PR yet due to build failures

@bec-callow-oct bec-callow-oct marked this pull request as ready for review November 14, 2024 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant