blob: 33fa47d404817d3edc84983c3d9627f5e678067c [file] [log] [blame]
Scott Bakered938b82019-12-10 09:27:53 -08001# Copyright 2019-present the original author or authors.
2#
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
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
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
15FROM confluentinc/cp-kafkacat:4.1.2
16
17# version of voltha-protos to use in this container
18
19ARG VOLTHA_PROTOS_VERSION=unknown
20
21SHELL ["/bin/bash", "-o", "pipefail", "-c"]
22
23RUN apt-get update && \
Himanshu Bhandarib6578052020-07-17 09:36:20 +000024 apt-get install -y unzip=6.0-21+deb9u2 curl=7.52.1-5+deb9u10 git=1:2.11.0-3+deb9u7 libatomic1=6.3.0-18+deb9u1 ca-certificates=20161130+nmu1+deb9u1 python3.5=3.5.3-1+deb9u2 --no-install-recommends && \
Scott Bakered938b82019-12-10 09:27:53 -080025 apt-get clean && \
26 rm -rf /var/lib/apt/lists/*
27
28# Install protoc
29RUN PROTOC_VERSION="3.7.0" && \
30 PROTOC_SHA256SUM="a1b8ed22d6dc53c5b8680a6f1760a305b33ef471bece482e92728f00ba2a2969" && \
31 curl -L -o /tmp/protoc-$PROTOC_VERSION-linux-x86_64.zip https://github.com/google/protobuf/releases/download/v$PROTOC_VERSION/protoc-$PROTOC_VERSION-linux-x86_64.zip && \
32 echo "$PROTOC_SHA256SUM /tmp/protoc-$PROTOC_VERSION-linux-x86_64.zip" | sha256sum -c - && \
33 unzip /tmp/protoc-$PROTOC_VERSION-linux-x86_64.zip -d /tmp/protoc3 && \
34 mv /tmp/protoc3/bin/* /usr/local/bin/ && \
35 mv /tmp/protoc3/include/* /usr/local/include/ && \
36 chmod -R a+rx /usr/local/bin/* && \
37 chmod -R a+rX /usr/local/include/
38
39WORKDIR /opt/voltha-kafka-dump
40
41# Install voltha-protos
42RUN git clone -b $VOLTHA_PROTOS_VERSION --single-branch https://github.com/opencord/voltha-protos.git
43
Scott Bakerbb7edfd2019-12-13 12:18:56 -080044COPY callprotoc.py voltha-dump-events.sh ./