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.
Check your machine architecture
uname -m
Pull the docker image
If your machine architecture is arm64 or aarch64
docker pull tokamaknetwork/trh-sdk:arm
If your machine architecture is amd64 or x86_64
docker pull tokamaknetwork/trh-sdk
After pulling the image, you can verify the image by running the following command:
docker images

Run the docker container
If your machine architecture is arm64
docker run -d --name trh-sdk-container tokamaknetwork/trh-sdk:arm sleep infinity
If your machine architecture is amd64 or x86_64
docker run -d --name trh-sdk-container tokamaknetwork/trh-sdk sleep infinity
After running the docker container, you can verify if the container is running properly by running the following command.
docker ps

Go into the container
docker exec -it trh-sdk-container /bin/bash
Now you can start using the SDK 🚀
Verify the version of the SDK
trh-sdk version
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.