File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # python env and test outputs
2+ env /*
3+ test /__pycache__ /*
Original file line number Diff line number Diff line change 55To build the NCTL docker image run ` docker build ` as follows:
66
77``` bash
8- docker build -f casper-nctl.Dockerfile --build-arg GITBRANCH =release-1.4.15 -t casper-nctl:v1415 .
8+ 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 .
99```
1010
11- The argument ` GITBRANCH ` indicates which branch from the ` casper-node ` repository docker
11+ The argument ` NODE_GITBRANCH ` indicates which branch from the ` casper-node ` repository docker
1212will download and build.
1313
14- In the command above, the image is tagged as v144, which is the latest ` casper-node ` version
14+ The argument ` CLIENT_GITBRANCH ` indicates which branch from the ` casper-client-rs ` repository docker
15+ will download and build.
16+
17+ In the command above, the image is tagged as v154, which is the latest ` casper-node ` version
1518at the moment of writing these instructions. To keep other scripts independent of the version,
1619tag the image also as ` latest ` once the first build completes.
1720
1821``` bash
19- docker tag casper-nctl:v1415 casper-nctl:latest
22+ docker tag casper-nctl:v154 casper-nctl:latest
2023```
2124
2225## Test the docker image
@@ -31,7 +34,7 @@ pip install pytest testinfra
3134Then, run ` pytest ` indicating the name of the docker image to test:
3235
3336```
34- pytest --image casper-nctl:v144
37+ pytest --image casper-nctl:v154
3538```
3639
3740## Configure Docker Hub Automated Builds
Original file line number Diff line number Diff line change 11FROM ubuntu:focal
22
3- ARG GITBRANCH=release-1.4.15
3+ ARG NODE_GITBRANCH=release-1.4.15
4+ ARG CLIENT_GITBRANCH=main
45
56# DEBIAN_FRONTEND required for tzdata dependency install
67RUN apt-get update \
@@ -28,9 +29,9 @@ ENV NCTL_COMPILE_TARGET="release"
2829# clone the casper-node repos and build binaries
2930RUN git clone https://github.com/casper-network/casper-node-launcher.git ~/casper-node-launcher \
3031 && cd ~/casper-node-launcher && cargo build --release
31- RUN git clone -b main https://github.com/casper-ecosystem/casper-client-rs ~/casper-client-rs \
32+ RUN git clone -b $CLIENT_GITBRANCH https://github.com/casper-ecosystem/casper-client-rs ~/casper-client-rs \
3233 && cd ~/casper-client-rs && cargo build --release
33- RUN git clone -b $GITBRANCH https://github.com/casper-network/casper-node.git ~/casper-node \
34+ RUN git clone -b $NODE_GITBRANCH https://github.com/casper-network/casper-node.git ~/casper-node \
3435 && source ~/casper-node/utils/nctl/sh/assets/compile.sh
3536
3637# run clean-build-artifacts.sh to remove intermediate files and keep the image lighter
You can’t perform that action at this time.
0 commit comments