14 Jun 2022
03:09 AM
- last edited on
20 Jun 2022
02:37 AM
by
MaciejNeumann
Dear,
Our application team is trying to integrate OneAgent on a docker image used in the Azure app service.
We're using the following website as a reference:
Option 2:
For SaaS deployments:
RUN curl -o /tmp/installer.sh -s https://<your-environment-ID>.live.dynatrace.com/api/v1/deployment/installer/agent/unix/paas-sh/latest?Api-Token=<DT_PAAS_TOKEN>&arch=x86 && sh /tmp/installer.sh /home
ENV LD_PRELOAD /home/dynatrace/oneagent/agent/lib64/liboneagentproc.so
Error: sh: can't open '/tmp/installer.sh': No such file or directory
Attached you can find the screenshot.
Thanks in advance,
Regards
Solved! Go to Solution.
Hello,
you need to add your environment ID between https:// and .live.dynatrace.com
For example, https://abc123.live.dynatrace.com
Gerald
Hello Gerald,
Thanks for the quick reply. I've made the id invisible in the screenshot. Sorry for the confusion.
Best Regards
Tars
Ok, what if you just run the curl command without invoking the installer.sh script? Maybe the download doesn't work.
Just run sudo curl ... without && /tmp/installer.sh ....
Hello Gerald,
Thanks, the build has been succeeded.
Best Regards
Gerald,
Seems like the download is working fine. But the installation seems to fail.
Still receiving the same error when trying with the && /tmp/installer.sh (tried different paths).
Always receive: sh: can't open '/home/installer.sh': No such file or directory.
Tars, what's the output of ls -l /tmp/installer.sh ?
Maybe the file is missing the execution flag.
Gerald,
Sorry for the late response. Says that there is no such file or directory.
See the attached screen.