Skip to content

Commit

Permalink
Add routinator to docker
Browse files Browse the repository at this point in the history
  • Loading branch information
barryo committed Jan 23, 2019
1 parent 020b729 commit 098966a
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .env.docker
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,13 @@ IXP_FE_BETA_CORE_BUNDLES=true
# For PHP xdebug, put in the IP address of your host
# DOCKER_XDEBUG_CONFIG_REMOTE_HOST=192.0.2.67

#######################################################################################
# Utility paths

# See: https://docs.ixpmanager.org/features/irrdb/
IXP_IRRDB_BGPQ3_PATH=/usr/bin/bgpq3

IXP_RPKI_RTR_HOST=172.30.201.31
IXP_RPKI_RTR_PORT=3323


2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ DOCTRINE_CACHE_NAMESPACE=IXPMANAGERNAMESPACE
# See: https://docs.ixpmanager.org/features/irrdb/
IXP_IRRDB_BGPQ3_PATH=/usr/bin/bgpq3

IXP_RPKI_RTR_HOST=172.30.201.31
IXP_RPKI_RTR_PORT=3323


#########################################################################################
Expand Down
5 changes: 5 additions & 0 deletions config/ixp.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,5 +124,10 @@

],

'rpki' => [
'host' => env( 'IXP_RPKI_RTR_HOST', '127.0.0.1' ),
'port' => env( 'IXP_RPKI_RTR_PORT', '3323' ),
],


];
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,22 @@ services:
- .:/srv/ixpmanager
- mrtg-data:/srv/mrtg

routinator:
build:
context: tools/docker/containers/routinator
networks:
ixpmanager:
ipv4_address: 172.30.201.31
ipv6_address: fd99::31

rs1:
build:
context: tools/docker/containers/rs1
ports:
- 8881:80
depends_on:
- "www"
- "routinator"
networks:
ixpmanager:
ipv4_address: 172.30.201.30
Expand Down
2 changes: 1 addition & 1 deletion resources/views/api/v4/router/server/bird2/rpki.foil.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

roa<?= $t->router->protocol() ?> { table t_roa; };

remote "127.0.0.1" port 3323;
remote "<?= config( 'ixp.rpki.host' ) ?>" port <?= config( 'ixp.rpki.port' ) ?>;

retry keep 5;
refresh keep 30;
Expand Down
11 changes: 11 additions & 0 deletions tools/docker/containers/routinator/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM nlnetlabs/routinator:latest

VOLUME /root/.rpki-cache


ADD https://www.arin.net/resources/rpki/arin-rfc7730.tal /root/.rpki-cache/tals/arin.tal

WORKDIR /

EXPOSE 3323/tcp
CMD ["routinator", "rtrd", "-a","-l","0.0.0.0:3323"]

0 comments on commit 098966a

Please sign in to comment.