2018-12-14 14:54:24 +00:00
|
|
|
## dn42-rpki-export.json-test
|
|
|
|
|
|
|
|
This repository is for testing purpose before deploying code into [master repository](https://git.dn42.us/netravnen/dn42-rpki-export.json)
|
2018-12-10 17:18:37 +00:00
|
|
|
|
|
|
|
### Requirements for running
|
|
|
|
|
|
|
|
1. Verify curl, git, bash, and php is installed.
|
2018-12-10 17:23:39 +00:00
|
|
|
2. `mkdir -p ~/dn42/`.
|
|
|
|
3. `cd ~/dn42/`.
|
2018-12-15 09:55:47 +00:00
|
|
|
4. `git clone https://git.dn42.us/netravnen/dn42-rpki-export.json-test.git`.
|
|
|
|
5. `git clone https://git.dn42.us/dn42/registry.git`.
|
2018-12-27 22:44:32 +00:00
|
|
|
6. `git -C registry/ remote rename origin upstream && git -C registry/ fetch --all`
|
|
|
|
7. Verify everything work by running `cd ~/dn42/dn42-rpki-export.json-test/ && ./update.sh`.
|
|
|
|
8. In $USER crontab file put `44 */3 * * * cd ~/dn42/dn42-rpki-export.json-test/ && ./update.sh`. Finetune time between runs to your liking.
|
2018-12-10 17:18:37 +00:00
|
|
|
|
2018-12-10 17:44:12 +00:00
|
|
|
NB: The roagen.php script is written with the paths to the dn42 registry folder being both git repositories reside in the same parent folder.
|
2018-12-19 12:28:05 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
$ tree -L 1 ~/dn42/
|
|
|
|
dn42
|
|
|
|
|-- registry
|
|
|
|
`-- rpki-export-test
|
|
|
|
```
|