From 864f571e7420bc82c2b59ac3c482497438badd1e Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Thu, 6 Feb 2025 12:40:13 +0530 Subject: [PATCH] Create missing dir --- deploy/README.md | 15 ++++++++++++++- deploy/sol-mem-gen/Dockerfile | 4 ---- deploy/sol-mem-gen/deploy.sh | 10 ++++++---- 3 files changed, 20 insertions(+), 9 deletions(-) diff --git a/deploy/README.md b/deploy/README.md index 15dc85a..17cabde 100644 --- a/deploy/README.md +++ b/deploy/README.md @@ -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 ``` diff --git a/deploy/sol-mem-gen/Dockerfile b/deploy/sol-mem-gen/Dockerfile index fc0fe81..a120b22 100644 --- a/deploy/sol-mem-gen/Dockerfile +++ b/deploy/sol-mem-gen/Dockerfile @@ -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} diff --git a/deploy/sol-mem-gen/deploy.sh b/deploy/sol-mem-gen/deploy.sh index 4dd09bd..ec9d49f 100755 --- a/deploy/sol-mem-gen/deploy.sh +++ b/deploy/sol-mem-gen/deploy.sh @@ -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 <