From 232d5618cb29a8f581d5699d2a3267557561c90a Mon Sep 17 00:00:00 2001 From: prathamesh0 <42446521+prathamesh0@users.noreply.github.com> Date: Tue, 12 Dec 2023 13:54:00 +0530 Subject: [PATCH] Update instructions in osmosis stack (#684) --- .../data/stacks/osmosis/README.md | 20 ++++++++++++++----- .../data/stacks/osmosis/stack.yml | 2 +- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/stack_orchestrator/data/stacks/osmosis/README.md b/stack_orchestrator/data/stacks/osmosis/README.md index 4c13c93c..ef5504ae 100644 --- a/stack_orchestrator/data/stacks/osmosis/README.md +++ b/stack_orchestrator/data/stacks/osmosis/README.md @@ -18,9 +18,9 @@ laconic-so --stack osmosis setup-repositories Build the container images: -``` -# support image for the gitea package registry -laconic-so --stack build-support build-containers +```bash +# TODO: support image for the gitea package registry +# laconic-so --stack build-support build-containers laconic-so --stack osmosis build-containers ``` @@ -62,9 +62,11 @@ laconic-so --stack osmosis deploy create --spec-file osmosis-spec.yml --deployme Inside the deployment directory, open the file `config.env` and set the following env variables: + (Note: Following config can be used as is if the stack is being run locally) + ```bash # Osmosis API base URL - # Set this to proxy server endpoint for uniswap app + # Set this to proxy server endpoint for osmosis app # (Eg. http://localhost:4000 - in case stack is being run locally with proxy enabled) # (Eg. https://abc.xyz.com - in case https://abc.xyz.com is pointed to the proxy endpoint) CERC_WEB_API_BASE_URL=http://localhost:4000 @@ -85,10 +87,17 @@ Inside the deployment directory, open the file `config.env` and set the followin ## Start the stack Start the deployment: + ```bash laconic-so deployment --dir osmosis-deployment start ``` +* The `osmosis-front-end` container will take some time to run to completion as it builds the front-end app with given configuration; same can be tracked in the logs: + + ```bash + laconic-so deployment --dir osmosis-deployment logs -f osmosis-front-end + ``` + * List and check the health status of all the containers using `docker ps` and wait for them to be `healthy` * The web app can be accessed at http://localhost:3000 @@ -96,7 +105,8 @@ laconic-so deployment --dir osmosis-deployment start ## Laconic registry Setup a test chain: -``` + +```bash export CERC_NPM_REGISTRY_URL=https://git.vdb.to/api/packages/cerc-io/npm/ laconic-so --stack fixturenet-laconic-loaded setup-repositories --include git.vdb.to/cerc-io/laconicd,git.vdb.to/cerc-io/laconic-sdk,git.vdb.to/cerc-io/laconic-registry-cli,git.vdb.to/cerc-io/laconic-console diff --git a/stack_orchestrator/data/stacks/osmosis/stack.yml b/stack_orchestrator/data/stacks/osmosis/stack.yml index a0669b71..b0e51a1d 100644 --- a/stack_orchestrator/data/stacks/osmosis/stack.yml +++ b/stack_orchestrator/data/stacks/osmosis/stack.yml @@ -6,7 +6,7 @@ repos: # - gitea.com/gitea/act_runner # For osmosis frontend - github.com/cerc-io/watcher-ts@v0.2.78 - - github.com/cerc-io/osmosis-frontend@laconic + - github.com/cerc-io/osmosis-frontend@laconic # TODO: Use release containers: # - cerc/act-runner # - cerc/act-runner-task-executor