sol-mem-gen/deploy
Prathamesh Musale d3e6f7ad12 Update deploy script to handle records dir (#15)
Part of https://www.notion.so/Option-to-post-paid-for-memes-to-twitter-x-18ca6b22d4728051804ef4f55065d5ba

Reviewed-on: #15
Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
2025-02-06 15:55:10 +00:00
..
.registry.env.example Add script and instructions for deployment (#11) 2025-02-06 12:24:57 +00:00
config.yml Add script and instructions for deployment (#11) 2025-02-06 12:24:57 +00:00
deploy.sh Update deploy script to handle records dir (#15) 2025-02-06 15:55:10 +00:00
Dockerfile Add script and instructions for deployment (#11) 2025-02-06 12:24:57 +00:00
README.md Update deploy script to handle records dir (#15) 2025-02-06 15:55:10 +00:00

Deploy

Setup

sol-mem-gen

  • Clone the repo:

    git clone git@git.vdb.to:deep-stack/sol-mem-gen.git
    cd sol-mem-gen/deploy
    
  • Build registry CLI image:

    docker build -t cerc/laconic-registry-cli .
    
    # Builds image cerc/laconic-registry-cli:latest
    
  • Configure userKey and bondId in the registry CLI config:

    nano config.yml
    
  • Add configuration for registry operations:

    cp .registry.env.example .registry.env
    
    # Fill in the required values
    nano .registry.env
    
  • Add configuration for the app:

    curl -s https://git.vdb.to/deep-stack/sol-mem-gen/raw/branch/main/.env.example -o .app.env
    
    # Fill in the required values
    nano .app.env
    

sol-token-locker

  • Create a dir for sol-token-locker deployment:

    # In deployments dir
    mkdir sol-token-locker
    cd sol-token-locker
    
  • Follow instructions to setup the sol-token-locker stack in sol-token-locker directory

Run

sol-mem-gen

sol-token-locker

  • Update configuration for token locker as required:

    # In deployments dir
    cd sol-token-locker
    nano sol-token-locker-deployment/config.env
    
  • Start the deployment:

    laconic-so deployment --dir sol-token-locker-deployment start
    
  • Follow logs:

    laconic-so deployment --dir sol-token-locker-deployment logs sol-token-locker -f
    
  • For updating the deployment:

    # Stop the deployment
    laconic-so deployment --dir sol-token-locker-deployment stop
    
    # Update the config as required
    nano sol-token-locker-deployment/config.env
    
    # Re-start deployment
    laconic-so deployment --dir sol-token-locker-deployment start