David K. Bainbridge | 1246305 | 2018-01-19 09:26:09 -0800 | [diff] [blame^] | 1 | # Copyright 2018 the original author or authors. |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
Stephane Barbarie | 3eab2bb | 2017-04-24 15:04:23 -0400 | [diff] [blame] | 15 | # Build from latest stable load |
| 16 | FROM opennms/horizon-core-web:19.0.1-1 |
| 17 | |
| 18 | # Install supervisord |
| 19 | RUN yum install -y python-setuptools |
| 20 | RUN easy_install supervisor |
| 21 | RUN mkdir -p /var/log/supervisor |
Stephane Barbarie | 95507c4 | 2017-09-19 10:41:04 -0400 | [diff] [blame] | 22 | RUN mkdir -p /var/log/opennms |
| 23 | RUN mkdir -p /var/opennms/rrd |
| 24 | RUN mkdir -p /var/opennms/reports |
| 25 | COPY compose/opennms/env/supervisord.conf /etc/supervisor/supervisord.conf |
Stephane Barbarie | 3eab2bb | 2017-04-24 15:04:23 -0400 | [diff] [blame] | 26 | |
| 27 | # Copy a new startup script to override the default entrypoint script |
Stephane Barbarie | 95507c4 | 2017-09-19 10:41:04 -0400 | [diff] [blame] | 28 | COPY compose/opennms/env/opennms_start.sh / |
Stephane Barbarie | 3eab2bb | 2017-04-24 15:04:23 -0400 | [diff] [blame] | 29 | RUN chmod 755 /opennms_start.sh |
| 30 | |
| 31 | ENTRYPOINT ["/usr/bin/supervisord"] |