Change sling.home in Azure App Service container | Community
Skip to main content
June 29, 2022

Change sling.home in Azure App Service container

  • June 29, 2022
  • 2 replies
  • 940 views

I'm running the "apache/sling" Docker image in an Azure App Service. AFAICT, App Service only supports visibility/persistence in the "/home" directory in the container. Therefore, I think I need to change Sling's "sling.home" property from its default "/opt/sling" to something like "/home/sling".

 

I suspect I have to create my own Docker image based on "apache/sling", but still, between all the possible ways to set "sling.home", in OSGi framework properties, JAR files, command line arguments, etc., I'm lost to figure out what to actually change in my own Docker image. Should I build some part of this from modified source? Or what?

 

BTW, this is all in order to start working with Sling until my org eventually gets AEM.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

SantoshSai
Community Advisor
Community Advisor
June 29, 2022
Conrad59Author
June 29, 2022

Thank you but none of those links has much to do with my question AFAICT. 2 of them are about making an AEM instance use Azure Storage Service, and the 3rd one is about integrating AEM with Azure Active Directory. My question is about running a Sling container in Azure App Service.

arunpatidar
Community Advisor
Community Advisor
July 4, 2022
Conrad59Author
July 5, 2022

Thanks, yes that command line option looks like a hypothetical solution, but that's the command line for the "Sling standalone application". I'm using the "apache/sling" Docker image, which gives me no access to that "standalone application's" command line AFAICT, and I can't figure out what I'd need to change or rebuild in that Docker image in order to pass an argument to that "standalone application's" command line.