Skip to content

Commit

Permalink
fix docker
Browse files Browse the repository at this point in the history
  • Loading branch information
kanishkatn committed May 18, 2023
1 parent c0f182b commit bc11cfc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Dockerfile.staging
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ARG basepath="~/.gossamer"
ARG DD_API_KEY

ENV chain=${chain}
ENV basepath=${basepath}
ENV GSSMRHOME=${basepath}
ENV DD_API_KEY=${DD_API_KEY}
ENV DD_HOSTNAME=${chain}-host

Expand All @@ -19,6 +19,6 @@ RUN ["sh", "-c", "mv .github/workflows/staging/openmetrics.d/${chain}-conf.yaml
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 start && gossamer --chain=${chain} --basepath=${basepath}/${chain} --publish-metrics --metrics-address=\":9876\" --pprofserver --pprofaddress=\":6060\""]
RUN ["sh", "-c", "gossamer init --chain=${chain} --base-path=${basepath}"]
ENTRYPOINT ["sh", "-c", "service datadog-agent start && gossamer --chain=${chain} --base-path=${basepath} --prometheus-external --prometheus-port=9876 --pprof.enabled --pprof.listening-address=\":6060\""]
EXPOSE 7001 8546 8540 9876 6060
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ services:
# Remove with: docker volume rm gossamer
- gossamer:/data/gossamer
command:
- --basepath=/data/gossamer
- --base-path=/data/gossamer
- --chain=kusama
- --log=info
- --publish-metrics
- --metrics-address=:9876
- --pprofserver
- --prometheus-external
- --prometheus-port=9876
- --pprof.enabled
ports:
- 6060:6060/tcp # Pprof server
- 7001:7001/tcp # Network port
Expand Down

0 comments on commit bc11cfc

Please sign in to comment.