Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script to start the Alert System Microservice and BSV node #39

Merged
merged 14 commits into from
Feb 14, 2024

Conversation

JackieChain
Copy link
Collaborator

@JackieChain JackieChain commented Feb 7, 2024

Run:
python3 start_aks_bsv.py -h
for help.

Example 1:
python3 start_aks_bsv.py -datadir=/tmp/bitcoin_data
This will run alert-system binary on local system and BSV node with provided -datadir. Any bitcoind and bitcoin-cli options can be used.
alert-system binary needs to be symlinked in the /usr/bin for example. Proper ALERT_SYSTEM_* environment variables need to be set.

Example 2:
python3 start_aks_bsv.py -asm_host=123.134.145.156 -asm_user=nchain -asm_pk_path=my_pk.pem -datadir=/tmp/bitcoin_data -bsv_host=123.134.145.156 -bsv_user=nchain -bsv_pk_path=my_pk.pem
In this case both the Alert System Microservice (alesrt-system) and BSV node (bitcoind) will be started through the SSH using key-based authentication.
IMPORTANT: ssh server must be properly configured to pick the ALERT_SYSTEM_* environment variables. Make sure that:
ssh -i my_pk.pem nchain@123.134.145.156 env
lists all required ALERT_SYSTEM_* environment variables. If not, alert-system binary will fail to start.

Use -verbose option for detailed information.

@JackieChain JackieChain requested a review from galt-tr February 7, 2024 13:48
@mrz1836 mrz1836 added the work-in-progress Used for denoting a WIP, stops auto-merge label Feb 7, 2024
@JackieChain JackieChain force-pushed the SVN-2898_start_alert_microservice_and_bsv_node_script branch from e07e8f7 to 6ab166a Compare February 13, 2024 13:53
@galt-tr galt-tr marked this pull request as ready for review February 14, 2024 13:08
@galt-tr galt-tr merged commit f3a3859 into master Feb 14, 2024
10 checks passed
galt-tr pushed a commit that referenced this pull request Feb 15, 2024
* Start Alert System Microservice and BSV node

* Put Alert System Microservice stderr log etires into a log file

* Proper Alert System Microservice binary name, logs are no longer needed.

* Print out the starting information

* Script documentation

* Update help

* Fix flake8 issues

* Fix Flake8 issues

* Fix isort issues

* Fix black issues

* Fix black issues

* alert-system renamed to alert_system

* Error only on non-zero return code

* Proper binary name is alert-system

Update keys/topics for testnet/stn

chore(deps): bump go.mongodb.org/mongo-driver from 1.13.1 to 1.13.2

Bumps [go.mongodb.org/mongo-driver](https://github.com/mongodb/mongo-go-driver) from 1.13.1 to 1.13.2.
- [Release notes](https://github.com/mongodb/mongo-go-driver/releases)
- [Commits](mongodb/mongo-go-driver@v1.13.1...v1.13.2)

---
updated-dependencies:
- dependency-name: go.mongodb.org/mongo-driver
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
galt-tr pushed a commit that referenced this pull request Feb 15, 2024
* Start Alert System Microservice and BSV node

* Put Alert System Microservice stderr log etires into a log file

* Proper Alert System Microservice binary name, logs are no longer needed.

* Print out the starting information

* Script documentation

* Update help

* Fix flake8 issues

* Fix Flake8 issues

* Fix isort issues

* Fix black issues

* Fix black issues

* alert-system renamed to alert_system

* Error only on non-zero return code

* Proper binary name is alert-system

Update keys/topics for testnet/stn

chore(deps): bump go.mongodb.org/mongo-driver from 1.13.1 to 1.13.2

Bumps [go.mongodb.org/mongo-driver](https://github.com/mongodb/mongo-go-driver) from 1.13.1 to 1.13.2.
- [Release notes](https://github.com/mongodb/mongo-go-driver/releases)
- [Commits](mongodb/mongo-go-driver@v1.13.1...v1.13.2)

---
updated-dependencies:
- dependency-name: go.mongodb.org/mongo-driver
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
galt-tr pushed a commit that referenced this pull request Feb 15, 2024
* Start Alert System Microservice and BSV node

* Put Alert System Microservice stderr log etires into a log file

* Proper Alert System Microservice binary name, logs are no longer needed.

* Print out the starting information

* Script documentation

* Update help

* Fix flake8 issues

* Fix Flake8 issues

* Fix isort issues

* Fix black issues

* Fix black issues

* alert-system renamed to alert_system

* Error only on non-zero return code

* Proper binary name is alert-system

Update keys/topics for testnet/stn

chore(deps): bump go.mongodb.org/mongo-driver from 1.13.1 to 1.13.2

Bumps [go.mongodb.org/mongo-driver](https://github.com/mongodb/mongo-go-driver) from 1.13.1 to 1.13.2.
- [Release notes](https://github.com/mongodb/mongo-go-driver/releases)
- [Commits](mongodb/mongo-go-driver@v1.13.1...v1.13.2)

---
updated-dependencies:
- dependency-name: go.mongodb.org/mongo-driver
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
galt-tr pushed a commit that referenced this pull request Feb 15, 2024
* Start Alert System Microservice and BSV node

* Put Alert System Microservice stderr log etires into a log file

* Proper Alert System Microservice binary name, logs are no longer needed.

* Print out the starting information

* Script documentation

* Update help

* Fix flake8 issues

* Fix Flake8 issues

* Fix isort issues

* Fix black issues

* Fix black issues

* alert-system renamed to alert_system

* Error only on non-zero return code

* Proper binary name is alert-system

Update keys/topics for testnet/stn

chore(deps): bump go.mongodb.org/mongo-driver from 1.13.1 to 1.13.2

Bumps [go.mongodb.org/mongo-driver](https://github.com/mongodb/mongo-go-driver) from 1.13.1 to 1.13.2.
- [Release notes](https://github.com/mongodb/mongo-go-driver/releases)
- [Commits](mongodb/mongo-go-driver@v1.13.1...v1.13.2)

---
updated-dependencies:
- dependency-name: go.mongodb.org/mongo-driver
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@galt-tr galt-tr deleted the SVN-2898_start_alert_microservice_and_bsv_node_script branch February 15, 2024 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
work-in-progress Used for denoting a WIP, stops auto-merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants