github.com/dottorblaster/docker@v1.5.0/builder/parser/testfiles/cpuguy83-nagios/result (about)

     1  (from "cpuguy83/ubuntu")
     2  (env "NAGIOS_HOME" "/opt/nagios")
     3  (env "NAGIOS_USER" "nagios")
     4  (env "NAGIOS_GROUP" "nagios")
     5  (env "NAGIOS_CMDUSER" "nagios")
     6  (env "NAGIOS_CMDGROUP" "nagios")
     7  (env "NAGIOSADMIN_USER" "nagiosadmin")
     8  (env "NAGIOSADMIN_PASS" "nagios")
     9  (env "APACHE_RUN_USER" "nagios")
    10  (env "APACHE_RUN_GROUP" "nagios")
    11  (env "NAGIOS_TIMEZONE" "UTC")
    12  (run "sed -i 's/universe/universe multiverse/' /etc/apt/sources.list")
    13  (run "apt-get update && apt-get install -y iputils-ping netcat build-essential snmp snmpd snmp-mibs-downloader php5-cli apache2 libapache2-mod-php5 runit bc postfix bsd-mailx")
    14  (run "( egrep -i  \"^${NAGIOS_GROUP}\" /etc/group || groupadd $NAGIOS_GROUP ) && ( egrep -i \"^${NAGIOS_CMDGROUP}\" /etc/group || groupadd $NAGIOS_CMDGROUP )")
    15  (run "( id -u $NAGIOS_USER || useradd --system $NAGIOS_USER -g $NAGIOS_GROUP -d $NAGIOS_HOME ) && ( id -u $NAGIOS_CMDUSER || useradd --system -d $NAGIOS_HOME -g $NAGIOS_CMDGROUP $NAGIOS_CMDUSER )")
    16  (add "http://downloads.sourceforge.net/project/nagios/nagios-3.x/nagios-3.5.1/nagios-3.5.1.tar.gz?r=http%3A%2F%2Fwww.nagios.org%2Fdownload%2Fcore%2Fthanks%2F%3Ft%3D1398863696&ts=1398863718&use_mirror=superb-dca3" "/tmp/nagios.tar.gz")
    17  (run "cd /tmp && tar -zxvf nagios.tar.gz && cd nagios  && ./configure --prefix=${NAGIOS_HOME} --exec-prefix=${NAGIOS_HOME} --enable-event-broker --with-nagios-command-user=${NAGIOS_CMDUSER} --with-command-group=${NAGIOS_CMDGROUP} --with-nagios-user=${NAGIOS_USER} --with-nagios-group=${NAGIOS_GROUP} && make all && make install && make install-config && make install-commandmode && cp sample-config/httpd.conf /etc/apache2/conf.d/nagios.conf")
    18  (add "http://www.nagios-plugins.org/download/nagios-plugins-1.5.tar.gz" "/tmp/")
    19  (run "cd /tmp && tar -zxvf nagios-plugins-1.5.tar.gz && cd nagios-plugins-1.5 && ./configure --prefix=${NAGIOS_HOME} && make && make install")
    20  (run "sed -i.bak 's/.*\\=www\\-data//g' /etc/apache2/envvars")
    21  (run "export DOC_ROOT=\"DocumentRoot $(echo $NAGIOS_HOME/share)\"; sed -i \"s,DocumentRoot.*,$DOC_ROOT,\" /etc/apache2/sites-enabled/000-default")
    22  (run "ln -s ${NAGIOS_HOME}/bin/nagios /usr/local/bin/nagios && mkdir -p /usr/share/snmp/mibs && chmod 0755 /usr/share/snmp/mibs && touch /usr/share/snmp/mibs/.foo")
    23  (run "echo \"use_timezone=$NAGIOS_TIMEZONE\" >> ${NAGIOS_HOME}/etc/nagios.cfg && echo \"SetEnv TZ \\\"${NAGIOS_TIMEZONE}\\\"\" >> /etc/apache2/conf.d/nagios.conf")
    24  (run "mkdir -p ${NAGIOS_HOME}/etc/conf.d && mkdir -p ${NAGIOS_HOME}/etc/monitor && ln -s /usr/share/snmp/mibs ${NAGIOS_HOME}/libexec/mibs")
    25  (run "echo \"cfg_dir=${NAGIOS_HOME}/etc/conf.d\" >> ${NAGIOS_HOME}/etc/nagios.cfg")
    26  (run "echo \"cfg_dir=${NAGIOS_HOME}/etc/monitor\" >> ${NAGIOS_HOME}/etc/nagios.cfg")
    27  (run "download-mibs && echo \"mibs +ALL\" > /etc/snmp/snmp.conf")
    28  (run "sed -i 's,/bin/mail,/usr/bin/mail,' /opt/nagios/etc/objects/commands.cfg &&   sed -i 's,/usr/usr,/usr,' /opt/nagios/etc/objects/commands.cfg")
    29  (run "cp /etc/services /var/spool/postfix/etc/")
    30  (run "mkdir -p /etc/sv/nagios && mkdir -p /etc/sv/apache && rm -rf /etc/sv/getty-5 && mkdir -p /etc/sv/postfix")
    31  (add "nagios.init" "/etc/sv/nagios/run")
    32  (add "apache.init" "/etc/sv/apache/run")
    33  (add "postfix.init" "/etc/sv/postfix/run")
    34  (add "postfix.stop" "/etc/sv/postfix/finish")
    35  (add "start.sh" "/usr/local/bin/start_nagios")
    36  (env "APACHE_LOCK_DIR" "/var/run")
    37  (env "APACHE_LOG_DIR" "/var/log/apache2")
    38  (expose "80")
    39  (volume "/opt/nagios/var" "/opt/nagios/etc" "/opt/nagios/libexec" "/var/log/apache2" "/usr/share/snmp/mibs")
    40  (cmd "/usr/local/bin/start_nagios")