Skip to content

Commit

Permalink
Update instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
prathamesh0 committed Dec 7, 2023
1 parent c27f584 commit c85f550
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 15 deletions.
2 changes: 1 addition & 1 deletion stack_orchestrator/data/config/osmosis/build-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
18 changes: 12 additions & 6 deletions stack_orchestrator/data/stacks/osmosis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions stack_orchestrator/data/stacks/osmosis/stack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- 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:
Expand Down
13 changes: 10 additions & 3 deletions stack_orchestrator/data/stacks/uniswap-urbit-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
```

0 comments on commit c85f550

Please sign in to comment.