Ola Developer Documents
  • Introduction
    • What is Ola
    • Advanced Features
    • Roadmap & Release Notes
  • Quick Start
    • Setup Environment
    • Setting up an Account
    • Deploying a Smart Contract
    • Interacting with a Smart Contract
    • Running smart contract locally
  • Ola Language
  • OlaVM
    • Concepts
      • Accounts
      • Contracts
      • Notes
      • Transaction
      • Transition
      • Blocks
    • OlaVM Architecture
      • VM
      • Circuits
    • GPU acceleration
  • OlaOS
    • Installation Guide
    • Run an OlaOS Node
    • Command Line Interface
    • OlaOS Architecture
    • System Contracts
  • API/SDK
    • APIs
    • Javascript SDK
  • Developer Tools and Resources
Powered by GitBook
On this page
  • Run database in docker
  • Run OlaOS in docker
  1. OlaOS

Run an OlaOS Node

Run database in docker

OlaOS relies on the local Postgres database as the underlying persistence layer. The database needs to be started before running the node. It is recommended to use a docker container to run the database.

$ cd dal && ./scripts/init_db.sh

The init_db script will check whether sql and sqlx have been installed, then configure the database name, port and other information, and start the database in a docker container. When the database is started successfully, the script will use sqlx to automatically migrate all database operations.

Run OlaOS in docker

Compile docker image for OlaOS:

docker build --tag ola_node --file Dockerfile .

Run the generated docker image:

docker run -p 13002:13002 -p 13000:13000 ola_node
PreviousInstallation GuideNextCommand Line Interface

Last updated 1 year ago