| 1 |
# Copyright 2021 The gRPC 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 |
# Dockerfile for building //test/cpp/interop:xds_interop_client |
| 16 |
|
| 17 |
FROM phusion/baseimage:master@sha256:65ea10d5f757e5e86272625f8675d437dd83d8db64bdb429e2354d58f5462750 |
| 18 |
|
| 19 |
RUN apt-get update -y && \ |
| 20 |
apt-get install -y \ |
| 21 |
build-essential \ |
| 22 |
clang \ |
| 23 |
python3 \ |
| 24 |
python3-dev |
| 25 |
|
| 26 |
WORKDIR /workdir |
| 27 |
|
| 28 |
RUN ln -s /usr/bin/python3 /usr/bin/python |
| 29 |
RUN mkdir /artifacts |
| 30 |
|
| 31 |
COPY . . |
| 32 |
RUN tools/bazel build -c dbg test/cpp/interop:istio_echo_server |
| 33 |
RUN cp -rL /workdir/bazel-bin/test/cpp/interop/istio_echo_server /artifacts/ |
| 34 |
|
| 35 |
FROM phusion/baseimage:master@sha256:65ea10d5f757e5e86272625f8675d437dd83d8db64bdb429e2354d58f5462750 |
| 36 |
COPY --from=0 /artifacts ./ |
| 37 |
|
| 38 |
ENV GRPC_VERBOSITY="DEBUG" |
| 39 |
ENV GRPC_TRACE="xds_client,xds_resolver,xds_cluster_manager_lb,cds_lb,eds_lb,xds_cluster_resolver_lb,priority_lb,xds_cluster_impl_lb,weighted_target_lb,lrs_lb,xds_server_config_fetcher" |
| 40 |
|
| 41 |
ENTRYPOINT ["/istio_echo_server"] |