mirror of
https://github.com/php-win-ext/grpc.git
synced 2026-03-24 09:02:15 +01:00
1. Update cookies after all successful RPCs. Ensures that client adapts to changes in cluster configuration. 2. Reorganized client code to extract more snippets that could be copy-pasted. 3. Docker build now uses the same bazel build as outside code. Closes #35799 COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/35799 from eugeneo:tasks/ssa-example-bug 801205a532a93d1e598836ada3e4ef00e0c66558 PiperOrigin-RevId: 603805785
40 lines
1.2 KiB
Docker
40 lines
1.2 KiB
Docker
# Copyright 2023 The gRPC Authors
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
FROM python:3.9-slim-bookworm
|
|
|
|
RUN apt-get update -y && apt-get upgrade -y && apt-get install -y build-essential clang curl
|
|
|
|
WORKDIR /workdir
|
|
|
|
RUN ln -s /usr/bin/python3 /usr/bin/python
|
|
RUN mkdir /artifacts
|
|
|
|
COPY . .
|
|
RUN tools/bazel build //examples/cpp/csm:csm_greeter_client
|
|
RUN cp -rL /workdir/bazel-bin/examples/cpp/csm/csm_greeter_client /artifacts/
|
|
|
|
FROM python:3.9-slim-bookworm
|
|
|
|
RUN apt-get update \
|
|
&& apt-get -y upgrade \
|
|
&& apt-get -y autoremove \
|
|
&& apt-get install -y curl
|
|
|
|
COPY --from=0 /artifacts ./
|
|
|
|
ENV GRPC_EXPERIMENTAL_XDS_ENABLE_OVERRIDE_HOST=true
|
|
|
|
ENTRYPOINT ["/csm_greeter_client"]
|