-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
FROM ubuntu:23.04 | ||
|
||
# RUN apt-get -y update && \ | ||
# apt-get -y upgrade && \ | ||
# apt-get -y autoremove --purge && \ | ||
# apt-get -y clean && \ | ||
# rm -rf /var/lib/apt/lists/* && \ | ||
# rm -rf /tmp/* | ||
|
||
# JvB added for sflow testing | ||
RUN apt-get -y update && apt-get install -y perl-base bash make gcc cpanminus libmysqlclient-dev | ||
|
||
RUN cpanm install NetAddr::IP Config::General NetPacket::TCP | ||
|
||
# Tests fail, force install | ||
RUN cpanm install DBD::mysql --force | ||
|
||
COPY ixpmanager.conf /usr/local/etc/ixpmanager.conf | ||
|
||
# sflowtool for traditional workflow | ||
RUN apt-get install -y git autoconf | ||
RUN git clone https://github.com/sflow/sflowtool.git && \ | ||
cd sflowtool && \ | ||
./boot.sh && \ | ||
./configure && \ | ||
make && \ | ||
make install | ||
|
||
WORKDIR / | ||
|
||
ENTRYPOINT "/bin/bash" | ||
CMD "/bin/bash" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<sql> | ||
dbase_type = mysql | ||
dbase_database = ixpmanager | ||
dbase_username = ixpmanager | ||
dbase_password = ixpmanager | ||
dbase_hostname = ixpmanager-mysql | ||
</sql> | ||
|
||
<ixp> | ||
sflowtool = /usr/bin/sflowtool | ||
sflowtool_opts = -4 -p 6343 -l | ||
sflow_rrdcached = 1 | ||
sflow_rrddir = /data/ixpmatrix | ||
|
||
apikey = APIKeyFromIXPManager | ||
apibaseurl = http://www.example.com/ixp/api/v4 | ||
macdbtype = configured | ||
</ixp> |