pi-node / instructions

265 stars 190 forks source link

Run the node on Linux #76

Open baoma1860 opened 3 years ago

baoma1860 commented 3 years ago

Install Pi for MacBook, bind with mobile APP, install Docker, run Pi, and obtain Docker Run parameter through runlike.(Windows: Docker run pinetwork/pi-node-docker to get POSTGRES_PASSWORD) Linux cloud server install Docker, docker pull pinetwork/pi-node-docker Run the image using the parameters obtained by MAC. docker run --name pi-consensus --mac-address 00:00:00:00:00:00 --env POSTGRES_PASSWORD={password} --env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin --env HORIZON_VERSION=1.13.1-94 --volume {file path}:/opt/stellar --volume {file path}:/var/log/supervisor --volume {file paths such as:/data/pi/history}:/history --expose 5432 -p 31403:1570 -p 31401:8000 -p 31402:31402 --restart no -d -t pinetwork/pi-node-docker:latest --testnet

Access via browser http://IP:31401 { ........ "horizon_version": "1.13.1-........", "core_version": "stellar-core 15.2.0 (........)", "ingest_latest_ledger": 499789, "history_latest_ledger": 499789, "history_elder_ledger": 496128, "core_latest_ledger": 499789, "network_passphrase": "Pi Testnet", "current_protocol_version": 15, "core_supported_protocol_version": 15 }

Is this an ordinary node?

Sparad0x commented 3 years ago

Hi baoma1860, This looks very interesting... I though it was illogical not to have the container running on a "true" linux docker :-) Have you been able to check if it works fine? Do you know if there is a way to get the postgres password without installing and running it first in Windows or Mac OS?

ihatejam commented 3 years ago

Hi baoma1860, This looks very interesting... I though it was illogical not to have the container running on a "true" linux docker :-) Have you been able to check if it works fine? Do you know if there is a way to get the postgres password without installing and running it first in Windows or Mac OS?

this is too much of a bother - wait for the linux app to be released. You can't get the consensus container pushed to you without running the Windows or Mac app first (along with Docker) - It can take a while to get picked as a node before the container is pushed to you as well. The win/mac app also "inserts" your Pi userID into your docker container. Of course you can move the Docker stuff after getting the image pushed to you, but then you would miss out on any other "things" (whatever they may be) that will be pushed out via the app component in future. Right now this is just a test blockchain - there is no benefit to running it right now anyway so I'm waiting for the Linux ver to be released. In the meantime, I'm just running my test node on a spare Windoze box - it's not nearly as intensive as other mining software.

alapierre commented 3 years ago

so, it is any way to run full functional PI Node on dedicated Linux server-like host (with no gui)? How we can "insert Pi userID" into running docker container (PostgreSQL table or config file name)? Running pinetwork/pi-node-docker container is pity easy (thanks to @baoma1860 ) but what to do next?