Skip to content

Latest commit

 

History

History
88 lines (56 loc) · 3.04 KB

File metadata and controls

88 lines (56 loc) · 3.04 KB
description
Guide for running the Taraxa Node with Docker on Alibaba Cloud

Alibaba Cloud

1. Register to Alibaba Cloud(Aliyun)

You can use the following link to get a discount:

https://www.alibabacloud.com/referral?referralCode=iwa2ly

2. Create AccessKeyId and AccessKeySecret

You can create AccessKeyId and AccessKeySecret on this page:

AccessKeyId and AccessKeySecret

Make a note of that key. It only shows once, you have to save it, and we will use it in the next step.

3. Creating a Taraxa Node

{% hint style="danger" %} If you are running this on Windows you will first need to install Windows Subsystem for Linux. You can use this guide. {% endhint %}

Export your AccessKeyId and AccessKeySecret to your environment so that the node creation script can access it without prompting you for it:

export ALY_AK_ID=your_access_key_id
export ALY_AK_SECRET=your_access_key_secret

{% hint style="warning" %} The script you fetch and run in the next step depends on the network you want to deploy your node to. Please be sure to select between mainnet and testnet as desired. {% endhint %}

{% tabs %} {% tab title="Mainnet" %} Download and run the node install script for the type of node you wish to deploy:

Mainnet Full Node:

bash -c "$(curl -fsSL https://raw.githubusercontent.com/Taraxa-project/taraxa-ops/master/scripts/one-click-Alibaba-Cloud.sh)" mainnet

Mainnet Light Node:

bash -c "$(curl -fsSL https://raw.githubusercontent.com/Taraxa-project/taraxa-ops/master/scripts/one-click-Alibaba-Cloud.sh)" mainnet light

{% endtab %}

{% tab title="Testnet" %} Download and run the node install script for the type of node you wish to deploy:

Testnet Full Node:

bash -c "$(curl -fsSL https://raw.githubusercontent.com/Taraxa-project/taraxa-ops/master/scripts/one-click-Alibaba-Cloud.sh)" testnet

Testnet Light Node:

bash -c "$(curl -fsSL https://raw.githubusercontent.com/Taraxa-project/taraxa-ops/master/scripts/one-click-Alibaba-Cloud.sh)" testnet light

{% endtab %} {% endtabs %}

Now you should see a new droplet in your Aliyun account and you should receive an email with the resources creating details.

NOTE: It takes a few minutes after the droplet starts to install the Taraxa Node software, please don't restart or stop the new ECS instance.

4. Check the logs

You can send commands via Cloud Assistant, so you needn't remember the ECS instance password:

how to send commands

NOTE: If you want to get the instance's password, you can reset password.

You can use the following commands to check if the node is up and running:

sudo docker ps

sudo docker logs taraxa_compose_node_1