This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:ar-io/pdns-service
- Loading branch information
Showing
14 changed files
with
111 additions
and
1,596 deletions.
There are no files selected for viewing
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
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 @@ | ||
TVAL_LOCAL_DB_PATH=/cache/warp/sqlite | ||
TVAL_AWS_ACCESS_KEY_ID= | ||
TVAL_AWS_SECRET_ACCESS_KEY= | ||
TVAL_S3_BUCKET_PATH=/<sqlite-path-in-s3/ | ||
TVAL_S3_BUCKET= | ||
WAIT_TIME_SECONDS=0 | ||
RESTORE_FROM_BACKUP=false |
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 @@ | ||
#!/bin/sh | ||
|
||
case $(uname -m) in | ||
"aarch64") | ||
echo "aarch64" | ||
curl -L https://github.com/vmware-tanzu/carvel-ytt/releases/download/v0.49.0/ytt-linux-arm64 > /usr/local/bin/ytt | ||
;; | ||
"x86_64") | ||
echo "x86_64" | ||
curl -L https://github.com/vmware-tanzu/carvel-ytt/releases/download/v0.49.0/ytt-linux-amd64 > /usr/local/bin/ytt | ||
;; | ||
*) | ||
echo "Unknown arch" | ||
exit 1 | ||
;; | ||
esac | ||
|
||
chmod 755 /usr/local/bin/ytt |
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 |
---|---|---|
@@ -1,9 +1,26 @@ | ||
#@ load("@ytt:data", "data") | ||
|
||
#@ if data.values.AWS_ACCESS_KEY_ID != "": | ||
access-key-id: #@ data.values.AWS_ACCESS_KEY_ID | ||
secret-access-key: #@ data.values.AWS_SECRET_ACCESS_KEY | ||
#@ end | ||
|
||
dbs: | ||
- path: #@ data.values.LOCAL_DB_PATH + "/state.db" | ||
replicas: | ||
- url: #@ data.values.S3_BUCKET_PATH | ||
- name: warp.state.db | ||
type: s3 | ||
bucket: #@ data.values.S3_BUCKET | ||
path: #@ data.values.S3_BUCKET_PATH | ||
region: #@ data.values.S3_BUCKET_REGION | ||
sync-interval: 1m | ||
snapshot-interval: 6h | ||
- path: #@ data.values.LOCAL_DB_PATH + "/contract.db" | ||
replicas: | ||
- url: #@ data.values.S3_BUCKET_PATH | ||
- name: warp.contracts.db | ||
type: s3 | ||
bucket: #@ data.values.S3_BUCKET | ||
path: #@ data.values.S3_BUCKET_PATH | ||
region: #@ data.values.S3_BUCKET_REGION | ||
sync-interval: 1m | ||
snapshot-interval: 6h |
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
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
Oops, something went wrong.