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