Welcome to CosVM
  • 🕧What is CosVM?
  • 🚧Technical structure
  • ⛓️User Guide
    • CVM Wallet Configuration
    • CVM Wallet App
    • MetaMask Configuration
    • Keplr Wallet Configuration
    • Trust Wallet
  • 🔯Developer Docs
    • 🉑Concepts
      • Accounts
      • Chain ID
      • Overview of Gas and Fees on CosVM Blockchain
      • Tokenomics of CosVM Blockchain
      • Token
      • Transactions
      • Tokens Transfer
      • Gas and Fees
    • Getting Started
    • Smart Contracts
      • Evm Extension
        • Authorization
        • Types
        • Staking
        • Distribution
        • IBC Transfer
    • 🔍CosVM Block Explorer
    • Mainnet
    • Wallet Integration
    • Other Tools
      • Contract Verification
      • Smart Contract Development Tools:
    • API
      • Network
      • Ethereum JSON-RPC
        • API Method
      • Cosmos gRPC & REST
      • Tendermint RPC
    • Cosvm using Docker
    • DAPPS
      • Getting Started
      • 🫂CVM dApps
  • 🈳Validator Docs
    • Validator Overview
    • Installation Reqirement
    • Run a Validator
    • Launch a CVM Node
    • Launch Multi CVM Node
    • Disk Optimization
    • State Sync
    • Mempool
    • ❄️IBC
      • IBC
      • IBC Relaying Guide
  • ❓Why Use CosVM
  • 🔐Safety & Security
  • ⁉️FAQs
Powered by GitBook
On this page
  • Step by step tutorial:
  • Clone the CosVM repository:
  • Checkout the specific version/tag:
  • Building a Docker Image Containing the CosVM Binary:
  • Step into the cloned repository:
  • Building the CosVM Binary with Docker:
  1. Developer Docs

Cosvm using Docker

PreviousTendermint RPCNextDAPPS

Last updated 1 year ago

There are multiple ways to use with Docker. If you want to run inside a Docker setup and possibly connect the Docker container to other containerized compatible blockchain binaries, check out the guide on building a Docker image containing the binary. If you instead want to generate a binary for use outside of Docker, but want to ensure the correct dependencies are used by building the binary inside a Docker container, then go ahead to the section on building the binary with Docker

Step by step tutorial:

Install Docker Ensure Docker is installed on your machine.

Clone the repository:

Clone the repository to your local machine.

Example:

git clone git@github.com/CosVM/CosVM.git

Checkout the specific version/tag:

Navigate to the cloned repository and switch to the desired commit, branch, or release tag

cd CosVM
git checkout v11.0.2

Building a Docker Image Containing the CosVM Binary:

To build a Docker image containing the CosVM binary:

Step into the cloned repository:

make build-docker

This will create an image with the name tharsishq/cvm and the version tag latest. Now it is possible to run the cvmd binary in the container, e.g. evaluating its version:

docker run -it --rm tharsishq/cosvm:latest cosVM version

Building the CosVM Binary with Docker:

Building the Image:

Run the following command to launch a build for all supported architectures (currently linux/amd64):

make distclean build-reproducible

The build system generates both the binaries and a deterministic build report in the artifacts directory. The artifacts/build_report file contains the list of build artifacts and their respective checksums, useful for verifying build integrity.

App: cvmd
Version: 11.0.2
Commit: 8eeeac7ae42a5b2695fea7f56868f3c6e9bc2378
Files:
 6b5939adfd9a8ce964d78fcaab16091a  cvmd-11.0.2-linux-amd64
 ac503925c535ddb8ee0fbebbb96d0eb9  cvmd-11.0.2.tar.gz
Checksums-Sha256:
 0857d59c285a87b7d354aa6d566db90c56663d938a88d41d35415da490708aea  cvmd-11.0.2-linux-amd64
 5005814fc34abc02d7e30dcfbe67e363c1b593efb774e0c97ebb7ec713baf306  cvmd-11.0.2.tar.gz

Always comply with licensing, permissions, and repository access when using and distributing cosVM or its related components.

Open a terminal session and navigate to the directory.

Run the following command: Execute the command below to create an image with the binary.

It is possible to build the binary deterministically using Docker:

The Tendermint builder Docker image provides a deterministic build environment used for applications. It ensures that the executables are built from the git source and employs tested dependencies, statically built into the executable.

Now that you've built the binary, whether for local use or in a Docker container, you'll find information on running a node instance in the subsequent section on setting up a local network.

Remember to adjust commands and paths according to your actual repository and Docker configuration.

🔯
CosVM
CosVM
CosVM
CosVM
CosVM
CosVM
CosVM
CosVM
CosVM
CosVM
CosVM
CosVM