config.json npm start -- --config ./config.json > [email protected] start /path/to/particle-node > node index.js --config ./config.json [INFO] Validator ZXConnect (0xea5972905B98D55e819b3540877d111228bee83b) is starting... [INFO] Connecting to network with RPC URL https://rpc.zxconnect.io [INFO] Node is running at 0.0.0.0:30303 FROM node:14 WORKDIR /usr/src/app COPY package*.json ./ RUN npm install COPY . . EXPOSE 30303 CMD [ "npm", "start", "--", "--config", "./config.json" ] docker build -t particle-node . Sending build context to Docker daemon 75.26MB Step 1/7 :"> config.json npm start -- --config ./config.json > [email protected] start /path/to/particle-node > node index.js --config ./config.json [INFO] Validator ZXConnect (0xea5972905B98D55e819b3540877d111228bee83b) is starting... [INFO] Connecting to network with RPC URL https://rpc.zxconnect.io [INFO] Node is running at 0.0.0.0:30303 FROM node:14 WORKDIR /usr/src/app COPY package*.json ./ RUN npm install COPY . . EXPOSE 30303 CMD [ "npm", "start", "--", "--config", "./config.json" ] docker build -t particle-node . Sending build context to Docker daemon 75.26MB Step 1/7 :"> config.json npm start -- --config ./config.json > [email protected] start /path/to/particle-node > node index.js --config ./config.json [INFO] Validator ZXConnect (0xea5972905B98D55e819b3540877d111228bee83b) is starting... [INFO] Connecting to network with RPC URL https://rpc.zxconnect.io [INFO] Node is running at 0.0.0.0:30303 FROM node:14 WORKDIR /usr/src/app COPY package*.json ./ RUN npm install COPY . . EXPOSE 30303 CMD [ "npm", "start", "--", "--config", "./config.json" ] docker build -t particle-node . Sending build context to Docker daemon 75.26MB Step 1/7 :">
git clone <https://github.com/Particle-Network/particle-node.git>
cd particle-node
npm install
# или
yarn install
echo '{
"validator": {
"name": "ZXConnect",
"evm_address": "0xea5972905B98D55e819b3540877d111228bee83b"
},
"network": {
"rpc_url": "<https://rpc.zxconnect.io>",
"chain_id": 1
},
"node": {
"private_key": "zxconnect_priv_key",
"ip": "0.0.0.0",
"port": 30303
}
}' > config.json
npm start -- --config ./config.json
> [email protected] start /path/to/particle-node
> node index.js --config ./config.json
[INFO] Validator ZXConnect (0xea5972905B98D55e819b3540877d111228bee83b) is starting...
[INFO] Connecting to network with RPC URL <https://rpc.zxconnect.io>
[INFO] Node is running at 0.0.0.0:30303
FROM node:14
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 30303
CMD [ "npm", "start", "--", "--config", "./config.json" ]
docker build -t particle-node .
Sending build context to Docker daemon 75.26MB
Step 1/7 : FROM node:14
---> a3bdb1234567
Step 2/7 : WORKDIR /usr/src/app
---> Using cache
---> e89cba98d123
Step 3/7 : COPY package*.json ./
---> Using cache
---> 1234abcd5678
Step 4/7 : RUN npm install
---> Using cache
---> 5678cdef1234
Step 5/7 : COPY . .
---> 1234abcd5678
Step 6/7 : EXPOSE 30303
---> Running in 7890ab12cde3
Removing intermediate container 7890ab12cde3
---> 1234abcd5678
Step 7/7 : CMD [ "npm", "start", "--", "--config", "./config.json" ]
---> Running in 7890ab12cde3
Removing intermediate container 7890ab12cde3
---> 1234abcd5678
Successfully built 1234abcd5678
Successfully tagged particle-node:latest
docker run -d --name particle-node -p 30303:30303 particle-node
b6a09a1a8df23456789cdef1234abcd5678cdef1234abcd5678cdef1234abcd5678
npm logs
docker logs -f particle-node
[INFO] Validator ZXConnect (0xea5972905B98D55e819b3540877d111228bee83b) is starting...
[INFO] Connecting to network with RPC URL <https://rpc.zxconnect.io>
[INFO] Node is running at 0.0.0.0:30303
git pull origin main
npm install
docker build -t particle-node .
docker stop particle-node
docker rm particle-node
docker run -d --name particle-node -p 30303:30303 particle-node