Skip to content

Install Node Nexus di Docker

System Specs

HardwareRequirement
CPU2 Cores
RAM2 GB

Install Node Nexus di Docker

  1. Update paket dan install docker.io (jika blm install docker)
apt update && apt install docker.io -y

  1. Buat container nexus (sesuaikan ram dan cpu anda ya, cek htop dulu)
docker run -it -d --name nexus --cpus=2 --memory=2048m ubuntu:22.04

  1. Masuk ke container nexus
docker exec -it nexus /bin/bash

  1. Update dan install depedensi (jika ada muncul pilih 11. us dan 10, atau bebas)
apt update && apt upgrade -y && apt install nano tmux curl git protobuf-compiler build-essential pkg-config libssl-dev git-all -y

  1. Install Rust (tekan enter aja yak)
curl https://sh.rustup.rs/ -sSf | sh
  1. Export path rush
cd
source $HOME/.cargo/env
export PATH="$HOME/.cargo/bin:$PATH"

  1. Buat sesi tmux baru untuk nexus
tmux new -s nexus

  1. Install Node nexus (masukan prover-id web)
curl https://cli.nexus.xyz/ | sh

  1. Jika prover-id tidak bisa/tidak ada di input dan ingin input prover-id dari web, silahkan stop node dulu
    ctrl c


  2. Edit, hapus dan paste prover-id yg di web (save, ctrl x, y enter)

nano .nexus/prover-id

  1. Run ulang node
curl https://cli.nexus.xyz/ | sh

  1. Keluar dari tmux
    tekan ctrl, tahan terus, tekan b, lepas semua, lalu tekan d


  2. Keluar dari docker

exit

  1. Masuk ke docker dan tmux (jika ingin lihat node running)
docker exec -it nexus /bin/bash
tmux attach -t nexus

DONE