santanude | e1169f5 | 2021-05-13 20:11:38 +0530 | [diff] [blame] | 1 | # Copyright 2017-2018 AT&T Intellectual Property, Inc |
santanude | f22d9b5 | 2021-07-27 15:43:30 +0530 | [diff] [blame^] | 2 | # |
santanude | e1169f5 | 2021-05-13 20:11:38 +0530 | [diff] [blame] | 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 |
santanude | f22d9b5 | 2021-07-27 15:43:30 +0530 | [diff] [blame^] | 6 | # |
santanude | e1169f5 | 2021-05-13 20:11:38 +0530 | [diff] [blame] | 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
santanude | f22d9b5 | 2021-07-27 15:43:30 +0530 | [diff] [blame^] | 8 | # |
santanude | e1169f5 | 2021-05-13 20:11:38 +0530 | [diff] [blame] | 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 | # |
| 15 | # What this is: A Dockerfile for building an OPFNV VES Collector container image. |
| 16 | # |
| 17 | # Status: this is a work in progress, under test. |
| 18 | # |
| 19 | |
santanude | f22d9b5 | 2021-07-27 15:43:30 +0530 | [diff] [blame^] | 20 | FROM ubuntu:focal |
santanude | e1169f5 | 2021-05-13 20:11:38 +0530 | [diff] [blame] | 21 | |
santanude | f22d9b5 | 2021-07-27 15:43:30 +0530 | [diff] [blame^] | 22 | |
| 23 | RUN apt-get update && apt-get -y upgrade |
| 24 | RUN apt-get install -y git curl python3 python3-pip |
| 25 | RUN pip3 install requests jsonschema |
santanude | e1169f5 | 2021-05-13 20:11:38 +0530 | [diff] [blame] | 26 | |
| 27 | RUN mkdir /opt/ves |
| 28 | |
santanude | f22d9b5 | 2021-07-27 15:43:30 +0530 | [diff] [blame^] | 29 | # Clone VES Collector |
santanude | e1169f5 | 2021-05-13 20:11:38 +0530 | [diff] [blame] | 30 | RUN mkdir /opt/ves/evel-test-collector |
| 31 | ADD evel-test-collector /opt/ves/evel-test-collector |
| 32 | |
| 33 | COPY Dashboard.json /opt/ves/Dashboard.json |
| 34 | COPY start.sh /opt/ves/start.sh |
| 35 | ENTRYPOINT ["/bin/bash", "/opt/ves/start.sh"] |