-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[apps] Release twitter_binding v6 and deploy to mainnet
- Loading branch information
Showing
5 changed files
with
93 additions
and
3 deletions.
There are no files selected for viewing
Binary file not shown.
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
11 changes: 11 additions & 0 deletions
11
kube/mainnet/schedule/mainnet-tweet-fetch-schedule-pvc.yaml
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,11 @@ | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: mainnet-tweet-fetch-schedule-data | ||
namespace: mainnet | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi |
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,64 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: mainnet-tweet-fetch-schedule | ||
namespace: mainnet | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: mainnet-tweet-fetch-schedule | ||
template: | ||
metadata: | ||
labels: | ||
app: mainnet-tweet-fetch-schedule | ||
spec: | ||
initContainers: | ||
- name: init-rooch | ||
image: ghcr.io/rooch-network/rooch:v0.8.0 | ||
command: ["/bin/sh", "-c"] | ||
args: | ||
- | | ||
if [ ! -f /root/.rooch/initialized ]; then | ||
/rooch/rooch init -m "${INIT_SECRET}" --skip-password | ||
/rooch/rooch env switch --alias main | ||
/rooch/rooch account create | ||
/rooch/rooch account create | ||
/rooch/rooch account create | ||
/rooch/rooch account create | ||
/rooch/rooch account create | ||
ls -la /root/.rooch/rooch_config/ | ||
touch /root/.rooch/initialized | ||
fi | ||
env: | ||
- name: INIT_SECRET | ||
valueFrom: | ||
secretKeyRef: | ||
name: rooch-mainnet-secrets | ||
key: init-phrase | ||
volumeMounts: | ||
- name: rooch-data | ||
mountPath: /root | ||
containers: | ||
- name: rooch-schedule | ||
image: ghcr.io/rooch-network/rooch:v0.8.0 | ||
command: ["/rooch/rooch"] | ||
args: | ||
- "task" | ||
- "schedule" | ||
- "--sender" | ||
# the sixth account | ||
- "rooch1unltrnl5j8s5avmlmn0vuxk3r9y243vd5560uw54kjplg0ecuyxq96yjjq" | ||
- "--checker-function" | ||
- "0x701c21bf1c8cd5af8c42983890d8ca55e7a820171b8e744c13f2d9998bf76cc3::tweet_fetcher::has_buffered_tweets" | ||
- "--runner-function" | ||
- "0x701c21bf1c8cd5af8c42983890d8ca55e7a820171b8e744c13f2d9998bf76cc3::tweet_fetcher::process_buffer_queue" | ||
- "--checker-interval" | ||
- "60" | ||
volumeMounts: | ||
- name: rooch-data | ||
mountPath: /root | ||
volumes: | ||
- name: rooch-data | ||
persistentVolumeClaim: | ||
claimName: mainnet-tweet-fetch-schedule-data |
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