1
0
Commit Graph

200 Commits

Author SHA1 Message Date
prathamesh0
363a0b733f Fetch geth accounts using an exposed endpoint (#357)
* Fetch account creds served by geth service

* Use fetched account creds in mobymask-v2 stack

Former-commit-id: eb777b0b477c32791cfb7691814475176f923e26
2023-04-20 15:12:59 +05:30
3d75523d73 Upgrade web-app package versions to set custom relay node (#358)
Former-commit-id: 01499a3f053e36ec9546f998e83656d94e682021
2023-04-20 14:45:01 +05:30
35dd30f877 Add container to mobymask-v2 stack for LXDAO mobymask-app (#347)
* Add container to stack for lxdao mobymask-app

* Remove shm_size

* Use cerc-io scoped alias for lxdao app package

* Change alias to @cerc-io/mobymask-ui-lxdao

Former-commit-id: 46b36c3cb6e9b4cbbaf908052d49e498f6397f33
2023-04-20 10:49:19 +05:30
Zach
df13b8f630 Merge pull request #320 from cerc-io/add-kubo-stack
Add kubo (IPFS) as a stack

Former-commit-id: 45cab0f33d86835664ad5494b120b3b61cf3e785
2023-04-19 21:48:55 -04:00
6ce01a79ed Update base containers (#355)
* Update to Node18

* Update to latest stable lighthouse

Former-commit-id: a335ccde3ae921c2f445086fc9ce78511faf4a24
2023-04-19 16:43:59 -06:00
2d5abdce45 Set context dir to the script dir to avoid permission errors (#354)
Former-commit-id: bde48b699d57ba1e7648fee7fe0935eb8ba21347
2023-04-19 16:00:41 -06:00
53fbc60f55 Use standalone mobymask-v2-watcher-ts for running watcher server (#327)
* Use standalone mobymask-v2-watcher-ts to run peer test

* Add watcher-ts image for running peer tests

* Run separate containers for peer ids generation and tests

* Wait for watcher to be up before starting peer-test-app

* Resolve peer-test-app compose file and remove setup-repositories for web-apps

Former-commit-id: c4002dcc5c5001d3b45cda334bcc64929a1c7dbc
2023-04-19 13:48:51 +05:30
prathamesh0
4caae1d850 Gracefully shutdown optimism batcher and op-geth containers (#345)
* Gracefully shutdown optimism batcher and op-geth containers

* Remove unnecessary env export

Former-commit-id: c6e6122516f07240d64d5775e235735fa7237bdc
2023-04-19 12:48:38 +05:30
prathamesh0
3f79c2b811 [WIP] Handle restarts in fixturenet-eth stack (#324)
* Use mounted volumes for data in geth nodes

* Use mounted volumes for data in lighthouse nodes

* Avoid resetting genesis time in a lighthouse node on restart

* Mount parent datadir for lighthouse nodes

* Trap signals on shutdown and clean up in lighthouse nodes

* Allow stalled sync in lighthouse beacon nodes

* Gracefully shutdown geth nodes

* Add clean up instructions

* Gracefully shutdown lighthouse boot node

Former-commit-id: 3130af161539c701e46b4ef8a8af5b503ce0433b
2023-04-19 12:22:13 +05:30
b0aeff50bb Package mobymask-v2 stack web-apps similar to laconic-console app (#310)
* Build MobyMask web-app at container build step

* Fix web-app start script to use env variables in config

* Replace variables in built web-app files

* Use published mobymask-ui package from gitea

* Use published react-peer/test-app from gitea

* Remove local gitea publish TODO

Former-commit-id: cf79f0de0adccbd8812ed23a3d0a013cd5af7ff8
2023-04-18 18:25:58 +05:30
cb72e5c03f Simple implementation of LACONIC_HOSTED_ENDPOINT (#342)
Former-commit-id: 172300d7bd64ea14e912af88a2c2e6e3113c5ea0
2023-04-17 20:46:05 -06:00
c715e11a88 Use CERC_NPM_REGISTRY_URL everywhere (#340)
Former-commit-id: 39a54bc62a90c9fdf5e7b53e9c9cfaba656d5d8a
2023-04-17 13:40:49 -06:00
Zach
ecb3b36387 Update README.md
Former-commit-id: dd59579b876f88e6b748c4308a782e5b1f86ee7a
2023-04-17 11:25:21 -04:00
5a50e46718 Support for complete laconic stack with console and test registration record (#335)
* Configure cli with necessary gas and fees args and address

* Update version

Former-commit-id: 0068a994f63c7a420ab223dd67b969ebaa604200
2023-04-16 20:14:15 -06:00
99af105b9c quiet npm version warning (#331)
Former-commit-id: 2eb93d09331b256c3a13f0b7f7fc9a9387dcddcf
2023-04-14 21:09:22 -06:00
332085f80b Add force rebuild option (#329)
Former-commit-id: 1443c6c6d20f3e9f95432e87ea61109c6b0f1beb
2023-04-14 14:19:27 -06:00
zramsay
f0ce0fef1c typos
Former-commit-id: 16c9607a6c7f43bf3fc63cc0124fe46285457c80
2023-04-13 12:31:53 -04:00
zramsay
a1a4837c89 lil fixes
Former-commit-id: bafdfe6d2a6550595c96fa66533f59edb8314130
2023-04-13 07:05:03 -04:00
zramsay
18f3c2cc4f update kubo stack README to enable CORS for running in the cloud
Former-commit-id: cfa32a3515ee2d2a274753c695f4251961f545ee
2023-04-13 06:55:47 -04:00
zramsay
391759e929 expose ports
Former-commit-id: e72ea19c5cb93dfad26463e02ff8dbe7d2e2a74c
2023-04-13 05:27:04 -04:00
prathamesh0
3e80f5f238 Wait for transfer tx receipts when configuring Optimism (#323)
Former-commit-id: c99fc0941a522215b2b90ea744d20e1bbb261349
2023-04-13 12:43:41 +05:30
13499c6e4b Add MuKnSys npm scope (#322)
Former-commit-id: 6b27731a814b1487535dff8cd5236af559757202
2023-04-12 19:46:50 -06:00
zramsay
0f7c23951d run kubo as a stack
Former-commit-id: eae124fdf161db9cfb675cd3cc2aaccbdfd6b002
2023-04-12 17:36:47 -04:00
prathamesh0
8b11070870 Configuration fixes for mobymask-v2 stack for multiple deployments (#318)
* Fix contract deployment script in fixturenet-optimism stack

* Configure relay node's announce domain from env

* Configure relay peers list for the relay node from env

* Create and use peer ids from a mounted volume

* Fix command to create watcher config

* Fix mobymask-app deployment script

Former-commit-id: 882f0b16aacd847570de9e6a506cdf74ef6e6f14
2023-04-12 18:17:13 +05:30
80c16d2ced Update for latest act_runner. (#316)
Former-commit-id: c7c3cbde8ee4b0cea5833fde7e3db12eb22c34fe
2023-04-11 15:05:08 -05:00
6e33bd47e2 Fix syntax errors (#314)
Former-commit-id: 7c6c46febb97f7ed93efa00f170cc143cf3e70d7
2023-04-11 07:20:38 -06:00
prathamesh0
c2a3ffe0dd Add an option to pass env file to deploy command (#304)
* Add an option to pass env file to deploy command

* Use env variable mapping in fixturenet-optimism stack

* Use default values from checked in env files

* Use env variable mapping in mobymask-v2 stack

* Update instructions

* Add extra hosts in app compose files and update instructions

* Add CERC prefix to env variables in fixturenet-optimism stack

* Add CERC prefix to env variables in mobymask-v2 stack

Former-commit-id: 6b62247ef7a32e20e55c529afa0b80fadb6873a1
2023-04-11 16:21:03 +05:30
59afaf66ae Make version manually updated
Former-commit-id: f92a2fb3fcd37041fd49180940016fb9dd445171
2023-04-10 06:17:12 -06:00
18279fcef3 Add env variable to enable/disable sending txs to L2 from watcher peer (#293)
* Add flag to enable/disable watcher peer L2 txs

* Update watcher-ts version in readme

Former-commit-id: d3715d19520be01a3a5e98ce6ce9874f72cc568a
2023-04-10 10:42:56 +05:30
Zach
53516f3109 Merge pull request #278 from cerc-io/update-docs
update registry install instructions

Former-commit-id: 055fa14cfbd46f3c089e0a1795ecc2b1a17f6ba0
2023-04-06 19:32:29 -04:00
zramsay
5a27a94a7d more little updates
Former-commit-id: 579fa6ff6632c6b73831e479e5642ddaa4610637
2023-04-06 19:31:57 -04:00
86f13e9c6b Separate out watcher and web-apps in mobymask-v2 stack (#287)
* Separate out watcher and web-apps in mobymask stack

* Take L2 RPC endpoint from the env file

* Changes to run watcher and mobymask web-app separately

* Support running watcher without contract deployment and L2 txs

* Remove duplicate mobymask params env

* Add code comments

* Add instructions for running web-apps separately

* Self review fixes

* Fix timeout for mobymask-app on watcher server

---------

Co-authored-by: prathamesh0 <prathamesh.musale0@gmail.com>
Former-commit-id: 6f781ae303915d7612fbc670b4f5f9b521b48121
2023-04-06 15:17:00 +05:30
prathamesh0
72737bfa29 Handle restarts in mobymask-v2 stack (#286)
* Verify existing contract deployment

* Update mobymask-v2 demo instructions

Former-commit-id: 59fe9aae59e2622761fe28beba9e5cc9e6d2614f
2023-04-05 17:52:12 +05:30
63fbaa7ae3 Add ability to run mobymask-v2 stack with external optimism endpoint (#279)
* Set optimism geth endpoint from env file

* Set L1 account private keys from env

* Only deploy contract and generate invite in mobymask container

* Add readme for running mobymask v2 stack independently

* Modify mobymask container to stop running server and update readmes

* Check deployer account balance before deploying contract

* Fix for checking account balance before deploying

* Update readme description

* Update MobyMask repo tag in readme

Former-commit-id: 94e38ceabaa89a3ec54e25f4a03cf253d5fae5f9
2023-04-05 17:26:38 +05:30
prathamesh0
464ef89a01 Handle restarts for services in fixturenet-optimism stack (#282)
* Check existing L1 contracts deployment

* Rename volume used for generated L2 config

* Check for existing L2 geth data directory

* Cross check existing L2 config against L1 deployment config

* Verify sequencer key in existing L2 geth data directory

* Add instructions to troubleshoot corrupt L2 geth dir

* Separate out instructions to run L2 with external L1

* Update docs

Former-commit-id: 9ffa9bb5a97b454da76c8cdeb1722109ce430b53
2023-04-05 10:25:50 +05:30
b4d9a3a831 Fail on error installing package
Former-commit-id: 11375fed0c9309f98693320db98c2dad3157fbd6
2023-04-04 20:26:19 -06:00
4da19b652e Update version
Former-commit-id: 9e4240df0763dc963ae85196c62e0362bcedb897
2023-04-04 11:29:16 -06:00
prathamesh0
be08ee81ea Add ability to run Optimism fixturenet with external L1 endpoint (#273)
* Remove unnecessary todos

* Set option to log commands in shell scripts

* Replace fixturenet-eth dependency with wait on endpoint

* Skip lighthouse node dependency check

* Update all services in the stack

* Use debug flag to enable shell commands logging

* Add bash in op-batcher container

* Update mobymask-v2 instructions

* Update fixturenet-optimism instructions

* Add descriptions for services

* Move ts files to container-build

* Take L1 RPC endpoint from the env file

* Add dev mode restriction for editing env file

Former-commit-id: 2515878eeb3456147d4e50e1b39c98f618d1a3d3
2023-04-04 14:53:28 +05:30
zramsay
22bb1a0bfa key missing line
Former-commit-id: 358c7ea168038784d0b08618ace23240ce0d68df
2023-04-03 16:41:07 -04:00
287468b7c0 Update run script to support COPY and WebSockets. (#275)
Former-commit-id: 4da69ebf4c8c3b838e776d086b9d57444b4d6d48
2023-04-03 14:59:31 -05:00
f23c22d5b9 Replace laconicd with optimism in mobymask-v2 stack (#272)
* Remove laconicd to use optimism endpoint

* Use fixturenet-optimism stack for mobymask-v2-watcher

* Fix setting L1 account private key in mobymask-v2 stack

Former-commit-id: b266ac78b4253ff655875922670797a6e56d578f
2023-04-03 18:13:29 +05:30
prathamesh0
1881554ae0 Add Optimism Fixturenet stack (#266)
* Initial version

* Update readme

* Build op-geth container

* Add optimism go code containers

* Add optimism contracts container

* Update optimism contracts container build

* Add fixturenet-optimism-contracts service to deploy L1 contracts

* Add fixturenet-optimism op-node and op-geth

* Avoid reading addresses from a file when sending balances

* Fixes for running op-geth container

* Fix image name and command in optimism-contracts service

* Add a healthcheck to lighthouse bootnode to avoid failing eth txs

* Avoid using hardhat ethers to send balances from an account

* Update script to send balance to L1 bridge proxy contract

* Implement op-node container

* Wait for a finalized L1 block to exist

* Fix for running op-batcher

* Add a todo for restart support

* Integrate optimism-contracts service and update instructions

* Update clean-up to remove docker volumes

* Update volume access permissions

* Add a todo to replace foundry usage with web3 js

* Add known issues

* Fix README

* Fix indentation

* Update known issues

---------

Co-authored-by: David Boreham <david@bozemanpas.com>
Co-authored-by: David Boreham <david@bozemanpass.com>
Co-authored-by: nabarun <nabarun@deepstacksoft.com>
Former-commit-id: fc522140baf918dfed531e8379649887c47c8109
2023-04-03 12:33:47 +05:30
009ce95914 Add missing repo and container
Former-commit-id: 045117c6fb769e381c46eaeccc703a5474151a2e
2023-04-02 08:25:26 -06:00
bddf72ee46 Temporary punch the port through to the host to make things work
Former-commit-id: f6cb041634df98b29e793bbbb2938d7515bcfef3
2023-04-01 10:06:39 -06:00
2b94ed12c2 Run template substitution on start
Former-commit-id: e072a6bc4bd5072905b32f9739cfeadca04288fb
2023-03-31 16:33:48 -06:00
31f9f0e864 Implement deploy time config
Former-commit-id: 409f61d68d756c605501f76fbfc41730cc239a1e
2023-03-31 16:29:59 -06:00
1342be5723 Add a temporary version of config to the hosting container
Former-commit-id: 3372cac35e282e7b6d7d6963fe4d5f94d30c31d2
2023-03-31 08:00:24 -06:00
d25de90df2 Add console host container to stack
Former-commit-id: c45dd545dd6fe45593a9c603a7dd85f02a5c8206
2023-03-31 07:59:43 -06:00
1fdfb9f568 Add console container pod
Former-commit-id: 3fb968c9cfe905c3a98f97d888ece0c707a3f1f9
2023-03-30 00:27:19 -06:00
9b22685484 Add web server to host container
Former-commit-id: d01fb777d4ca03f24ba607dac6156f08d69f53e5
2023-03-30 00:15:36 -06:00