Skip to content

Commit 35541cb

Browse files
authored
Merge pull request #19 from isaqueprofeta/master
Added support for SNMP scans
2 parents 9f48545 + bb776f2 commit 35541cb

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

Dockerfile

+12-2
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,26 @@ ENV PHPSAML_VERSION 2.10.6
1010
ENV WEB_REPO /var/www/html
1111

1212
# Install required deb packages
13-
RUN apt-get update && apt-get -y upgrade && \
13+
RUN sed -i /etc/apt/sources.list -e 's/$/ non-free'/ && \
14+
apt-get update && apt-get -y upgrade && \
1415
rm /etc/apt/preferences.d/no-debian-php && \
15-
apt-get install -y php-pear php5-curl php5-mysql php5-json php5-gmp php5-mcrypt php5-ldap php5-gd php-net-socket libgmp-dev libmcrypt-dev libpng12-dev libfreetype6-dev libjpeg-dev libpng-dev libldap2-dev && \
16+
apt-get install -y libcurl4-gnutls-dev libgmp-dev libmcrypt-dev libpng12-dev libfreetype6-dev libjpeg-dev libpng-dev libldap2-dev libsnmp-dev snmp-mibs-downloader && \
1617
rm -rf /var/lib/apt/lists/*
1718

19+
# Install required packages and files required for snmp
20+
RUN curl -s ftp://ftp.cisco.com/pub/mibs/v2/CISCO-SMI.my -o /var/lib/mibs/ietf/CISCO-SMI.txt && \
21+
curl -s ftp://ftp.cisco.com/pub/mibs/v2/CISCO-TC.my -o /var/lib/mibs/ietf/CISCO-TC.txt && \
22+
curl -s ftp://ftp.cisco.com/pub/mibs/v2/CISCO-VTP-MIB.my -o /var/lib/mibs/ietf/CISCO-VTP-MIB.txt && \
23+
curl -s ftp://ftp.cisco.com/pub/mibs/v2/MPLS-VPN-MIB.my -o /var/lib/mibs/ietf/MPLS-VPN-MIB.txt
24+
1825
# Configure apache and required PHP modules
1926
RUN docker-php-ext-configure mysqli --with-mysqli=mysqlnd && \
2027
docker-php-ext-install mysqli && \
2128
docker-php-ext-configure gd --enable-gd-native-ttf --with-freetype-dir=/usr/include/freetype2 --with-png-dir=/usr/include --with-jpeg-dir=/usr/include && \
2229
docker-php-ext-install gd && \
30+
docker-php-ext-install curl && \
31+
docker-php-ext-install json && \
32+
docker-php-ext-install snmp && \
2333
docker-php-ext-install sockets && \
2434
docker-php-ext-install pdo_mysql && \
2535
docker-php-ext-install gettext && \

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Here, we store data on the host system under `/my_dir/phpipam` and use a specifi
2323
### Phpipam
2424

2525
```bash
26-
$ docker run -ti -d -p 80:80 -e MYSQL_ENV_MYSQL_PASSWORD=my-secret-pw--name ipam --link phpipam-mysql:mysql pierrecdn/phpipam
26+
$ docker run -ti -d -p 80:80 -e MYSQL_ENV_MYSQL_PASSWORD=my-secret-pw --name ipam --link phpipam-mysql:mysql pierrecdn/phpipam
2727
```
2828

2929
We are linking the two containers and expose the HTTP port.

0 commit comments

Comments
 (0)