Skip to content

Commit

Permalink
feat(framework) Add ClientApp Docker image (#3998)
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Steiner <[email protected]>
  • Loading branch information
Robert-Steiner authored Aug 20, 2024
1 parent 88a88aa commit 52f9437
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ jobs:
{ repository: "flwr/superlink", file_dir: "src/docker/superlink" },
{ repository: "flwr/supernode", file_dir: "src/docker/supernode" },
{ repository: "flwr/serverapp", file_dir: "src/docker/serverapp" },
{ repository: "flwr/superexec", file_dir: "src/docker/superexec" }
{ repository: "flwr/superexec", file_dir: "src/docker/superexec" },
{ repository: "flwr/clientapp", file_dir: "src/docker/clientapp" }
]
with:
namespace-repository: ${{ matrix.images.repository }}
Expand Down
7 changes: 7 additions & 0 deletions dev/build-docker-image-matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,13 @@ def tag_latest_ubuntu_with_flwr_version(image: BaseImage) -> List[str]:
tag_latest_ubuntu_with_flwr_version,
lambda image: image.distro.name == DistroName.UBUNTU,
)
# ubuntu images for each supported python version
+ generate_binary_images(
"clientapp",
base_images,
tag_latest_ubuntu_with_flwr_version,
lambda image: image.distro.name == DistroName.UBUNTU,
)
)

print(
Expand Down
20 changes: 20 additions & 0 deletions src/docker/clientapp/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2024 Flower Labs GmbH. All Rights Reserved.
#
# 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.
# ==============================================================================

ARG BASE_REPOSITORY=flwr/base
ARG BASE_IMAGE
FROM $BASE_REPOSITORY:$BASE_IMAGE

ENTRYPOINT ["flwr-clientapp"]

0 comments on commit 52f9437

Please sign in to comment.