-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a container and service for mobymask-snap
- Loading branch information
1 parent
d43d36c
commit fab4358
Showing
9 changed files
with
48 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,3 +53,4 @@ cerc/webapp-base | |
cerc/watcher-mobymask-v3 | ||
cerc/go-nitro | ||
cerc/nitro-contracts | ||
cerc/mobymask-snap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,3 +40,4 @@ mobymask-app-v3 | |
go-nitro | ||
nitro-contracts | ||
nitro-reverse-payment-proxy | ||
mobymask-snap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 | ||
|
@@ -38,3 +42,4 @@ pods: | |
- go-nitro | ||
- nitro-reverse-payment-proxy | ||
- watcher-mobymask-v3 | ||
- mobymask-snap |