From fdcfb5ac2f8a4dce8dbb79c97bd2c7105ff5767c Mon Sep 17 00:00:00 2001 From: Jeff <60796676+JeffNeff@users.noreply.github.com> Date: Wed, 10 Aug 2022 06:54:49 -0700 Subject: [PATCH 1/4] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1a91739..cdd9fc8 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,6 @@ Install NodeJS 16 from [here](https://nodejs.org/) and run KStratum by ``npx kst * ``--node ``: Switchs to another node. Default: `79.120.76.62:16110` * ``--address
``: Sets mining address. * ``--port ``: Sets Stratum listening port. Default: `16112` -* ``--listen-address ``: Sets Stratum listening address. Default: `127.0.0.1` +* ``--listen-address ``: Sets Stratum listening address. Default: `127.0.0.1` (**Note** to expose the KStratum service to your local network, use `0.0.0.0`) -#### Sponsored by [lolMiner](https://github.com/Lolliedieb/lolMiner-releases) \ No newline at end of file +#### Sponsored by [lolMiner](https://github.com/Lolliedieb/lolMiner-releases) From a5ebdad8b56b1ba6476dd0b195f27ae182848ab4 Mon Sep 17 00:00:00 2001 From: Jeff <60796676+JeffNeff@users.noreply.github.com> Date: Wed, 10 Aug 2022 08:23:34 -0700 Subject: [PATCH 2/4] Creates a basic Dockerfile --- Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..84c15fc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM node:16-alpine + +RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app + +WORKDIR /home/node/app +COPY package*.json ./ + +RUN npm install +USER node +COPY --chown=node:node . . + +EXPOSE 16110 +EXPOSE 16112 + +# Modify the parameters here to reflect your Node, Wallet, Port, and Listening Address. +CMD [ "node", "index.js", "--node", "79.120.76.62:16110","--port","16112", "--address", "kaspa:qz34dfrhnmljnp4ymm4p4uukphjg3ty3auv0jktugv4wx4w8jwdh7zwjka8x8", "--listen-address", "0.0.0.0" ] From 3bde2ee1d14974cb23ecae04b7baf6d97dfec132 Mon Sep 17 00:00:00 2001 From: Jeff <60796676+JeffNeff@users.noreply.github.com> Date: Wed, 10 Aug 2022 08:24:44 -0700 Subject: [PATCH 3/4] Update README.md --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cdd9fc8..93a67ca 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,24 @@ * Supports multiple networks(Testnet, mainnet...). ## Usage -Install NodeJS 16 from [here](https://nodejs.org/) and run KStratum by ``npx kstratum@latest `` on command line. +### npx +Install NodeJS 16 from [here](https://nodejs.org/) and run KStratum: +``` +npx kstratum@latest +``` + +### Docker +Modify the command arguments in the included Dockerfile to reflect your Node, Wallet, Port, and Listening Address. + +Build the container: +``` +docker build -t kstratum . +``` + +Run the container locally: +``` +docker run -p 16112:16112 -t kstratum +``` ### Arguments * ``--node ``: Switchs to another node. Default: `79.120.76.62:16110` From e6a83c033df755a47d11cfe7f213f7987bff6a0b Mon Sep 17 00:00:00 2001 From: Jeff <60796676+JeffNeff@users.noreply.github.com> Date: Wed, 10 Aug 2022 08:26:25 -0700 Subject: [PATCH 4/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 93a67ca..9755f9e 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,6 @@ docker run -p 16112:16112 -t kstratum * ``--node ``: Switchs to another node. Default: `79.120.76.62:16110` * ``--address
``: Sets mining address. * ``--port ``: Sets Stratum listening port. Default: `16112` -* ``--listen-address ``: Sets Stratum listening address. Default: `127.0.0.1` (**Note** to expose the KStratum service to your local network, use `0.0.0.0`) +* ``--listen-address ``: Sets Stratum listening address. Default: `127.0.0.1` #### Sponsored by [lolMiner](https://github.com/Lolliedieb/lolMiner-releases)