28 Jun 2024 12:07 PM - last edited on 01 Jul 2024 12:09 PM by MaciejNeumann
Hi,
I would like to start to use dynatrace but I'm totally stuck with our setup.
```
FROM node:20-alpine
COPY --from=xxxxxxx.live.dynatrace.com/linux/oneagent-codemodules-musl:all / /
ENV LD_PRELOAD /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so
ENV DT_LOGLEVELCON INFO
```
`docker build -t test .`
`docker run --rm -it test`
Then you have the full error here:
```
Error relocating /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so: unsupported relocation type 16
Error relocating /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so: unsupported relocation type 18
Error relocating /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so: unsupported relocation type 6
Error relocating /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so: unsupported relocation type 6
Error relocating /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so: unsupported relocation type 6
Error relocating /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so: unsupported relocation type 6
Error relocating /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so: unsupported relocation type 6
Error relocating /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so: unsupported relocation type 6
Error relocating /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so: unsupported relocation type 6
Error relocating /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so: unsupported relocation type 6
Error relocating /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so: unsupported relocation type 6
Error relocating /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so: unsupported relocation type 6
Error relocating /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so: unsupported relocation type 6
Error relocating /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so: unsupported relocation type 6
```
I'm using a MacBook PRO M3 (so ARM?).
Solved! Go to Solution.
28 Jun 2024 12:07 PM
I'm following this documentation https://docs.dynatrace.com/docs/setup-and-configuration/setup-on-cloud-platforms/amazon-web-services...
01 Jul 2024 09:16 AM
FROM node:20-alpine
#COPY --from=lap64308.live.dynatrace.com/linux/oneagent-codemodules-musl:all / /
#ENV LD_PRELOAD /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so
#ENV DT_LOGLEVELCON INFO
ARG DT_API_URL="https://{environmentid}.live.dynatrace.com/api"
ARG DT_API_TOKEN="<token redacted>"
ARG DT_ONEAGENT_OPTIONS="flavor=default&include=all"
ENV DT_HOME="/opt/dynatrace/oneagent"
RUN mkdir -p "$DT_HOME" && \
wget -O "$DT_HOME/oneagent.zip" "$DT_API_URL/v1/deployment/installer/agent/unix/paas/latest?Api-Token=$DT_API_TOKEN&$DT_ONEAGENT_OPTIONS" && \
unzip -d "$DT_HOME" "$DT_HOME/oneagent.zip" && \
rm "$DT_HOME/oneagent.zip"
ENTRYPOINT [ "/opt/dynatrace/oneagent/dynatrace-agent64.sh" ]
With the other way to install it
02 Jul 2024 12:30 PM
And the answer: use the classic integration for build runtime (in the mentioned docs) and add the `arch=arm` reference? ARG DT_ONEAGENT_OPTIONS="flavor=musl&arch=arm&include=all"