David K. Bainbridge | 10a7a7e | 2018-01-29 09:54:40 -0800 | [diff] [blame] | 1 | # Copyright 2018 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 | ARG TAG=latest |
| 16 | ARG REGISTRY= |
| 17 | ARG REPOSITORY= |
| 18 | |
| 19 | FROM ${REGISTRY}${REPOSITORY}voltha-protos:${TAG} as protos |
| 20 | FROM ${REGISTRY}${REPOSITORY}voltha-base:${TAG} |
| 21 | MAINTAINER Voltha Community <info@opennetworking.org> |
| 22 | |
| 23 | RUN apt-get update -y && apt-get install -y curl jq kafkacat make |
| 24 | RUN curl -sSL get.docker.io | CHANNEL=stable bash |
| 25 | RUN apt-get install -y docker-compose |
| 26 | |
| 27 | COPY ./ /work/ |
| 28 | WORKDIR /work |
| 29 | |
| 30 | # Copy in the generated GRPC proto code |
| 31 | COPY --from=protos /protos/voltha /work/voltha/protos |
| 32 | COPY --from=protos /protos/google/api /work/voltha/protos/third_party/google/api |
| 33 | |
| 34 | COPY --from=protos /protos/asfvolt16_olt /work/voltha/adapters/asfvolt16_olt/protos |
lcui | 8961f9f | 2018-07-13 18:17:17 -0700 | [diff] [blame] | 35 | COPY --from=protos /protos/cig_olt /work/voltha/protos |
David K. Bainbridge | 10a7a7e | 2018-01-29 09:54:40 -0800 | [diff] [blame] | 36 | |
| 37 | COPY --from=protos /protos/voltha /work/ofagent/protos |
| 38 | COPY --from=protos /protos/google/api /work/ofagent/protos/third_party/google/api |