forked from mito-systems/sol-mem-gen
43 lines
683 B
Markdown
43 lines
683 B
Markdown
# Deploy
|
|
|
|
## Setup
|
|
|
|
* Build registry CLI image:
|
|
|
|
```bash
|
|
docker build -t cerc/laconic-registry-cli .
|
|
|
|
# Builds image cerc/laconic-registry-cli:latest
|
|
```
|
|
|
|
* Configure `userKey` and `bondId` in registry CLI [config](./config.yml)
|
|
|
|
* Add configuration for registry operations:
|
|
|
|
```bash
|
|
cp .registry.env.example .registry.env
|
|
|
|
# Fill in the required values
|
|
nano .registry.env
|
|
```
|
|
|
|
* Add configuration for the app:
|
|
|
|
```bash
|
|
cp ../env.example .app.env
|
|
|
|
# Fill in the required values
|
|
nano .app.env
|
|
```
|
|
|
|
## Run
|
|
|
|
* Deploy sol-mem-gen App:
|
|
|
|
```bash
|
|
docker run -it \
|
|
-v ./:/app/deploy -w /app/deploy \
|
|
cerc/laconic-registry-cli:latest \
|
|
./deploy.sh
|
|
```
|