Add laconic-console stack instructions
This commit is contained in:
parent
50194b6bbe
commit
5b8c133c1c
@ -8,3 +8,9 @@ services:
|
|||||||
CERC_LOGLEVEL: ${CERC_LOGLEVEL:-info}
|
CERC_LOGLEVEL: ${CERC_LOGLEVEL:-info}
|
||||||
volumes:
|
volumes:
|
||||||
- ../config/laconic-console/create-config.sh:/app/create-config.sh
|
- ../config/laconic-console/create-config.sh:/app/create-config.sh
|
||||||
|
- laconic-registry-data:/laconic-registry-data
|
||||||
|
extra_hosts:
|
||||||
|
- "host.docker.internal:host-gateway"
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
laconic-registry-data:
|
||||||
|
@ -13,6 +13,7 @@ RUN echo "Installing dependencies and building laconic-registry-cli" && \
|
|||||||
yarn && yarn build
|
yarn && yarn build
|
||||||
|
|
||||||
# Globally install the cli binary
|
# Globally install the cli binary
|
||||||
|
RUN npm config set @cerc-io:registry https://git.vdb.to/api/packages/cerc-io/npm/
|
||||||
RUN yarn global add file:$PWD
|
RUN yarn global add file:$PWD
|
||||||
|
|
||||||
CMD ["bash", "-c", "tail -f /dev/null"]
|
CMD ["bash", "-c", "tail -f /dev/null"]
|
||||||
|
@ -6,4 +6,4 @@ source ${CERC_CONTAINER_BASE_DIR}/build-base.sh
|
|||||||
# See: https://stackoverflow.com/a/246128/1701505
|
# See: https://stackoverflow.com/a/246128/1701505
|
||||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||||
|
|
||||||
docker build -t cerc/laconic2-registry-cli:local ${build_command_args} -f ${SCRIPT_DIR}/Dockerfile ${SCRIPT_DIR}
|
docker build -t cerc/laconic2-registry-cli:local ${build_command_args} -f ${SCRIPT_DIR}/Dockerfile ${CERC_REPO_BASE_DIR}/laconic-registry-cli
|
||||||
|
@ -1 +1,54 @@
|
|||||||
# laconic-console
|
# laconic-console
|
||||||
|
|
||||||
|
Instructions for running laconic registry CLI and console
|
||||||
|
|
||||||
|
## Prerequisites
|
||||||
|
|
||||||
|
* laconicd RPC and GQL endpoints
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
|
||||||
|
* Clone the stack repo:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
laconic-so fetch-stack git.vdb.to/cerc-io/testnet-laconicd-stack
|
||||||
|
```
|
||||||
|
|
||||||
|
* Clone required repositories:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
laconic-so --stack ~/cerc/testnet-laconicd-stack/stack-orchestrator/stacks/laconic-console setup-repositories
|
||||||
|
```
|
||||||
|
|
||||||
|
* Build the container images:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
laconic-so --stack ~/cerc/testnet-laconicd-stack/stack-orchestrator/stacks/laconic-console build-containers
|
||||||
|
```
|
||||||
|
|
||||||
|
This should create the following docker images locally:
|
||||||
|
|
||||||
|
* `cerc/laconic2-registry-cli`
|
||||||
|
|
||||||
|
## Create a deployment
|
||||||
|
|
||||||
|
* Create a spec file for the deployment:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
laconic-so --stack ~/cerc/testnet-laconicd-stack/stack-orchestrator/stacks/laconic-console deploy init --output laconic-console-spec.yml
|
||||||
|
```
|
||||||
|
|
||||||
|
* Create a deployment from the spec file:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
laconic-so --stack ~/cerc/testnet-laconicd-stack/stack-orchestrator/stacks/laconic-console deploy create --spec-file laconic-console-spec.yml --deployment-dir laconic-console-deployment
|
||||||
|
```
|
||||||
|
|
||||||
|
## Configuration
|
||||||
|
|
||||||
|
* Inside the deployment directory, open `config.env` file and set following env variables:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# TODO
|
||||||
|
```
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ version: "1.0"
|
|||||||
name: laconic-console
|
name: laconic-console
|
||||||
description: "Laconic registry CLI and console"
|
description: "Laconic registry CLI and console"
|
||||||
repos:
|
repos:
|
||||||
- git.vdb.to/cerc-io/laconic-regsitry-cli@laconic2
|
- git.vdb.to/cerc-io/laconic-registry-cli@laconic2
|
||||||
containers:
|
containers:
|
||||||
- cerc/laconic2-registry-cli
|
- cerc/laconic2-registry-cli
|
||||||
pods:
|
pods:
|
||||||
|
Loading…
Reference in New Issue
Block a user