blob: 21e892525602a5096fd663d2f290ef71ecd64cbc [file] [log] [blame]
ac2550ead10512018-10-05 13:50:23 +02001###
2# ============LICENSE_START=======================================================
3# ONAP CLAMP
4# ================================================================================
5# Copyright (C) 2018 AT&T Intellectual Property. All rights
6# reserved.
7# ================================================================================
8# Licensed under the Apache License, Version 2.0 (the "License");
9# you may not use this file except in compliance with the License.
10# You may obtain a copy of the License at
11#
12# http://www.apache.org/licenses/LICENSE-2.0
13#
14# Unless required by applicable law or agreed to in writing, software
15# distributed under the License is distributed on an "AS IS" BASIS,
16# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17# See the License for the specific language governing permissions and
18# limitations under the License.
19# ============LICENSE_END============================================
20# ===================================================================
21#
22###
23
Krysiak Adamf7675ef2019-04-04 10:18:42 +020024FROM docker.elastic.co/kibana/kibana-oss:6.6.2
ac2550ead10512018-10-05 13:50:23 +020025
osgn422w54fea7f2019-07-31 16:52:54 +020026# Search Guard plugin
27RUN kibana-plugin install https://repo1.maven.org/maven2/com/floragunn/search-guard-kibana-plugin/6.6.2-18.4/search-guard-kibana-plugin-6.6.2-18.4.zip
28
ac2550ead10512018-10-05 13:50:23 +020029MAINTAINER "The Onap Team"
osgn422w54fea7f2019-07-31 16:52:54 +020030LABEL Description="Kibana image with saved objects loading and Search Guard support"
ac2550ead10512018-10-05 13:50:23 +020031USER root
32RUN yum install -y python-requests && yum clean all
33
34# You can share volume on this folder to restore
35# a default kibana configuration. Each subfolder will
36# be considered as a saved-object folder generated by,
37# the backup.py script bundled with the image.
38# Structure example :
39# saved-objects/
40# └── default
41# ├── config
42# │   └── config-6.1.3.json
43# ├── dashboard
44# │   └── dashboard-e6a82230-c190-11e8-a550-27f2e3138fee.json
45# ├── index-pattern
46# │   └── index-pattern-3ecb1c70-c190-11e8-a550-27f2e3138fee.json
47# ├── search
48# │   └── search-abdd0440-c190-11e8-a550-27f2e3138fee.json
49# └── visualization
50# ├── visualization-cb896270-c190-11e8-a550-27f2e3138fee.json
51# └── visualization-d837b120-c190-11e8-a550-27f2e3138fee.json
52
ac25505a23e6a2018-10-11 09:27:15 +020053RUN mkdir /saved-objects/ && chown kibana:kibana /saved-objects/
ac2550ead10512018-10-05 13:50:23 +020054
55USER kibana
56
57ADD saved-objects /saved-objects
58ADD startup.sh /usr/local/bin/startup.sh
59ADD restore.py /usr/local/bin/restore.py
60ADD backup.py /usr/local/bin/backup.py
61CMD /usr/local/bin/startup.sh