-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (25 loc) · 819 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (25 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# rfdrake/cibh
#
# BUILD: docker build -t rfdrake/cibh .
# RUN: docker run -d -p $PORT:8048 -v $CIBHRCFILE:/etc/cibhrc -v $DATA_LOCATION:/data rfdrake/cibh
FROM ubuntu:14.04
# need this for snmp-mibs-downloader
RUN sed -i 's/universe/universe multiverse/' /etc/apt/sources.list
RUN apt-get update && apt-get install -y \
snmp-mibs-downloader \
libsnmp-dev \
curl \
perl \
make \
rsyslog \
supervisor && \
apt-get build-dep -y libgd-gd2-perl
ADD vendor/crontab /etc/crontab
RUN touch /var/log/cron.log
ADD vendor/supervisord.conf /etc/supervisor/supervisord.conf
ADD . /cibh
RUN curl -L https://cpanmin.us | perl - App::cpanminus
RUN cd /cibh && cpanm --notest --installdeps .
EXPOSE 8048
CMD []
ENTRYPOINT ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]