santanude | bc32a2a | 2021-09-24 17:47:31 +0530 | [diff] [blame] | 1 | # Original work Copyright 2017 AT&T Intellectual Property, Inc |
| 2 | # Modified work Copyright 2021 Xoriant Corporation |
santanude | f22d9b5 | 2021-07-27 15:43:30 +0530 | [diff] [blame] | 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | # What this is: A Dockerfile for building an OPFNV VES Agent container image. |
| 17 | # |
| 18 | # Status: this is a work in progress, under test. |
| 19 | # |
| 20 | |
santanude | bc32a2a | 2021-09-24 17:47:31 +0530 | [diff] [blame] | 21 | FROM ubuntu:focal |
santanude | f22d9b5 | 2021-07-27 15:43:30 +0530 | [diff] [blame] | 22 | |
| 23 | RUN mkdir /opt/ves |
| 24 | |
| 25 | RUN apt-get update && apt-get -y upgrade |
santanude | bc32a2a | 2021-09-24 17:47:31 +0530 | [diff] [blame] | 26 | RUN apt-get install -y tzdata |
santanude | f22d9b5 | 2021-07-27 15:43:30 +0530 | [diff] [blame] | 27 | # Required for kafka: default-jre zookeeperd python-pip kafka-python |
| 28 | # Required for building librdkafka: git build-essential |
| 29 | # libpthread-stubs0-dev libssl-dev libsasl2-dev liblz4-dev |
| 30 | # (or libz-dev?) |
| 31 | # Required for building collectd: pkg-config |
santanude | c82167d | 2021-10-21 17:42:34 +0530 | [diff] [blame] | 32 | RUN apt-get install -y netcat |
santanude | bc32a2a | 2021-09-24 17:47:31 +0530 | [diff] [blame] | 33 | RUN apt-get install -y default-jre zookeeperd \ |
| 34 | python3 python3-pip pkg-config git build-essential libpthread-stubs0-dev \ |
| 35 | libssl-dev libsasl2-dev liblz4-dev libz-dev |
| 36 | RUN pip3 install kafka-python pyaml |
Arif Hussain | 7ca707c | 2021-12-02 15:20:40 +0530 | [diff] [blame] | 37 | RUN pip3 install --upgrade certifi |
santanude | f22d9b5 | 2021-07-27 15:43:30 +0530 | [diff] [blame] | 38 | |
| 39 | RUN mkdir /opt/ves/barometer |
| 40 | ADD barometer /opt/ves/barometer |
| 41 | |
| 42 | COPY start.sh /opt/ves/start.sh |
| 43 | ENTRYPOINT ["/bin/bash", "/opt/ves/start.sh"] |