bool

coolsd 2024-4-2 210

download.01.org/intel-sgx/sgx-linux/2.17/distro/ubuntu18.04-server/

sudo curl -fsSL https://get.docker.com | bash -s docker
sudo systemctl enable docker
sudo systemctl start docker
sudo systemctl status docker
sudo chmod 666 /var/run/docker.sock
docker version
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
mkdir -p /bool/node-data
cd /bool 
# Adjust user permissions
chmod 777 node-data
# Add a Node Configuration File
cat > docker-compose.yaml <<EOF
version: "3"
services:
  bnk-node1:
    image: boolnetwork/bnk-node:pre-release
    restart: always
    environment:
      RUST_LOG: info
    volumes:
    - "./node-data:/data"
    command: |
      --validator
      --enable-offchain-indexing true
      --rpc-methods Unsafe
      --unsafe-rpc-external
      --rpc-cors all
      --rpc-max-connections 100000
      --pool-limit 100000
      --pool-kbytes 2048000
      --tx-ban-seconds 600
      --blocks-pruning=archive
      --state-pruning=archive
      --ethapi=debug,trace,txpool
      --chain alpha_testnet
    ports:
      - 9944:9944
      - 30333:30333
EOF
# Start validator node service
docker-compose up -d
# View node service Logs
docker-compose logs --tail 200 -f
# Pull github repositories
git clone https://github.com/boolnetwork/mining-scripts.git
# Install the sgx driver
apt update
apt install  build-essential  automake autoconf libtool wget python libssl-dev dkms -y
wget https://download.01.org/intel-sgx/latest/linux-latest/distro/ubuntu18.04-server/sgx_linux_x64_driver_1.41.bin
bash sgx_linux_x64_driver_1.41.bin
sudo chmod +x sgx_enable
sudo ./sgx_enable
sudo reboot
# View sgx status
cd mining-scripts && ./sgx-detect
# Initialize the account, the account information needs to be saved, will be used subsequently
docker run -it --rm boolnetwork/bnk-node:release identity generate
{
  "pccs_url": "https://sgx-dcap-server.cn-hangzhou.aliyuncs.com/sgx/certification/v3/",
  "use_secure_cert": true,
  "retry_times": 6,
  "retry_delay": 10,
  "pck_cache_expire_hours": 168
}
# Tencent Cloud
{
  "pccs_url": "https://sgx-dcap-server-tc.bj.tencent.cn/sgx/certification/v3/"
  ,"use_secure_cert": true
  ,"retry_times": 6
  ,"retry_delay": 10
  ,"pck_cache_expire_hours": 168
  ,"verify_collateral_cache_expire_hours": 168
}
# Microsoft Cloud
{
  "pccs_url": "https://global.acccache.azure.net/sgx/certification/v3/",
  "use_secure_cert": true,
  "retry_times": 6,
  "retry_delay": 10,
  "pck_cache_expire_hours": 168
}
git clone https://github.com/occlum/enable_rdfsbase.git
cd enable_rdfsbase 
make && make install


最后于 2024-4-10 被coolsd编辑 ,原因:
最新回复 (0)
返回
发新帖
本站文章均收录自网上,仅做参考用。 欢迎大家添砖加瓦,发表一些自己使用过程中遇到的问题以及解决方法。