blob: 5a45fce568328c58316a73cf47d160e5183e4980 [file] [log] [blame]
David K. Bainbridge12463052018-01-19 09:26:09 -08001# 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 Barbarie3eab2bb2017-04-24 15:04:23 -040015# Build from latest stable load
16FROM opennms/horizon-core-web:19.0.1-1
17
18# Install supervisord
19RUN yum install -y python-setuptools
20RUN easy_install supervisor
21RUN mkdir -p /var/log/supervisor
Stephane Barbarie95507c42017-09-19 10:41:04 -040022RUN mkdir -p /var/log/opennms
23RUN mkdir -p /var/opennms/rrd
24RUN mkdir -p /var/opennms/reports
25COPY compose/opennms/env/supervisord.conf /etc/supervisor/supervisord.conf
Stephane Barbarie3eab2bb2017-04-24 15:04:23 -040026
27# Copy a new startup script to override the default entrypoint script
Stephane Barbarie95507c42017-09-19 10:41:04 -040028COPY compose/opennms/env/opennms_start.sh /
Stephane Barbarie3eab2bb2017-04-24 15:04:23 -040029RUN chmod 755 /opennms_start.sh
30
31ENTRYPOINT ["/usr/bin/supervisord"]