Skip to content

Commit

Permalink
Add a container and service for mobymask-snap
Browse files Browse the repository at this point in the history
  • Loading branch information
prathamesh0 committed Oct 2, 2023
1 parent d43d36c commit fab4358
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 6 deletions.
6 changes: 3 additions & 3 deletions app/data/compose/docker-compose-go-nitro.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ services:
- ../config/go-nitro/run-nitro-node.sh:/app/run-nitro-node.sh
healthcheck:
test: ["CMD", "nc", "-vz", "localhost", "4005"]
interval: 5s
interval: 10s
timeout: 5s
retries: 5
start_period: 5s
retries: 10
start_period: 10s
ports:
- "3005"
- "4005"
Expand Down
14 changes: 14 additions & 0 deletions app/data/compose/docker-compose-mobymask-snap.yml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ services:
- ../config/go-nitro/run-reverse-payment-proxy.sh:/app/run-reverse-payment-proxy.sh
healthcheck:
test: ["CMD", "nc", "-vz", "localhost", "8081"]
interval: 5s
interval: 10s
timeout: 5s
retries: 5
start_period: 5s
retries: 10
start_period: 10s
ports:
- "8081:8081"
13 changes: 13 additions & 0 deletions app/data/container-build/cerc-mobymask-snap/Dockerfile
Original file line number Diff line number Diff line change
@@ -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 changes: 7 additions & 0 deletions app/data/container-build/cerc-mobymask-snap/build.sh
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions app/data/container-image-list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ cerc/webapp-base
cerc/watcher-mobymask-v3
cerc/go-nitro
cerc/nitro-contracts
cerc/mobymask-snap
1 change: 1 addition & 0 deletions app/data/pod-list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ mobymask-app-v3
go-nitro
nitro-contracts
nitro-reverse-payment-proxy
mobymask-snap
1 change: 1 addition & 0 deletions app/data/repository-list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ github.com/graphprotocol/graph-node
github.com/sushiswap/subgraphs
github.com/cerc-io/go-nitro
github.com/cerc-io/ts-nitro
github.com/cerc-io/mobymask-snap
5 changes: 5 additions & 0 deletions app/data/stacks/fixturenet-payments/stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ repos:
- github.com/cerc-io/[email protected]
- github.com/cerc-io/[email protected] # TODO: Update
- github.com/cerc-io/[email protected]
# mobymask app repos
- github.com/cerc-io/mobymask-snap
containers:
# fixturenet images
- cerc/go-ethereum
Expand All @@ -30,6 +32,8 @@ containers:
- cerc/watcher-ts
- cerc/watcher-mobymask-v3
- cerc/mobymask
# mobymask app images
- cerc/mobymask-snap
pods:
- fixturenet-eth
- ipld-eth-server
Expand All @@ -38,3 +42,4 @@ pods:
- go-nitro
- nitro-reverse-payment-proxy
- watcher-mobymask-v3
- mobymask-snap

0 comments on commit fab4358

Please sign in to comment.