From 6b575f757636f02f8e70e610bc2f359f9561b708 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Thu, 7 Dec 2023 11:09:59 +0530 Subject: [PATCH] Update instructions --- .../data/config/osmosis/build-app.sh | 2 +- .../data/stacks/osmosis/README.md | 18 ++++++++++++------ .../data/stacks/osmosis/stack.yml | 10 +++++----- .../data/stacks/uniswap-urbit-app/README.md | 13 ++++++++++--- 4 files changed, 28 insertions(+), 15 deletions(-) diff --git a/stack_orchestrator/data/config/osmosis/build-app.sh b/stack_orchestrator/data/config/osmosis/build-app.sh index 09813063..2f3cfd01 100755 --- a/stack_orchestrator/data/config/osmosis/build-app.sh +++ b/stack_orchestrator/data/config/osmosis/build-app.sh @@ -14,5 +14,5 @@ fi yarn build:static # Move build to app-builds -mkdir /app-builds/osmosis +mkdir -p /app-builds/osmosis cp -r ./out /app-builds/osmosis/build diff --git a/stack_orchestrator/data/stacks/osmosis/README.md b/stack_orchestrator/data/stacks/osmosis/README.md index de3f0384..6e5dd7af 100644 --- a/stack_orchestrator/data/stacks/osmosis/README.md +++ b/stack_orchestrator/data/stacks/osmosis/README.md @@ -65,16 +65,15 @@ Inside the deployment directory, open the file `config.env` and set the followin ```bash # Osmosis API base URL # Set this to proxy server endpoint for uniswap app - # (Eg. http://localhost:4000) - # (Eg. https://abc.xyz.com) - CERC_WEB_API_BASE_URL= + # (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 # Optional - # TODO: Change to CERC_ENABLE_PROXY after rebase # Whether to run the proxy server # (Disable only if proxy not required to be run) (Default: true) - ENABLE_PROXY= + CERC_ENABLE_PROXY= # Proxy server configuration # Used only if proxy is enabled @@ -113,16 +112,23 @@ then `docker exec` into the `laconicd` container and either export the private k ## Clean up -To stop all osmosis services running in the background, while preserving chain data: +To stop all osmosis services running in the background, while preserving data: ```bash +# Only stop the docker containers laconic-so deployment --dir osmosis-deployment stop + +# Run 'start' to restart the deployment ``` To stop all osmosis services and also delete data: ```bash +# Stop the docker containers laconic-so deployment --dir osmosis-deployment stop --delete-volumes + +# Remove deployment directory (deployment will have to be recreated for a re-run) +rm -r osmosis-deployment ``` To stop stack running Laconic registry diff --git a/stack_orchestrator/data/stacks/osmosis/stack.yml b/stack_orchestrator/data/stacks/osmosis/stack.yml index 2362c3cd..a0669b71 100644 --- a/stack_orchestrator/data/stacks/osmosis/stack.yml +++ b/stack_orchestrator/data/stacks/osmosis/stack.yml @@ -2,14 +2,14 @@ version: "0.1" name: osmosis repos: # For gitea - - git.vdb.to/cerc-io/hosting@names-for-so - - gitea.com/gitea/act_runner + # - git.vdb.to/cerc-io/hosting@names-for-so + # - gitea.com/gitea/act_runner # For osmosis frontend - github.com/cerc-io/watcher-ts@v0.2.78 - - github.com/cerc-io/osmosis-frontend@ng-export-static # TODO: Update branch after merge + - github.com/cerc-io/osmosis-frontend@laconic containers: - - cerc/act-runner - - cerc/act-runner-task-executor + # - cerc/act-runner + # - cerc/act-runner-task-executor - cerc/watcher-ts - cerc/osmosis-front-end pods: diff --git a/stack_orchestrator/data/stacks/uniswap-urbit-app/README.md b/stack_orchestrator/data/stacks/uniswap-urbit-app/README.md index 6818dd94..7f49c16f 100644 --- a/stack_orchestrator/data/stacks/uniswap-urbit-app/README.md +++ b/stack_orchestrator/data/stacks/uniswap-urbit-app/README.md @@ -78,9 +78,9 @@ Inside the deployment directory, open the file `config.env` and set the followin # Uniswap API GQL Endpoint # Set this to GQL proxy server endpoint for uniswap app - # (Eg. http://localhost:4000/v1/graphql) - # (Eg. https://abc.xyz.com/v1/graphql) - CERC_UNISWAP_GQL= + # (Eg. http://localhost:4000/v1/graphql - in case stack is being run locally with proxy enabled) + # (Eg. https://abc.xyz.com/v1/graphql - in case https://abc.xyz.com is pointed to the proxy endpoint) + CERC_UNISWAP_GQL=http://localhost:4000/v1/graphql # Optional @@ -150,11 +150,18 @@ laconic-so deployment --dir uniswap-urbit-app-deployment start To stop all uniswap-urbit-app services running in the background, while preserving data: ```bash +# Only stop the docker containers laconic-so deployment --dir uniswap-urbit-app-deployment stop + +# Run 'start' to restart the deployment ``` To stop all uniswap-urbit-app services and also delete data: ```bash +# Stop the docker containers laconic-so deployment --dir uniswap-urbit-app-deployment stop --delete-volumes + +# Remove deployment directory (deployment will have to be recreated for a re-run) +rm -r uniswap-urbit-app-deployment ```