08 Aug 202103:00 PM - last edited on 08 Sep 202102:18 PM by Karolina_Linda
Just wanted to share with you something we've learned as part of integrating Dynatrace with Azure web app for containers running alpine Linux.
So the documentation instructs to add a startup command which will run before the container itself is span up. During this command you should curl for the agent script and define the environment variable, however, in our installation cUrl was not part of the container so something else had to be done.
We've learned that you could add the startup command in the configuration, but better than that, if this is left empty, than Azure will search for a file called startup.sh in the /home folder. This file could have much more complex set of commands andf allowed us to also install additional packages.
By the way, we've left the definition of the environment variable outside of the startup script (i.e. in the global definitions of the container).
Hope this will help some of you in the future and if not, perhaps you've just learned something new. That's good enough 🙂