From ccf547f246870f933132f79caa047a1480cfd955 Mon Sep 17 00:00:00 2001 From: jimboj Date: Fri, 12 Jan 2024 13:37:43 -0700 Subject: [PATCH 1/3] expose rpc for staging westend --- .github/workflows/staging/westend-taskdef.json | 4 ++++ Dockerfile.staging | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/staging/westend-taskdef.json b/.github/workflows/staging/westend-taskdef.json index f4529ee559..445227401a 100644 --- a/.github/workflows/staging/westend-taskdef.json +++ b/.github/workflows/staging/westend-taskdef.json @@ -14,6 +14,10 @@ "containerPort": 7001, "protocol": "tcp" }, + { + "containerPort": 8545, + "protocol": "tcp" + }, { "containerPort": 8546, "protocol": "tcp" diff --git a/Dockerfile.staging b/Dockerfile.staging index 787478567b..25ce4dcf42 100644 --- a/Dockerfile.staging +++ b/Dockerfile.staging @@ -1,6 +1,6 @@ FROM golang:1.21 -ARG chain="polkadot" +ARG chain="westend" ARG basepath="~/.gossamer" ARG DD_API_KEY @@ -20,5 +20,5 @@ RUN go get ./... RUN go install -trimpath github.com/ChainSafe/gossamer/cmd/gossamer RUN ["sh", "-c", "gossamer init --chain=${chain} --base-path=${basepath}/${chain}"] -ENTRYPOINT ["sh", "-c", "service datadog-agent start && gossamer --chain=${chain} --base-path=${basepath}/${chain} --prometheus-external --prometheus-port=9876 --pprof.enabled --pprof.listening-address=\":6060\""] -EXPOSE 7001 8546 8540 9876 6060 +ENTRYPOINT ["sh", "-c", "gossamer --chain=${chain} --base-path=${basepath}/${chain} --rpc-external=true --unsafe-rpc=true --prometheus-external --prometheus-port=9876 --pprof.enabled --pprof.listening-address=\":6060\""] +EXPOSE 7001 8545 8546 8540 9876 6060 From 28596169f7d07100b86bf3478e74fd3754d88227 Mon Sep 17 00:00:00 2001 From: jimboj Date: Fri, 12 Jan 2024 13:41:18 -0700 Subject: [PATCH 2/3] add back in datadog logic --- Dockerfile.staging | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.staging b/Dockerfile.staging index 25ce4dcf42..a3b6df7588 100644 --- a/Dockerfile.staging +++ b/Dockerfile.staging @@ -20,5 +20,5 @@ RUN go get ./... RUN go install -trimpath github.com/ChainSafe/gossamer/cmd/gossamer RUN ["sh", "-c", "gossamer init --chain=${chain} --base-path=${basepath}/${chain}"] -ENTRYPOINT ["sh", "-c", "gossamer --chain=${chain} --base-path=${basepath}/${chain} --rpc-external=true --unsafe-rpc=true --prometheus-external --prometheus-port=9876 --pprof.enabled --pprof.listening-address=\":6060\""] +ENTRYPOINT ["sh", "-c", "service datadog-agent start && gossamer --chain=${chain} --base-path=${basepath}/${chain} --rpc-external=true --unsafe-rpc=true --prometheus-external --prometheus-port=9876 --pprof.enabled --pprof.listening-address=\":6060\""] EXPOSE 7001 8545 8546 8540 9876 6060 From 15dc924cc021067a55ab71e4c3b75d2ae867e8ac Mon Sep 17 00:00:00 2001 From: jimboj Date: Fri, 12 Jan 2024 13:44:05 -0700 Subject: [PATCH 3/3] revert back to polkadot --- Dockerfile.staging | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile.staging b/Dockerfile.staging index a3b6df7588..34a7d000b3 100644 --- a/Dockerfile.staging +++ b/Dockerfile.staging @@ -1,6 +1,6 @@ FROM golang:1.21 -ARG chain="westend" +ARG chain="polkadot" ARG basepath="~/.gossamer" ARG DD_API_KEY