Skip to content

Commit

Permalink
fix(staging): revise datadog-agent start process (#2935)
Browse files Browse the repository at this point in the history
  • Loading branch information
timwu20 committed Nov 10, 2022
1 parent 463a9b7 commit 36ce37d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile.staging
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ RUN ["sh", "-c", "DD_AGENT_MAJOR_VERSION=7 DD_INSTALL_ONLY=true DD_API_KEY=${DD_
WORKDIR /gossamer

COPY . .

RUN ["sh", "-c", "mv .github/workflows/staging/openmetrics.d/${chain}-conf.yaml /etc/datadog-agent/conf.d/openmetrics.d/conf.yaml"]
RUN service datadog-agent start

RUN go get ./...
RUN go install -trimpath github.com/ChainSafe/gossamer/cmd/gossamer

RUN ["sh", "-c", "gossamer init --chain=${chain}"]
ENTRYPOINT ["sh", "-c", "service datadog-agent restart && gossamer --chain=${chain} --basepath=${basepath}/${chain} --publish-metrics --metrics-address=\":9876\" --pprofserver --pprofaddress=\":6060\""]
ENTRYPOINT ["sh", "-c", "service datadog-agent start && gossamer --chain=${chain} --basepath=${basepath}/${chain} --publish-metrics --metrics-address=\":9876\" --pprofserver --pprofaddress=\":6060\""]
EXPOSE 7001 8546 8540 9876 6060

0 comments on commit 36ce37d

Please sign in to comment.