mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Improve corebill and graylisting. (#154)
This commit is contained in:
committed by
GitHub
parent
f475dcb1fb
commit
9160b2ee15
2
examples/nodejs_client/.dockerignore
Normal file
2
examples/nodejs_client/.dockerignore
Normal file
@@ -0,0 +1,2 @@
|
||||
node_modules
|
||||
npm-debug.log
|
||||
15
examples/nodejs_client/Dockerfile
Normal file
15
examples/nodejs_client/Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM node:12.18.3-buster-slim
|
||||
|
||||
WORKDIR /text_client
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
|
||||
COPY text-client.js ./
|
||||
COPY hp-client-lib.js ./
|
||||
|
||||
ENTRYPOINT ["node", "text-client.js"]
|
||||
|
||||
# Comment this for localhost connection.
|
||||
# Client connects to node1 of the cluster.
|
||||
CMD ["node1", "8081"]
|
||||
2
examples/nodejs_client/client-build.sh
Executable file
2
examples/nodejs_client/client-build.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
docker build -t hp:text_client .
|
||||
7
examples/nodejs_client/client-start.sh
Executable file
7
examples/nodejs_client/client-start.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# To connect to docker cluster node.
|
||||
docker run -i -t --rm --network=hpnet hp:text_client
|
||||
|
||||
# To connect to localhost node.
|
||||
# docker run -i -t --rm --network=host hp:text_client
|
||||
Reference in New Issue
Block a user