You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uses https://github.com/serokell/xrefcheck to check for invalid
references on CI. Also, fix all the present invalid references to make
sure the new job passes.
Copy file name to clipboardexpand all lines: CODE_OF_CONDUCT.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ If a community member engages in unacceptable behavior, the community organizers
54
54
55
55
## 6. Reporting Guidelines
56
56
57
-
If you are subject to or witness unacceptable behavior, or have any other concerns, please notify the Mina community as soon as possible by emailing [email protected]. Please see the [Reporting Guidelines](/docs/reporting-guidelines.md). You can also contact an admin in the [Discord server](https://bit.ly/MinaDiscord).
57
+
If you are subject to or witness unacceptable behavior, or have any other concerns, please notify the Mina community as soon as possible by emailing [email protected]. You can also contact an admin in the [Discord server](https://bit.ly/MinaDiscord).
58
58
59
59
Additionally, community organizers are available to help community members engage with local law enforcement or to otherwise help those experiencing unacceptable behavior feel safe. In the context of in-person events, organizers will also provide escorts as desired by the person experiencing distress.
60
60
@@ -68,6 +68,6 @@ This Code of Conduct and its related procedures also applies to unacceptable beh
68
68
69
69
## 8. License and attribution
70
70
71
-
This Code of Conduct is adapted from the [Stumptown Syndicate](http://stumptownsyndicate.org) Code of Conduct under a [Creative Commons Attribution-ShareAlike license](http://creativecommons.org/licenses/by-sa/3.0/).
71
+
This Code of Conduct is adapted from the [Stumptown Syndicate](https://github.com/stumpsyn) Code of Conduct under a [Creative Commons Attribution-ShareAlike license](http://creativecommons.org/licenses/by-sa/3.0/).
72
72
73
73
Portions of text derived from the [Django Code of Conduct](https://www.djangoproject.com/conduct/) and the [Geek Feminism Anti-Harassment Policy](http://geekfeminism.wikia.com/wiki/Conference_anti-harassment/Policy).
Copy file name to clipboardexpand all lines: CONTRIBUTING.md
+16-14
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,9 @@ basic setup you need to get up and running to build and edit Coda.
10
10
Here's the summary if you want to contribute code:
11
11
12
12
1. Learn some OCaml. The [Real World OCaml](https://dev.realworldocaml.org/toc.html) book is good. Jane Street also has [some exercises](https://github.com/janestreet/learn-ocaml-workshop).
13
-
2. Learn how we use OCaml. We have [a style guide](https://github.com/CodaProtocol/coda/blob/master/docs/style_guide.md) that goes over the important things.
13
+
2. Learn how we use OCaml. We have [a style guide](https://docs.minaprotocol.com/en/developers/style-guide) that goes over the important things.
14
14
3. Fork and clone the repo, then set up your development environment. See the [developer README](README-dev.md) for details.
15
-
4. Find a good first issue. The best issues to start with are those tagged [`category-mentored`](https://github.com/CodaProtocol/coda/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Acategory-mentored). These have a detailed description on how to approach the issue and someone appointed to help people solve it. Once you're famliar with the codebase, [`category-quick-fix`](https://github.com/CodaProtocol/coda/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc++label%3Acategory-quick-fix+) is a good source of reasonably well-defined tasks.
15
+
4. Find a good first issue. The best issues to start with are those tagged [`easy`](https://github.com/MinaProtocol/mina/labels/easy).
16
16
5. Create a branch in your local clone and implement the solution.
17
17
6. Push the branch to your GitHub fork and create a pull request.
18
18
7. 🙌
@@ -21,7 +21,8 @@ Here's the summary if you want to contribute code:
21
21
22
22
Bug reports should include, at minimal, the `coda -version` output and
#### Customizing your dev environment for autocomplete/merlin
69
+
[dev-env]: #dev-env
71
70
72
71
- If you use vim, add this snippet in your vimrc to use merlin. (REMEMBER to change the HOME directory to match yours)
73
72
@@ -113,9 +112,6 @@ It also knows how to use Docker automatically.
113
112
These are the most important `make` targets:
114
113
115
114
-`build`: build everything
116
-
-`docker`: build the container
117
-
-`container`: restart the development container (or start it if it's not yet)
118
-
-`dev`: does `docker`, `container`, and `build`
119
115
-`test`: run the tests
120
116
-`libp2p_helper`: build the libp2p helper
121
117
-`web`: build the website, including the state explorer
@@ -136,29 +132,13 @@ the submodule's repository, it will be automatically re-pinned in CI.
136
132
137
133
If you add a new package in the Mina repository or as a submodule, you must do all of the following:
138
134
139
-
1. Update [`Dockerfile-toolchain`](/dockerfiles/Dockerfile-toolchain) as required; there are
140
-
comments that distinguish the treatment of submodules from other packages
141
-
2. Update [`scripts/macos-setup.sh`](scripts/macos-setup.sh) with the required commands for Darwin systems
142
-
3. Bust the circle-ci Darwin cache by incrementing the version number in the cache keys as required inside [`.circleci/config.yml.jinja`](.circleci/config.yml.jinja)
143
-
4. Commit your changes
144
-
5. Rebuild the container with `make docker-toolchain`.
145
-
6. Re-render the jinja template `make update-deps`
146
-
7. Commit your changes again
147
-
148
-
Rebuilding the docker toolchain will take a long time. Running circleci for
149
-
macos once you've busted the cache will also take a long time. However, only
150
-
you have to do the waiting and all other developers will get the fast path.
151
-
152
-
The automatic re-pinning of modified packages does take some CI time, so eventually,
153
-
you'll want to rebuild the Docker toolchain to save that time.
135
+
1. Update [`scripts/macos-setup.sh`](scripts/macos-setup.sh) with the required commands for Darwin systems
136
+
2. Update [`dockerfiles/stages/`](dockerfiles/stages) with the required packages
154
137
155
138
## Common dune tasks
156
139
157
140
To run unit tests for a single library, do `dune runtest lib/$LIBNAME`.
158
141
159
-
You can use `dune exec coda` to build and run `coda`. This is especially useful
160
-
in the form of `dune exec coda -- integration-tests $SOME_TEST`.
You can work around it with `rm -r src/_build/default/src/$OFFENDING_PATH` and a rebuild.
171
151
Here, the offending path is `src/lib/mina_base/mina_base.objs`.
172
152
173
-
## Docker Image Family Tree
174
-
175
-
Container Stages:
176
-
177
-
- Stage 0: Initial Image [ocaml/opam2:debian-9-ocaml-4.07](https://hub.docker.com/r/ocaml/opam2/) (opam community image, ~880MB)
178
-
- Stage 1: [coda toolchain](https://github.com/MinaProtocol/coda/blob/master/dockerfiles/Dockerfile-toolchain) (built by us, stored on docker hub, ~2GB compressed)
179
-
- Stage 2: [codabuilder](https://github.com/MinaProtocol/coda/blob/master/dockerfiles/Dockerfile) (built with `make codabuilder`, used with `make build`, ~2GB compressed)
180
-
181
153
## Overriding Genesis Constants
182
154
183
155
Mina genesis constants consists of constants for the consensus algorithm, sizes for various data structures like transaction pool, scan state, ledger etc.
Copy file name to clipboardexpand all lines: automation/README.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@
5
5
6
6
# Repository Purpose
7
7
8
-
This repository is designed to show an opinionated example on how to operate a network of Coda Daemons. It implements the entire node lifecycle using a modern Infrastructure as Code toolset. Community contributions are warmly encouraged, please see the [contribution guidelines](#to-do) for more details. The code is designed to be as modular as possible, allowing the end-user to "pick and choose" the parts they would like to incorporate into their own infrastructure stack.
8
+
This repository is designed to show an opinionated example on how to operate a network of Mina Daemons. It implements the entire node lifecycle using a modern Infrastructure as Code toolset. Community contributions are warmly encouraged, please see the [contribution guidelines](../CONTRIBUTING.md) for more details. The code is designed to be as modular as possible, allowing the end-user to "pick and choose" the parts they would like to incorporate into their own infrastructure stack.
9
9
10
10
If you have any issues setting up your testnet or have any other questions about this repository, join the public [Discord Server](https://discord.gg/ShKhA7J) and get help from the Coda community.
11
11
@@ -129,7 +129,7 @@ Next, you must create a new testnet in `terraform/testnets/`. For ease of use, y
129
129
- Name of testnet
130
130
- number of nodes to deploy
131
131
- Location of the Genesis Ledger
132
-
- Kubernetes [context](https://github.com/MinaProtocol/Mina-automation/commit/141db8821a133501d3d4ed9b739fcad1f9b88bef) for indicating which managed *k8s* cluster to deploy to
132
+
- Kubernetes context for indicating which managed *k8s* cluster to deploy to
133
133
134
134
### Manage *k8s* Cluster for Deployment
135
135
@@ -156,7 +156,7 @@ Once decided on a cluster/context to deploy, use the following command to retrie
156
156
157
157
#### Configure testnet module `k8s_context`
158
158
159
-
There is a testnet module variable which determines the *Kubernetes* context to deploy to. Reference the module's [variable definitions](https://github.com/MinaProtocol/mina/automation/blob/master/terraform/modules/kubernetes/testnet/variables.tf) for more details on how to properly configure.
159
+
There is a testnet module variable which determines the *Kubernetes* context to deploy to. Reference the module's [variable definitions](./terraform/modules/kubernetes/testnet/variables.tf) for more details on how to properly configure.
Metrics will be made available on port `8000` by default, or you can pass environment variable ```METRICS_PORT``` to override this. An example printout of the metrics you should expect to see can be found in [METRICS.md](https://github.com/CodaProtocol/coda-automation/blob/master/services/buildkite/prometheus-exporter/METRICS.md).
49
+
Metrics will be made available on port `8000` by default, or you can pass environment variable ```METRICS_PORT``` to override this. An example printout of the metrics you should expect to see can be found in [METRICS.md](METRICS.md).
Copy file name to clipboardexpand all lines: automation/services/echo/README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ This is a simple node service that listens for transactions to a specific addres
4
4
5
5
## Usage
6
6
7
-
First you'll need to have a `coda` daemon running on your machine. See the docs [here](https://codaprotocol.com/docs/getting-started/) for instructions on getting a node, then run the following command:
7
+
First you'll need to have a `mina` daemon running on your machine. See the docs [here](https://docs.minaprotocol.com/en/getting-started/) for instructions on getting a node, then run the following command:
8
8
9
9
```
10
10
$ mina daemon -rest-port 49370 -peer beta.o1test.net:8303
Copy file name to clipboardexpand all lines: automation/services/faucet/README.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,15 @@ The faucet service is a simple Discord bot that listens for requests for `CODA`
4
4
5
5
## Usage
6
6
7
-
First you'll need to have a `coda` daemon running on your machine. See the docs [here](https://codaprotocol.com/docs/getting-started/) for instructions on getting a node, then run the following command:
7
+
First you'll need to have a `coda` daemon running on your machine. See the docs [here](https://docs.minaprotocol.com/en/getting-started) for instructions on getting a node, then run the following command:
8
8
9
9
```
10
10
$ mina daemon -rest-port 49370 -peer beta.o1test.net:8303
11
11
```
12
12
13
13
This process must be running for this service to work. Open a new terminal session before you continue.
14
14
15
-
The service requires [Python 3.7]() to be installed on your system, and uses [pip]() as the package manager. To make things easy, a docker-compose environment has been provided that allows you to start the service simply. First, copy the example and update your environment variables:
15
+
The service requires Python 3.7 to be installed on your system, and uses pip as the package manager. To make things easy, a docker-compose environment has been provided that allows you to start the service simply. First, copy the example and update your environment variables:
16
16
17
17
```
18
18
cp docker-compose.yml.example docker-compose.yml
@@ -30,4 +30,4 @@ environment:
30
30
docker-compose up
31
31
```
32
32
33
-
**NOTE:** Host networking is enabled in the example docker-compose file, meaning that host ports will be shared with the container and the daemon can be accessed on `localhost`.
33
+
**NOTE:** Host networking is enabled in the example docker-compose file, meaning that host ports will be shared with the container and the daemon can be accessed on `localhost`.
See the [Configuration](#Configuration) section above for what should be in the `/etc/mina-sidecar.json` file.
97
+
See the [Config File](#config-file) section above for what should be in the `/etc/mina-sidecar.json` file.
97
98
98
99
To (optionally) enable the service to run on reboot you can use:
99
100
@@ -151,4 +152,4 @@ ERROR:root:HTTP Error 400: Bad Request
151
152
ERROR:root:Sleeping for 30s and trying again
152
153
```
153
154
154
-
It likely means you're shipping off data to the ingest pipeline without any block producer key configured on your Mina node - since your BP key is your identity we can't accept node data since we don't know who is submitting it!
155
+
It likely means you're shipping off data to the ingest pipeline without any block producer key configured on your Mina node - since your BP key is your identity we can't accept node data since we don't know who is submitting it!
Copy file name to clipboardexpand all lines: automation/terraform/modules/services/daemon/README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ This is a Terraform module that will deploy a mina Daemon container as a service
34
34
35
35
## Deployment Considerations
36
36
37
-
In order to deploy a "new" version of this module, you must ensure that you have rebuilt said container. The container build is a two-step process, with the base mina dockerfile being [here](https://github.com/MinaProtocol/mina/blob/develop/dockerfiles/Dockerfile-mina-daemon) and the more deployment-specific Dockerfile [here](https://github.com/MinaProtocol/mina-automation/blob/master/services/daemon/Dockerfile).
37
+
In order to deploy a "new" version of this module, you must ensure that you have rebuilt said container.
38
38
39
39
The manual commands to release each container are the following:
0 commit comments