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
8 changes: 4 additions & 4 deletions BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
To build the NCTL docker image run `docker build` as follows:

```bash
docker build -f casper-nctl.Dockerfile --build-arg NODE_GITBRANCH=release-1.5.4 --build-arg CLIENT_GITBRANCH=release-2.0.0 -t casper-nctl:v154 .
docker build -f casper-nctl.Dockerfile --build-arg NODE_GITBRANCH=release-1.5.8 --build-arg CLIENT_GITBRANCH=release-2.0.0 -t casper-nctl:v158 .
```

The argument `NODE_GITBRANCH` indicates which branch from the `casper-node` repository docker
Expand All @@ -14,12 +14,12 @@ will download and build.
The argument `CLIENT_GITBRANCH` indicates which branch from the `casper-client-rs` repository docker
will download and build.

In the command above, the image is tagged as v154, which is the latest `casper-node` version
In the command above, the image is tagged as v158, which is the latest `casper-node` version
at the moment of writing these instructions. To keep other scripts independent of the version,
tag the image also as `latest` once the first build completes.

```bash
docker tag casper-nctl:v154 casper-nctl:latest
docker tag casper-nctl:v158 casper-nctl:latest
```

## Test the docker image
Expand All @@ -34,7 +34,7 @@ pip install pytest testinfra
Then, run `pytest` indicating the name of the docker image to test:

```
pytest --image casper-nctl:v154
pytest --image casper-nctl:v158
```

## Configure Docker Hub Automated Builds
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
> **Warning**
> Images published on Docker Hub are not stable on Apple computers with M1/M2 chips. We recommend that you build the docker image locally using the [BUILD](./BUILD.md) instructions.

[NCTL](https://github.com/casper-network/casper-node/tree/release-1.4.3/utils/nctl) is a CLI application to control one or multiple Casper networks locally. Many developers wish to spin up relatively small test networks to localize their testing before deploying to the blockchain.
[NCTL](https://github.com/casper-network/casper-node/tree/release-1.5.8/utils/nctl) is a CLI application to control one or multiple Casper networks locally. Many developers wish to spin up relatively small test networks to localize their testing before deploying to the blockchain.

## How to use this image

Expand Down Expand Up @@ -40,7 +40,7 @@ In a Powershell terminal, run:

where `mynctl` is the name of the container.

Now you can write in the host machine commands like `nctl-view-faucet-account`, `nctl-transfer-native`, etc. For a complete list of commands, visit [this page](https://github.com/casper-network/casper-node/blob/release-1.4.3/utils/nctl/docs/commands.md).
Now you can write in the host machine commands like `nctl-view-faucet-account`, `nctl-transfer-native`, etc. For a complete list of commands, visit [this page](https://github.com/casper-network/casper-node/blob/release-1.5.8/utils/nctl/docs/commands.md).

Sometimes you may need the secret key of the faucet, a node or one of the predefined users. After activating `nctl-*` commands you can execute the following commands:

Expand Down
2 changes: 1 addition & 1 deletion casper-nctl.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ubuntu:focal

ARG NODE_GITBRANCH=release-1.5.5
ARG NODE_GITBRANCH=release-1.5.8
ARG CLIENT_GITBRANCH=release-2.0.0

# DEBIAN_FRONTEND required for tzdata dependency install
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ services:
- 11101-11105:11101-11105
- 14101-14105:14101-14105
- 18101-18105:18101-18105
- 25101-25105:25101-25105
environment:
PREDEFINED_ACCOUNTS: 'true'
#PATH_TO_CONFIG_TOML: '/home/casper/config/config.toml'
Expand Down