diff --git a/app/data/compose/docker-compose-go-nitro.yml b/app/data/compose/docker-compose-go-nitro.yml new file mode 100644 index 00000000..daa3145f --- /dev/null +++ b/app/data/compose/docker-compose-go-nitro.yml @@ -0,0 +1,35 @@ +version: '3.7' + +services: + go-nitro: + restart: always + hostname: go-nitro + environment: + CHAIN_URL: ${CHAIN_URL:-ws://fixturenet-eth-geth-1:8546} + NA_ADDRESS: ${NA_ADDRESS} + VPA_ADDRESS: ${VPA_ADDRESS} + CA_ADDRESS: ${CA_ADDRESS} + MSG_PORT: ${MSG_PORT:-3005} + RPC_PORT: ${RPC_PORT:-4005} + WS_MSG_PORT: ${WS_MSG_PORT:-5005} + PK: ${PK} + CHAIN_PK: ${CHAIN_PK} + USE_DURABLE_STORE: ${USE_DURABLE_STORE:-true} + DURABLE_STORE_FOLDER: ${DURABLE_STORE_FOLDER:-/app/data/nitro-store} + BOOT_PEERS: [] + image: cerc/go-nitro:local + volumes: + go_nitro_data: /app/data + healthcheck: + test: ["CMD", "nc", "-v", "localhost", "${MSG_PORT:-3005}"] + interval: 5s + timeout: 5s + retries: 5 + start_period: 5s + ports: + - "3005" + - "4005" + - "5005" + +volumes: + go_nitro_data: diff --git a/app/data/container-build/cerc-go-nitro/build.sh b/app/data/container-build/cerc-go-nitro/build.sh new file mode 100755 index 00000000..0637f46d --- /dev/null +++ b/app/data/container-build/cerc-go-nitro/build.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +# Build cerc/go-nitro + +source ${CERC_CONTAINER_BASE_DIR}/build-base.sh + +docker build -t cerc/go-nitro:local -f ${CERC_REPO_BASE_DIR}/go-nitro/docker/local/Dockerfile ${build_command_args} ${CERC_REPO_BASE_DIR}/go-nitro diff --git a/app/data/container-image-list.txt b/app/data/container-image-list.txt index ab8bc3ce..c1c2b3f3 100644 --- a/app/data/container-image-list.txt +++ b/app/data/container-image-list.txt @@ -51,3 +51,4 @@ cerc/graph-node cerc/sushiswap-subgraphs cerc/webapp-base cerc/watcher-mobymask-v3 +cerc/go-nitro diff --git a/app/data/pod-list.txt b/app/data/pod-list.txt index ee3fc53b..e6d99350 100644 --- a/app/data/pod-list.txt +++ b/app/data/pod-list.txt @@ -37,3 +37,4 @@ sushiswap-subgraph-v3 fixturenet-sushiswap-subgraph-v3 watcher-mobymask-v3 mobymask-app-v3 +go-nitro diff --git a/app/data/repository-list.txt b/app/data/repository-list.txt index d85b5895..ffa31587 100644 --- a/app/data/repository-list.txt +++ b/app/data/repository-list.txt @@ -43,3 +43,4 @@ github.com/cerc-io/sushiswap-v3-core github.com/cerc-io/sushiswap-v3-periphery github.com/graphprotocol/graph-node github.com/sushiswap/subgraphs +github.com/cerc-io/go-nitro diff --git a/app/data/stacks/fixturenet-payments/stack.yml b/app/data/stacks/fixturenet-payments/stack.yml index 2995dfdc..5385b166 100644 --- a/app/data/stacks/fixturenet-payments/stack.yml +++ b/app/data/stacks/fixturenet-payments/stack.yml @@ -7,6 +7,7 @@ repos: - github.com/cerc-io/lighthouse - github.com/cerc-io/ipld-eth-db - github.com/cerc-io/ipld-eth-server + - github.com/cerc-io/go-nitro@ts-interop containers: # fixturenet images - cerc/go-ethereum @@ -17,7 +18,9 @@ containers: - cerc/fixturenet-eth-lighthouse - cerc/ipld-eth-db - cerc/ipld-eth-server + - cerc/go-nitro pods: - fixturenet-eth - ipld-eth-server - ipld-eth-db + - go-nitro