Overview

The TRH SDK Docker image is a containerized application that allows you to interact with the TRH SDK.

The primary objective of this approach is to mitigate the local machine architecture compatibility issues we observed during the one-week SDK testing phase.

The SDK and some of dependencies are already installed in the Docker image so that the user can start using the SDK after the container is started.

⚠️ Please note that this approach is only for the testnet deployment.

Prerequisites

Getting Started

  1. Check your machine architecture

    uname -m
    
  2. Pull the docker image

    After pulling the image, you can verify the image by running the following command:

    docker images
    

    image.png

  3. Run the docker container

    After running the docker container, you can verify if the container is running properly by running the following command.

    docker ps
    

    image.png

  4. Go into the container

    docker exec -it trh-sdk-container /bin/bash
    

    Now you can start using the SDK 🚀

  5. Verify the version of the SDK

    trh-sdk version
    
  6. You can now start the deployment following the sdk user guide from this step.

⚠️ One thing to note here is that you should be careful when you are removing the container. If you remove the container, you will lose all information stored in the container including the chain data.