Add optional deploy of custom programs (#2817)
* Add optional deploy of custom programs * Review comments
This commit is contained in:
10
net/net.sh
10
net/net.sh
@ -36,6 +36,7 @@ Operate a configured testnet
|
||||
(ignored if -s or -S is specified)
|
||||
-r - Reuse existing node/ledger configuration from a
|
||||
previous |start| (ie, don't run ./multinode-demo/setup.sh).
|
||||
-D /path/to/programs - Deploy custom programs from this location
|
||||
|
||||
sanity/start/update-specific options:
|
||||
-o noLedgerVerify - Skip ledger verification
|
||||
@ -62,12 +63,13 @@ sanityExtraArgs=
|
||||
cargoFeatures=
|
||||
skipSetup=false
|
||||
updateNodes=false
|
||||
customPrograms=
|
||||
|
||||
command=$1
|
||||
[[ -n $command ]] || usage
|
||||
shift
|
||||
|
||||
while getopts "h?S:s:T:t:o:f:r" opt; do
|
||||
while getopts "h?S:s:T:t:o:f:r:D:" opt; do
|
||||
case $opt in
|
||||
h | \?)
|
||||
usage
|
||||
@ -110,6 +112,9 @@ while getopts "h?S:s:T:t:o:f:r" opt; do
|
||||
r)
|
||||
skipSetup=true
|
||||
;;
|
||||
D)
|
||||
customPrograms=$OPTARG
|
||||
;;
|
||||
o)
|
||||
case $OPTARG in
|
||||
noLedgerVerify|noValidatorSanity|rejectExtraNodes)
|
||||
@ -149,6 +154,9 @@ build() {
|
||||
$MAYBE_DOCKER bash -c "
|
||||
set -ex
|
||||
scripts/cargo-install-all.sh farf \"$cargoFeatures\"
|
||||
if [[ -n $customPrograms ]]; then
|
||||
scripts/cargo-install-custom-programs.sh farf $customPrograms
|
||||
fi
|
||||
"
|
||||
)
|
||||
echo "Build took $SECONDS seconds"
|
||||
|
Reference in New Issue
Block a user