blob: 238d87730b2097d2ca826727f9b073ad2e25a17a [file] [log] [blame]
santanudebc32a2a2021-09-24 17:47:31 +05301# Original work Copyright 2017 AT&T Intellectual Property, Inc
2# Modified work Copyright 2021 Xoriant Corporation
santanudef22d9b52021-07-27 15:43:30 +05303#
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
santanudebc32a2a2021-09-24 17:47:31 +053021FROM ubuntu:focal
santanudef22d9b52021-07-27 15:43:30 +053022
23RUN mkdir /opt/ves
24
25RUN apt-get update && apt-get -y upgrade
santanudebc32a2a2021-09-24 17:47:31 +053026RUN apt-get install -y tzdata
santanudef22d9b52021-07-27 15:43:30 +053027# 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
santanudec82167d2021-10-21 17:42:34 +053032RUN apt-get install -y netcat
santanudebc32a2a2021-09-24 17:47:31 +053033RUN apt-get install -y default-jre zookeeperd \
34python3 python3-pip pkg-config git build-essential libpthread-stubs0-dev \
35libssl-dev libsasl2-dev liblz4-dev libz-dev
36RUN pip3 install kafka-python pyaml
santanudef22d9b52021-07-27 15:43:30 +053037
38RUN mkdir /opt/ves/barometer
39ADD barometer /opt/ves/barometer
40
41COPY start.sh /opt/ves/start.sh
42ENTRYPOINT ["/bin/bash", "/opt/ves/start.sh"]