-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSRxfile
22 lines (16 loc) · 799 Bytes
/
SRxfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
# SQUAB(Scalable QUagga-based Automated configuration on Bgp)
#
# software router extension "BGP-SRx" image
FROM centos:7
RUN yum install -y telnet expect net-tools tcpdump
COPY srx_install.sh /home
RUN /home/srx_install.sh zip
ENV PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/NIST-BGP-SRx-master/local-6.1.4/bin:/NIST-BGP-SRx-master/local-6.1.4/sbin"
COPY gen_zebra_bgpd_sec_conf.sh /home
COPY get_rtable.sh /home
COPY set_tcpdump.sh /home
RUN mkdir /var/lib/bgpsec-keys
RUN sed -e "s#/NIST-BGP-SRx-master/local-6.1.4/opt/bgp-srx-examples/bgpsec-keys#/var/lib/bgpsec-keys#g" /NIST-BGP-SRx-master/local-6.1.4/etc/srxcryptoapi.conf > /tmp/srxcryptoapi.conf
RUN cp /tmp/srxcryptoapi.conf /NIST-BGP-SRx-master/local-6.1.4/etc/srxcryptoapi.conf
COPY cert_setting.sh /home