From ecbf032225b5f7c090a7e6005f0572d481188cce Mon Sep 17 00:00:00 2001 From: SHANiTH K K <59169878+shanithkk@users.noreply.github.com> Date: Mon, 30 Oct 2023 18:10:25 +0530 Subject: [PATCH] feat: implement kurtosis package to run subsocial parachain local (#21) --- parachain/subsocial.star | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 parachain/subsocial.star diff --git a/parachain/subsocial.star b/parachain/subsocial.star new file mode 100644 index 0000000..424e8a9 --- /dev/null +++ b/parachain/subsocial.star @@ -0,0 +1,19 @@ +def run_subsocial(plan, args): + exec_command = [ + "/bin/sh", + "-c", + "/usr/local/bin/subsocial-collator --collator --chain=local-rococo --port 40335 --ws-port 9944 --unsafe-ws-external -- --execution wasm --chain /app/rococo-local.json", + ] + plan.add_service( + name = "subsocial", + config = ServiceConfig( + image = "dappforce/subsocial-parachain:latest", + files = { + "/app": "configs", + }, + ports = { + "parachain": PortSpec(9944, transport_protocol = "TCP"), + }, + entrypoint = exec_command, + ), + )