forked from mito-systems/sol-mem-gen
Create missing dir
This commit is contained in:
parent
9d1a459c3a
commit
2ce30e32ad
@ -2,6 +2,13 @@
|
||||
|
||||
## Setup
|
||||
|
||||
* Clone the repo:
|
||||
|
||||
```bash
|
||||
git clone git@git.vdb.to:deep-stack/sol-mem-gen.git
|
||||
cd sol-mem-gen/deploy
|
||||
```
|
||||
|
||||
### sol-mem-gen
|
||||
|
||||
* Build registry CLI image:
|
||||
@ -12,7 +19,11 @@
|
||||
# Builds image cerc/laconic-registry-cli:latest
|
||||
```
|
||||
|
||||
* Configure `userKey` and `bondId` in registry CLI [sol-mem-gen/config](./sol-mem-gen/config.yml)
|
||||
* Configure `userKey` and `bondId` in the registry CLI config:
|
||||
|
||||
```bash
|
||||
nano sol-mem-gen/config.yml
|
||||
```
|
||||
|
||||
* Add configuration for registry operations:
|
||||
|
||||
@ -38,6 +49,7 @@
|
||||
|
||||
```bash
|
||||
mkdir sol-token-locker
|
||||
cd sol-token-locker
|
||||
```
|
||||
|
||||
* Follow [instructions](https://git.vdb.to/deep-stack/sol-token-locker/src/branch/main/stack-orchestrator/stacks/sol-token-locker/README.md) to setup the `sol-token-locker` stack in `./sol-token-locker`
|
||||
@ -49,6 +61,7 @@
|
||||
* Update configuration for the app as required:
|
||||
|
||||
```bash
|
||||
# In deploy dir
|
||||
nano sol-mem-gen/.app.env
|
||||
```
|
||||
|
||||
|
@ -4,10 +4,6 @@ FROM node:${VARIANT}
|
||||
ARG USERNAME=node
|
||||
ARG NPM_GLOBAL=/usr/local/share/npm-global
|
||||
|
||||
# This container pulls npm packages from a local registry configured via these env vars
|
||||
ARG CERC_NPM_URL
|
||||
ARG CERC_NPM_AUTH_TOKEN
|
||||
|
||||
# Add NPM global to PATH.
|
||||
ENV PATH=${NPM_GLOBAL}/bin:${PATH}
|
||||
|
||||
|
@ -14,12 +14,13 @@ REPO_URL="https://git.vdb.to/deep-stack/sol-mem-gen"
|
||||
# Get the latest commit hash from the repository
|
||||
LATEST_HASH=$(git ls-remote $REPO_URL HEAD | awk '{print $1}')
|
||||
|
||||
echo "Repo: ${REPO_URL}"
|
||||
echo "Latest hash: ${LATEST_HASH}"
|
||||
|
||||
PACKAGE_VERSION=$(curl -s $REPO_URL/raw/branch/main/package.json | jq -r .version)
|
||||
APP_NAME=sol-mem-gen
|
||||
|
||||
echo "Repo: ${REPO_URL}"
|
||||
echo "Latest hash: ${LATEST_HASH}"
|
||||
echo "App version: ${PACKAGE_VERSION}"
|
||||
|
||||
# Current date and time for note
|
||||
CURRENT_DATE_TIME=$(date -u)
|
||||
|
||||
@ -32,10 +33,11 @@ NEW_APPLICATION_VERSION=$(laconic -c $CONFIG_FILE registry record list --type Ap
|
||||
|
||||
if [ -z "$NEW_APPLICATION_VERSION" ] || [ "1" == "$NEW_APPLICATION_VERSION" ]; then
|
||||
# Set application-record version if no previous records were found
|
||||
NEW_APPLICATION_VERSION=0.0.2
|
||||
NEW_APPLICATION_VERSION=0.0.1
|
||||
fi
|
||||
|
||||
# Generate application-record.yml with incremented version
|
||||
mkdir records
|
||||
RECORD_FILE=./records/application-record.yml
|
||||
|
||||
cat >$RECORD_FILE <<EOF
|
||||
|
Loading…
Reference in New Issue
Block a user