-
Notifications
You must be signed in to change notification settings - Fork 527
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10906 from MinaProtocol/upgrade-dune-ocamlformat_…
…DEVELOP Upgrade dune and ocamlformat + reformat files DEVELOP
- Loading branch information
Showing
525 changed files
with
6,483 additions
and
6,512 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Local access to testnet nodes via GraphQL | ||
|
||
# Prerequisites | ||
* Install [`gcloud` SDK](https://cloud.google.com/sdk/docs/install-sdk). | ||
* Install `kubectl` by running `gcloud components install kubectl`. | ||
* Log-in using the [`gcloud auth | ||
login`](https://cloud.google.com/sdk/gcloud/reference/auth/login) command | ||
with your O(1) Labs email. | ||
|
||
# Get the credentials for the region running the nodes | ||
|
||
Retrieve the credentials for the region that the nodes are running in, using | ||
[`gcloud container | ||
clusters`](https://cloud.google.com/sdk/gcloud/reference/container/clusters/get-credentials). | ||
For example: | ||
``` | ||
gcloud container clusters get-credentials coda-infra-central1 --region us-central1 --project o1labs-192920 | ||
``` | ||
|
||
# Discover nodes in the testnet's namespace | ||
|
||
If you do not have a particular node in mind, you can list all of the available | ||
nodes in a namespace using `kubectl get pods`. For example, to list the nodes | ||
on the berkeley QA net: | ||
``` | ||
kubectl -n berkeley get pods | ||
``` | ||
|
||
# Forward a local port to a node | ||
|
||
Use the `kubectl port-forward` command to forward a local port. For example, | ||
``` | ||
kubectl port-forward -n berkeley seed-1-XXXXXXXXX-XXXXX 4040:3085 | ||
``` | ||
will forward http://localhost:4040 to port 3085 on `seed-1-XXXXXXXXX-XXXXX` in | ||
the berkeley namespace. | ||
|
||
# Running a bash command on the node | ||
|
||
Use the `kubectl exec` command to run a command on the testnet node. For example, | ||
``` | ||
kubectl exec seed-1-XXXXXXXXX-XXXXX --namespace berkeley -c mina -- ls | ||
``` | ||
will run `ls` on `seed-1-XXXXXXXXX-XXXXX` in the berkeley namespace. |
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 +1 @@ | ||
(lang dune 2.7) | ||
(lang dune 3.1) |
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.