Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
ed5072e
Add Docker fiels for xds example server and client.
kannanjgithub May 20, 2025
c8be933
Merge branch 'grpc:master' into master
kannanjgithub Jun 3, 2025
63997fd
Merge branch 'grpc:master' into master
kannanjgithub Jun 6, 2025
5140beb
Merge branch 'grpc:master' into master
kannanjgithub Jun 11, 2025
029db63
Merge branch 'grpc:master' into master
kannanjgithub Jun 13, 2025
f472436
Merge branch 'grpc:master' into master
kannanjgithub Jun 23, 2025
459208c
in-progress changes.
kannanjgithub Jun 23, 2025
6cddc61
in-progress changes.
kannanjgithub Jun 24, 2025
f038f4c
in-progress changes.
kannanjgithub Jun 25, 2025
ad9b1b3
in-progress changes.
kannanjgithub Jun 25, 2025
d92902d
in-progress changes.
kannanjgithub Jun 26, 2025
60fae37
in-progress changes.
kannanjgithub Jun 26, 2025
6f0a920
Revert "Add Docker fiels for xds example server and client."
kannanjgithub Jun 26, 2025
d816b8e
Changes
kannanjgithub Jun 27, 2025
c8eca59
whitespace changes nightmares
kannanjgithub Jun 27, 2025
4b92066
whitespace changes nightmares
kannanjgithub Jun 27, 2025
3867cc7
whitespace changes nightmares
kannanjgithub Jun 27, 2025
c4bfaa5
Replace clusters array with single cluster in ClusterResolverLB
kannanjgithub Jun 30, 2025
400b776
Review comments, excepting the child cluster type change handling.
kannanjgithub Jul 9, 2025
fa21404
nit
kannanjgithub Jul 9, 2025
084c51c
Handle cluster type changes by using Graceful switch load balancer as…
kannanjgithub Jul 11, 2025
f2bfa63
Fix test
kannanjgithub Jul 11, 2025
7abbc4a
Review comments.
kannanjgithub Jul 18, 2025
7c16de8
Revert indendation changes done by IDE in unchanged lines.
kannanjgithub Jul 18, 2025
f6afb63
A map for ClusterState is not required in ClusterResolverLoadBalancer…
kannanjgithub Jul 22, 2025
e2a7382
Reinstantiate delegate after shutdown.
kannanjgithub Jul 29, 2025
ecb6b03
Merge branch 'master' into a75-fixes2
kannanjgithub Jul 29, 2025
8c1199d
Fix problem after merge.
kannanjgithub Jul 29, 2025
24910d8
Fix problem after merge.
kannanjgithub Jul 29, 2025
6c75018
Fix style errors.
kannanjgithub Jul 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add Docker fiels for xds example server and client.
  • Loading branch information
kannanjgithub committed May 20, 2025
commit ed5072e1481c2f355e4f8b2e3eab92f1a7a7b7cd
47 changes: 47 additions & 0 deletions examples/example-xds/xds-client.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Copyright 2024 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.

#
# Stage 1: Build XDS client
#

FROM eclipse-temurin:11-jdk AS build

WORKDIR /grpc-java/examples
COPY . .

RUN cd example-xds && ../gradlew installDist -PskipCodegen=true -PskipAndroid=true

#
# Stage 2:
#
# - Copy only the necessary files to reduce Docker image size.
# - Have an ENTRYPOINT script which will launch the XDS client
# with the given parameters.
#

FROM eclipse-temurin:11-jre

WORKDIR /grpc-java/
COPY --from=build /grpc-java/examples/example-xds/build/install/example-xds/. .

# Intentionally after the COPY to force the update on each build.
# Update Ubuntu system packages:
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get -y autoremove \
&& rm -rf /var/lib/apt/lists/*

# Client
ENTRYPOINT ["bin/xds-hello-world-client"]
47 changes: 47 additions & 0 deletions examples/example-xds/xds-server.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Copyright 2024 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.

#
# Stage 1: Build XDS server
#

FROM eclipse-temurin:11-jdk AS build

WORKDIR /grpc-java/examples
COPY . .

RUN cd example-xds && ../gradlew installDist -PskipCodegen=true -PskipAndroid=true

#
# Stage 2:
#
# - Copy only the necessary files to reduce Docker image size.
# - Have an ENTRYPOINT script which will launch the XDS server
# with the given parameters.
#

FROM eclipse-temurin:11-jre

WORKDIR /grpc-java/
COPY --from=build /grpc-java/examples/example-xds/build/install/example-xds/. .

# Intentionally after the COPY to force the update on each build.
# Update Ubuntu system packages:
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get -y autoremove \
&& rm -rf /var/lib/apt/lists/*

# Server
ENTRYPOINT ["bin/xds-hello-world-server"]