Scott Baker | ed938b8 | 2019-12-10 09:27:53 -0800 | [diff] [blame] | 1 | # 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 |
|
| 15 | FROM confluentinc/cp-kafkacat:4.1.2
|
| 16 |
|
| 17 | # version of voltha-protos to use in this container
|
| 18 |
|
| 19 | ARG VOLTHA_PROTOS_VERSION=unknown
|
| 20 |
|
| 21 | SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
| 22 |
|
| 23 | RUN apt-get update && \
|
Scott Baker | bb7edfd | 2019-12-13 12:18:56 -0800 | [diff] [blame^] | 24 | apt-get install -y unzip=6.0-21+deb9u2 curl=7.52.1-5+deb9u9 git=1:2.11.0-3+deb9u4 libatomic1=6.3.0-18+deb9u1 ca-certificates=20161130+nmu1+deb9u1 python3.5=3.5.3-1+deb9u1 --no-install-recommends && \
|
Scott Baker | ed938b8 | 2019-12-10 09:27:53 -0800 | [diff] [blame] | 25 | apt-get clean && \
|
| 26 | rm -rf /var/lib/apt/lists/*
|
| 27 |
|
| 28 | # Install protoc
|
| 29 | RUN 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 |
|
| 39 | WORKDIR /opt/voltha-kafka-dump
|
| 40 |
|
| 41 | # Install voltha-protos
|
| 42 | RUN git clone -b $VOLTHA_PROTOS_VERSION --single-branch https://github.com/opencord/voltha-protos.git
|
| 43 |
|
Scott Baker | bb7edfd | 2019-12-13 12:18:56 -0800 | [diff] [blame^] | 44 | COPY callprotoc.py voltha-dump-events.sh ./
|