Add a container and service for mobymask-snap
This commit is contained in:
parent
d43d36cc40
commit
fab4358cd9
@ -25,10 +25,10 @@ services:
|
|||||||
- ../config/go-nitro/run-nitro-node.sh:/app/run-nitro-node.sh
|
- ../config/go-nitro/run-nitro-node.sh:/app/run-nitro-node.sh
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "nc", "-vz", "localhost", "4005"]
|
test: ["CMD", "nc", "-vz", "localhost", "4005"]
|
||||||
interval: 5s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 10
|
||||||
start_period: 5s
|
start_period: 10s
|
||||||
ports:
|
ports:
|
||||||
- "3005"
|
- "3005"
|
||||||
- "4005"
|
- "4005"
|
||||||
|
14
app/data/compose/docker-compose-mobymask-snap.yml
Normal file
14
app/data/compose/docker-compose-mobymask-snap.yml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
version: '3.7'
|
||||||
|
|
||||||
|
services:
|
||||||
|
mobymask-snap:
|
||||||
|
restart: unless-stopped
|
||||||
|
image: cerc/mobymask-snap:local
|
||||||
|
ports:
|
||||||
|
- "127.0.0.1:8080:8080"
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "nc", "-vz", "localhost", "8080"]
|
||||||
|
interval: 10s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 10
|
||||||
|
start_period: 10s
|
@ -19,9 +19,9 @@ services:
|
|||||||
- ../config/go-nitro/run-reverse-payment-proxy.sh:/app/run-reverse-payment-proxy.sh
|
- ../config/go-nitro/run-reverse-payment-proxy.sh:/app/run-reverse-payment-proxy.sh
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "nc", "-vz", "localhost", "8081"]
|
test: ["CMD", "nc", "-vz", "localhost", "8081"]
|
||||||
interval: 5s
|
interval: 10s
|
||||||
timeout: 5s
|
timeout: 5s
|
||||||
retries: 5
|
retries: 10
|
||||||
start_period: 5s
|
start_period: 10s
|
||||||
ports:
|
ports:
|
||||||
- "8081:8081"
|
- "8081:8081"
|
||||||
|
13
app/data/container-build/cerc-mobymask-snap/Dockerfile
Normal file
13
app/data/container-build/cerc-mobymask-snap/Dockerfile
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
FROM node:18.15.0-alpine3.16
|
||||||
|
|
||||||
|
RUN apk --update --no-cache add git python3 alpine-sdk bash
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN echo "Installing dependencies..." && \
|
||||||
|
yarn install && \
|
||||||
|
cd packages/snap
|
||||||
|
|
||||||
|
CMD ["bash", "-c", "yarn start"]
|
7
app/data/container-build/cerc-mobymask-snap/build.sh
Executable file
7
app/data/container-build/cerc-mobymask-snap/build.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Build cerc/mobymask-snap
|
||||||
|
|
||||||
|
source ${CERC_CONTAINER_BASE_DIR}/build-base.sh
|
||||||
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||||
|
|
||||||
|
docker build -t cerc/mobymask-snap:local -f ${SCRIPT_DIR}/Dockerfile ${build_command_args} ${CERC_REPO_BASE_DIR}/mobymask-snap
|
@ -53,3 +53,4 @@ cerc/webapp-base
|
|||||||
cerc/watcher-mobymask-v3
|
cerc/watcher-mobymask-v3
|
||||||
cerc/go-nitro
|
cerc/go-nitro
|
||||||
cerc/nitro-contracts
|
cerc/nitro-contracts
|
||||||
|
cerc/mobymask-snap
|
||||||
|
@ -40,3 +40,4 @@ mobymask-app-v3
|
|||||||
go-nitro
|
go-nitro
|
||||||
nitro-contracts
|
nitro-contracts
|
||||||
nitro-reverse-payment-proxy
|
nitro-reverse-payment-proxy
|
||||||
|
mobymask-snap
|
||||||
|
@ -45,3 +45,4 @@ github.com/graphprotocol/graph-node
|
|||||||
github.com/sushiswap/subgraphs
|
github.com/sushiswap/subgraphs
|
||||||
github.com/cerc-io/go-nitro
|
github.com/cerc-io/go-nitro
|
||||||
github.com/cerc-io/ts-nitro
|
github.com/cerc-io/ts-nitro
|
||||||
|
github.com/cerc-io/mobymask-snap
|
||||||
|
@ -14,6 +14,8 @@ repos:
|
|||||||
- github.com/cerc-io/watcher-ts@v0.2.61
|
- github.com/cerc-io/watcher-ts@v0.2.61
|
||||||
- github.com/cerc-io/mobymask-v2-watcher-ts@v0.2.0 # TODO: Update
|
- github.com/cerc-io/mobymask-v2-watcher-ts@v0.2.0 # TODO: Update
|
||||||
- github.com/cerc-io/MobyMask@v0.1.3
|
- github.com/cerc-io/MobyMask@v0.1.3
|
||||||
|
# mobymask app repos
|
||||||
|
- github.com/cerc-io/mobymask-snap
|
||||||
containers:
|
containers:
|
||||||
# fixturenet images
|
# fixturenet images
|
||||||
- cerc/go-ethereum
|
- cerc/go-ethereum
|
||||||
@ -30,6 +32,8 @@ containers:
|
|||||||
- cerc/watcher-ts
|
- cerc/watcher-ts
|
||||||
- cerc/watcher-mobymask-v3
|
- cerc/watcher-mobymask-v3
|
||||||
- cerc/mobymask
|
- cerc/mobymask
|
||||||
|
# mobymask app images
|
||||||
|
- cerc/mobymask-snap
|
||||||
pods:
|
pods:
|
||||||
- fixturenet-eth
|
- fixturenet-eth
|
||||||
- ipld-eth-server
|
- ipld-eth-server
|
||||||
@ -38,3 +42,4 @@ pods:
|
|||||||
- go-nitro
|
- go-nitro
|
||||||
- nitro-reverse-payment-proxy
|
- nitro-reverse-payment-proxy
|
||||||
- watcher-mobymask-v3
|
- watcher-mobymask-v3
|
||||||
|
- mobymask-snap
|
||||||
|
Loading…
Reference in New Issue
Block a user