Skip to content

Commit

Permalink
Merge pull request #14268 from MinaProtocol/feature/update-replayer-c…
Browse files Browse the repository at this point in the history
…ron-image

Update berkeley replayer cron image
  • Loading branch information
deepthiskumar authored Nov 3, 2023
2 parents 2d815c9 + 2acc5c6 commit b62342e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helm/cron_jobs/berkeley-replayer-cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ spec:
echo "deb https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list;
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add - ;
apt-get update && apt-get install -y google-cloud-cli ;
ARCHIVE_DUMP_URI=$(gsutil ls gs://mina-archive-dumps/berkeley-archive-dump-*.sql.tar.gz | sort -r | head -n 1);
ARCHIVE_DUMP_URI=$(gsutil -o Credentials:gs_service_key_file=/gcloud/keyfile.json ls gs://mina-archive-dumps/berkeley-archive-dump-*.sql.tar.gz | sort -r | head -n 1);
ARCHIVE_DUMP=$(basename $ARCHIVE_DUMP_URI);
ARCHIVE_SQL=$(basename $ARCHIVE_DUMP_URI .tar.gz);
echo "Getting archive dump" $ARCHIVE_DUMP_URI;
gsutil -o Credentials:gs_service_key_file=/gcloud/keyfile.json cp $ARCHIVE_DUMP_URI . ;
MOST_RECENT_CHECKPOINT_URI=$(gsutil ls gs://berkeley-replayer-checkpoints/berkeley-replayer-checkpoint-*.json | sort -r | head -n 1);
MOST_RECENT_CHECKPOINT_URI=$(gsutil -o Credentials:gs_service_key_file=/gcloud/keyfile.json ls gs://berkeley-replayer-checkpoints/berkeley-replayer-checkpoint-*.json | sort -r | head -n 1);
MOST_RECENT_CHECKPOINT=$(basename $MOST_RECENT_CHECKPOINT_URI);
echo "Getting replayer checkpoint file" $MOST_RECENT_CHECKPOINT;
gsutil -o Credentials:gs_service_key_file=/gcloud/keyfile.json cp $MOST_RECENT_CHECKPOINT_URI . ;
Expand Down Expand Up @@ -77,7 +77,7 @@ spec:
env:
- name: GCLOUD_KEYFILE
value: /gcloud/keyfile.json
image: gcr.io/o1labs-192920/mina-rosetta:2.0.0rampup2-feature-replayer-check-snark-ledger-hash-berkeley-c6da972-bullseye
image: gcr.io/o1labs-192920/mina-rosetta:2.0.0rampup4-14047c5-bullseye
imagePullPolicy: IfNotPresent
name: berkeley-replayer-cronjob
resources:
Expand Down

0 comments on commit b62342e

Please sign in to comment.