Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@

```bash
Options:
--help Show help [boolean]
--version Show version number [boolean]
--out, -o Out of result [string] [required]
--config, -c Path to config file [string]
--mode, -m Compile mode [choices: "json", "typescript"] [default: "json"]
--node, -n Need up node (port 6869) [boolean]
--explorer, -e Need up explorer (port 3000) [boolean]
--help Show help [boolean]
--version Show version number [boolean]
--out, -o Out of result [string] [required]
--config, -c Path to config file [string]
--mode, -m Compile mode [choices: "json", "typescript"] [default: "json"]
--node, -n Need up node (port 6869) [boolean]
--explorer, -e Need up explorer (port 3000) [boolean]
--image, -i Node image, [string] [default: "wavesplatform/waves-private-node"]
```

### Usage example
Expand Down
8 changes: 7 additions & 1 deletion src/args.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,18 @@ const data = options({
},
verbose: {
type: 'boolean'
},
image: {
type: 'string',
alias: 'i',
default: 'wavesplatform/waves-private-node'
}
}).parseSync();

export const out = data.out;
export const config = data.config;
export const mode = data.mode as 'json' | 'typescript';
export const upNode = data.upNode;
export const runTests = data.runTests;
export const runTests = data.runTests
export const image = data.image
console.level = data.verbose ? 'verbose' : 'errors';
3 changes: 2 additions & 1 deletion src/middlewares/node.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { CHAIN_ID, DOCKER_NETWORK, MASTER_ACCOUNT_SEED, NODE_API_PORT, NODE_URL } from '../constants';
import { isRunImage, remove, run, stop } from '../utils/docker';
import { image } from '../args';

const NODE_IMAGE = 'wavesplatform/waves-private-node';
const NODE_IMAGE = image;

export default async (ctx: any, next: any) => {
console.info(`NODE_URL ${NODE_URL}`);
Expand Down