-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update Makefile * Update release * Update * Updating release * Added runtime check * Consolidate all branches into main * Initalize cache * Initalize cache * Initalize cache * Initalize cache * Initalize cache * Initalize cache * Initalize cache * Initalize cache * Initalize cache * Initalize cache * Initalize cache * Initalize cache * Update build parameters * Update build parameters * Add simnode workflow * Add simonde to workflow file * Add simonde to workflow file * Update ci * Update ci * Update cargo path * Update cargo path * Update cargo path * Update cargo path * Update cargo path
- Loading branch information
1 parent
a532ead
commit 526263a
Showing
9 changed files
with
88 additions
and
118 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Check Runtime | ||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
jobs: | ||
picashot: | ||
runs-on: | ||
- self-hosted | ||
- linux | ||
- X64 | ||
- ansible-runner | ||
|
||
steps: | ||
- name: Run ansible playbook | ||
working-directory: "./.maintain/playbooks" | ||
run: | | ||
ansible-playbook -l _mainnet_collator_yes picashot.yml -i picasso-gcp.yaml --user root -e 'ansible_python_interpreter=/usr/bin/python3' | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
DATE=$(date +'%m-%d-%Y') | ||
FILENAME=composable-$DATE.zip | ||
BACKUP_DIR="/var/lib/composable-data/chains" | ||
GS_BUCKET="composable-picasso-data-sync" | ||
zip -r $FILENAME $BACKUP_DIR | ||
gsutil mv $FILENAME gs://$GS_BUCKET/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
- name: Create Backup for Picasso nodes | ||
hosts: all | ||
become: true | ||
tasks: | ||
- name: Run Backup Script | ||
become: true | ||
shell: | | ||
#!/bin/bash | ||
DATE=$(date +'%m-%d-%Y') | ||
HOST=$(echo $HOSTNAME) | ||
FILENAME=$HOST-$DATE.zip | ||
BACKUP_DIR="/var/lib/composable-data/chains" | ||
GS_BUCKET="composable-picasso-data-sync" | ||
zip -r $FILENAME $BACKUP_DIR | ||
gsutil mv $FILENAME gs://$GS_BUCKET/ | ||
args: | ||
executable: /bin/bash | ||
register: stdout | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters