blob: ce59204fef23dba4757b091f1a55d8d78e1cde1e [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 a kafka server for use by the OPFNV
17# VES framework.
18#
19# Status: this is a work in progress, under test.
20#
21
22FROM ubuntu:xenial
23
24RUN apt-get update && apt-get -y upgrade
25RUN apt-get install -y default-jre python-pip wget
26# Required for kafka
27RUN pip install kafka-python
28
29RUN mkdir /opt/ves
30
31RUN cd /opt/ves; \
32wget https://archive.apache.org/dist/kafka/0.11.0.2/kafka_2.11-0.11.0.2.tgz; \
33tar -xvzf kafka_2.11-0.11.0.2.tgz; \
34sed -i -- 's/#delete.topic.enable=true/delete.topic.enable=true/' \
35 kafka_2.11-0.11.0.2/config/server.properties
36
37COPY start.sh /opt/ves/start.sh
38ENTRYPOINT ["/bin/bash", "/opt/ves/start.sh"]