ac2550 | ead1051 | 2018-10-05 13:50:23 +0200 | [diff] [blame] | 1 | ### |
| 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 Adam | f7675ef | 2019-04-04 10:18:42 +0200 | [diff] [blame] | 24 | FROM docker.elastic.co/kibana/kibana-oss:6.6.2 |
ac2550 | ead1051 | 2018-10-05 13:50:23 +0200 | [diff] [blame] | 25 | |
| 26 | MAINTAINER "The Onap Team" |
| 27 | LABEL Description="Kibana image with saved objects loading" |
| 28 | USER root |
| 29 | RUN yum install -y python-requests && yum clean all |
| 30 | |
| 31 | # You can share volume on this folder to restore |
| 32 | # a default kibana configuration. Each subfolder will |
| 33 | # be considered as a saved-object folder generated by, |
| 34 | # the backup.py script bundled with the image. |
| 35 | # Structure example : |
| 36 | # saved-objects/ |
| 37 | # └── default |
| 38 | # ├── config |
| 39 | # │ └── config-6.1.3.json |
| 40 | # ├── dashboard |
| 41 | # │ └── dashboard-e6a82230-c190-11e8-a550-27f2e3138fee.json |
| 42 | # ├── index-pattern |
| 43 | # │ └── index-pattern-3ecb1c70-c190-11e8-a550-27f2e3138fee.json |
| 44 | # ├── search |
| 45 | # │ └── search-abdd0440-c190-11e8-a550-27f2e3138fee.json |
| 46 | # └── visualization |
| 47 | # ├── visualization-cb896270-c190-11e8-a550-27f2e3138fee.json |
| 48 | # └── visualization-d837b120-c190-11e8-a550-27f2e3138fee.json |
| 49 | |
ac2550 | 5a23e6a | 2018-10-11 09:27:15 +0200 | [diff] [blame] | 50 | RUN mkdir /saved-objects/ && chown kibana:kibana /saved-objects/ |
ac2550 | ead1051 | 2018-10-05 13:50:23 +0200 | [diff] [blame] | 51 | |
| 52 | USER kibana |
| 53 | |
| 54 | ADD saved-objects /saved-objects |
| 55 | ADD startup.sh /usr/local/bin/startup.sh |
| 56 | ADD restore.py /usr/local/bin/restore.py |
| 57 | ADD backup.py /usr/local/bin/backup.py |
| 58 | CMD /usr/local/bin/startup.sh |