File tree 3 files changed +73
-0
lines changed
tools/docker/containers/sflow-scripts
3 files changed +73
-0
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,29 @@ services:
94
94
- .:/srv/ixpmanager
95
95
- mrtg-data:/srv/mrtg
96
96
97
+ sflow-scripts :
98
+ build :
99
+ context : tools/docker/containers/sflow-scripts
100
+ depends_on :
101
+ - " mysql"
102
+ networks :
103
+ ixpmanager :
104
+ ipv4_address : 172.30.201.21
105
+ ipv6_address : fd99::21
106
+ aliases :
107
+ - ixpmanager-sflow-scripts
108
+ extra_hosts :
109
+ - " rs1-ipv4:172.30.201.30"
110
+ - " rs1-ipv4.ixpmanager:172.30.201.30"
111
+ - " rs1-ipv6:172.30.201.30"
112
+ - " rs1-ipv6.ixpmanager:172.30.201.30"
113
+ - " switch1:172.30.201.60"
114
+ - " switch2:172.30.201.61"
115
+ volumes :
116
+ - .:/srv/ixpmanager
117
+ stdin_open : true
118
+ tty : true
119
+
97
120
routinator :
98
121
build :
99
122
context : tools/docker/containers/routinator
Original file line number Diff line number Diff line change
1
+ FROM ubuntu:23.04
2
+
3
+ # RUN apt-get -y update && \
4
+ # apt-get -y upgrade && \
5
+ # apt-get -y autoremove --purge && \
6
+ # apt-get -y clean && \
7
+ # rm -rf /var/lib/apt/lists/* && \
8
+ # rm -rf /tmp/*
9
+
10
+ # JvB added for sflow testing
11
+ RUN apt-get -y update && apt-get install -y perl-base bash make gcc cpanminus libmysqlclient-dev
12
+
13
+ RUN cpanm install NetAddr::IP Config::General NetPacket::TCP
14
+
15
+ # Tests fail, force install
16
+ RUN cpanm install DBD::mysql --force
17
+
18
+ COPY ixpmanager.conf /usr/local/etc/ixpmanager.conf
19
+
20
+ # sflowtool for traditional workflow
21
+ RUN apt-get install -y git autoconf
22
+ RUN git clone https://github.com/sflow/sflowtool.git && \
23
+ cd sflowtool && \
24
+ ./boot.sh && \
25
+ ./configure && \
26
+ make && \
27
+ make install
28
+
29
+ WORKDIR /
30
+
31
+ ENTRYPOINT "/bin/bash"
32
+ CMD "/bin/bash"
Original file line number Diff line number Diff line change
1
+ <sql>
2
+ dbase_type = mysql
3
+ dbase_database = ixpmanager
4
+ dbase_username = ixpmanager
5
+ dbase_password = ixpmanager
6
+ dbase_hostname = ixpmanager-mysql
7
+ </sql>
8
+
9
+ <ixp>
10
+ sflowtool = /usr/bin/sflowtool
11
+ sflowtool_opts = -4 -p 6343 -l
12
+ sflow_rrdcached = 1
13
+ sflow_rrddir = /data/ixpmatrix
14
+
15
+ apikey = APIKeyFromIXPManager
16
+ apibaseurl = http://www.example.com/ixp/api/v4
17
+ macdbtype = configured
18
+ </ixp>
You can’t perform that action at this time.
0 commit comments