Browse Source

Merge pull request #1616 from tendermint/zach/no-debora

remove debora scripts
pull/1546/merge
Ethan Buchman 7 years ago
committed by GitHub
parent
commit
6f1bfb6280
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 0 additions and 73 deletions
  1. +0
    -2
      .gitignore
  2. +0
    -13
      scripts/debora/unsafe_debug_net.sh
  3. +0
    -11
      scripts/debora/unsafe_reset_net.sh
  4. +0
    -10
      scripts/debora/unsafe_start_group.sh
  5. +0
    -9
      scripts/debora/unsafe_stop_group.sh
  6. +0
    -19
      scripts/debora/unsafe_upgrade_barak.sh
  7. +0
    -9
      scripts/debora/unsafe_upgrade_group.sh

+ 0
- 2
.gitignore View File

@ -5,7 +5,6 @@
.DS_Store .DS_Store
build/* build/*
rpc/test/.tendermint rpc/test/.tendermint
.debora
.tendermint .tendermint
remote_dump remote_dump
.revision .revision
@ -13,7 +12,6 @@ vendor
.vagrant .vagrant
test/p2p/data/ test/p2p/data/
test/logs test/logs
.glide
coverage.txt coverage.txt
docs/_build docs/_build
docs/tools docs/tools


+ 0
- 13
scripts/debora/unsafe_debug_net.sh View File

@ -1,13 +0,0 @@
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
debora run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; killall tendermint"
debora run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; tendermint unsafe_reset_priv_validator; rm -rf ~/.tendermint/data"
debora run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; git pull origin develop; make"
debora run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; mkdir -p ~/.tendermint/logs"
debora run --bg --label tendermint -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; tendermint node 2>&1 | stdinwriter -outpath ~/.tendermint/logs/tendermint.log"
printf "\n\nSleeping for a minute\n"
sleep 60
debora download tendermint "logs/async$1"
debora run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; killall tendermint"

+ 0
- 11
scripts/debora/unsafe_reset_net.sh View File

@ -1,11 +0,0 @@
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
debora run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; killall tendermint; killall logjack"
debora run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; tendermint unsafe_reset_priv_validator; rm -rf ~/.tendermint/data; rm ~/.tendermint/config/genesis.json; rm ~/.tendermint/logs/*"
debora run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; git pull origin develop; make"
debora run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; mkdir -p ~/.tendermint/logs"
debora run --bg --label tendermint -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; tendermint node 2>&1 | stdinwriter -outpath ~/.tendermint/logs/tendermint.log"
debora run --bg --label logjack -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; logjack -chopSize='10M' -limitSize='1G' ~/.tendermint/logs/tendermint.log"
printf "Done\n"

+ 0
- 10
scripts/debora/unsafe_start_group.sh View File

@ -1,10 +0,0 @@
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
printf "Starting group $1...\n"
sleep 3
debora --group "$1" run --bg --label tendermint -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; tendermint node 2>&1 | stdinwriter -outpath ~/.tendermint/logs/tendermint.log"
debora --group "$1" run --bg --label logjack -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; logjack -chopSize='10M' -limitSize='1G' ~/.tendermint/logs/tendermint.log"
printf "Done\n"

+ 0
- 9
scripts/debora/unsafe_stop_group.sh View File

@ -1,9 +0,0 @@
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
printf "Stopping group $1...\n"
sleep 3
debora --group "$1" run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; killall tendermint; killall logjack"
printf "Done\n"

+ 0
- 19
scripts/debora/unsafe_upgrade_barak.sh View File

@ -1,19 +0,0 @@
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
debora open "[::]:46661"
debora --group default.upgrade status
printf "\n\nShutting down barak default port...\n\n"
sleep 3
debora --group default.upgrade close "[::]:46660"
debora --group default.upgrade run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; git pull origin develop; make"
debora --group default.upgrade run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; mkdir -p ~/.barak/logs"
debora --group default.upgrade run --bg --label barak -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; barak --config=cmd/barak/seed 2>&1 | stdinwriter -outpath ~/.barak/logs/barak.log"
printf "\n\nTesting new barak...\n\n"
sleep 3
debora status
printf "\n\nShutting down old barak...\n\n"
sleep 3
debora --group default.upgrade quit
printf "Done!\n"

+ 0
- 9
scripts/debora/unsafe_upgrade_group.sh View File

@ -1,9 +0,0 @@
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
printf "Upgrading group $1...\n"
sleep 3
debora --group "$1" run -- bash -c "cd \$GOPATH/src/github.com/tendermint/tendermint; git pull origin develop; make"
printf "Done\n"

Loading…
Cancel
Save