This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const https = require('https'); | |
const { URL } = require('url'); | |
/** | |
* determine latest OneAgent extension layer ARNs | |
* preconditions: | |
* - Dynatrace version 1.218 or later | |
* - the new serverless framework asychnronous variable resolver must be enabled. in order to do so, | |
* add `variablesResolutionMode: '20210326'` to the toplevel of your serverless.yml file. | |
* - DT_PAAS_TOKEN environment varible contains PaaS token required to query deployment API (alternatively, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:1.11.2-alpine | |
USER root | |
RUN apk update && apk add musl-dbg gcc libc-dev | |
COPY preload.c /go | |
COPY gogo.go /go | |
COPY runtest.sh /go | |
RUN gcc -ggdb -fPIC -shared -o libpreload.so preload.c && go build -o gogo-int-linker gogo.go && go build -ldflags '-linkmode external' -o gogo-ext-linker gogo.go | |
ENTRYPOINT [ "/bin/sh" ] |