sol-mem-gen/deploy
2025-02-06 11:36:13 +05:30
..
sol-mem-gen Add instructions to deploy sol-token-locker stack 2025-02-06 11:36:13 +05:30
README.md Add instructions to deploy sol-token-locker stack 2025-02-06 11:36:13 +05:30

Deploy

Setup

  • Build registry CLI image:

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

  • Add configuration for registry operations:

    cp sol-mem-gen/.registry.env.example sol-mem-gen/.registry.env
    
    # Fill in the required values
    nano sol-mem-gen/.registry.env
    
  • Add configuration for the app:

    curl -s https://git.vdb.to/deep-stack/sol-mem-gen/raw/branch/main/.env.example -o sol-mem-gen/.app.env
    
    # Fill in the required values
    nano sol-mem-gen/.app.env
    
  • Create a dir for sol-token-locker deployment:

    mkdir sol-token-locker
    
  • Follow instructions to setup the sol-token-locker stack in ./sol-token-locker

Run

sol-mem-gen

sol-token-locker

  • Update configuration for token locker as required:

    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