https://github.com/smlng/docker-rpki-validator2
A Docker Setup for the RIPE RPKI Validator 2
https://github.com/smlng/docker-rpki-validator2
docker docker-compose rpki rtr
Last synced: 6 months ago
JSON representation
A Docker Setup for the RIPE RPKI Validator 2
- Host: GitHub
- URL: https://github.com/smlng/docker-rpki-validator2
- Owner: smlng
- License: mit
- Created: 2019-02-13T09:28:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-21T07:55:44.000Z (over 6 years ago)
- Last Synced: 2025-02-04T15:48:45.645Z (8 months ago)
- Topics: docker, docker-compose, rpki, rtr
- Language: Shell
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A Docker Setup for the RIPE RPKI Validator 2
## Prerequisites
To create and run the docker container you need a host system with
Docker and docker-compose installed. This may need superuser rights
e.g. `sudo`.You also need the source archive of the latest RPKI validator release
which can be found at the [RIPE] website, download the archive into
the root folder of this repository *before* creating the docker service.## Configure the RPKI-Validator
The RPKI Validator will download (rsync) ROAs from the 5 major RIRs, i.e.
AFRINIC, APNIC, ARIN, LACNIC, and RIPE, also refered to as trust anchors.
For downloading TRUST ANCHOR LOCATOR (TAL) files are required, the RPKI
Validator comes with 4 of them, however the TAL for ARIN is not included.
Thus, download the TAL file from [ARIN] and save it into the `conf/tal`
folder.Afterwards, check the RPKI validator configuration file, which is found in
`conf/rpki-validator.conf`. This will be mounted into the running container
and can be changed later, too. In case of memory errors increase the values
of `jvm.memory.*` in the conf file and restart the container afterwards.In general, there is no need to make any changes to the configuration(s).
**Note(1)**: do not change host/server or port settings in the `.properties`
files, this can be done in the `docker-compose.yml`. To do so, open the yml
file and change the values in section `ports`, format is `HOST_PORT:DOCKER_PORT`.
For instance to remap the web UI to `9090` change `8080:8080` to `9090:8080`.**Note(2)**: the HTTP port (default 8080) binds to localhost (::1) and is
thus not reachable from the outside by default. It is recommended to use
a HTTP proxy (apache or nginx) because there is no HTTPS support by the
RPKI validator itself.**Note(3)**: the service is set to restart always, i.e., on any errors or
restart of the host system. See section `restart` in `docker-compose.yml`
to change this if needed.## Run the RPKI-Validator in Docker
Using `docker-compose` this is easy, simply run `sudo docker-compose up -d`.
**Note**: the service is run as non-root, i.e., with user `rpki` (uid=323).
## Updating and Troubleshooting
The `docker-compose` command may require super user rights, i.e., run it
with `sudo` or as `root`.Changes to the configuration or new/added TAL files require a service restart.
To restart the service run `docker-compose restart`, if that does not help
run `docker-compose down && docker-compose up -d`.To update the container(s) or recreate them in case of errors:
1. Stop any running services: `docker-compose down`
2. Force rebuild of the containers: `docker-compose build`
3. Start the service: `docker-compose up -d`To just stop the container for a moment and start it again use commands
`docker-compose stop` and `docker-compose start`. This halts and
starts the container without deleting or recreating it.## Copyright and License
The `startup.sh` script is a modified version of the `docker-startup.sh`
found in https://github.com/RIPE-NCC/rpki-validator/tree/master/rpki-validator-app/docker
of the RIPE-NCC [GitHub] repository.For the [ARIN] TAL and the RPKI Validator (see [GitHub]) refer to the
respective licenses. For everything else in this repo the MIT License
applies, see LICENSE file for details.[ARIN]: https://www.arin.net/resources/rpki/tal.html
[RIPE]: https://www.ripe.net/manage-ips-and-asns/resource-management/certification/tools-and-resources
[GitHub]: https://github.com/RIPE-NCC/rpki-validator