Stephane Barbarie | 3eab2bb | 2017-04-24 15:04:23 -0400 | [diff] [blame] | 1 | # Build from latest stable load |
| 2 | FROM opennms/horizon-core-web:19.0.1-1 |
| 3 | |
| 4 | # Install supervisord |
| 5 | RUN yum install -y python-setuptools |
| 6 | RUN easy_install supervisor |
| 7 | RUN mkdir -p /var/log/supervisor |
Stephane Barbarie | 95507c4 | 2017-09-19 10:41:04 -0400 | [diff] [blame] | 8 | RUN mkdir -p /var/log/opennms |
| 9 | RUN mkdir -p /var/opennms/rrd |
| 10 | RUN mkdir -p /var/opennms/reports |
| 11 | COPY compose/opennms/env/supervisord.conf /etc/supervisor/supervisord.conf |
Stephane Barbarie | 3eab2bb | 2017-04-24 15:04:23 -0400 | [diff] [blame] | 12 | |
| 13 | # Copy a new startup script to override the default entrypoint script |
Stephane Barbarie | 95507c4 | 2017-09-19 10:41:04 -0400 | [diff] [blame] | 14 | COPY compose/opennms/env/opennms_start.sh / |
Stephane Barbarie | 3eab2bb | 2017-04-24 15:04:23 -0400 | [diff] [blame] | 15 | RUN chmod 755 /opennms_start.sh |
| 16 | |
| 17 | ENTRYPOINT ["/usr/bin/supervisord"] |