Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(framework:skip) Switch to new base images #3483

Merged
merged 3 commits into from
May 23, 2024

Conversation

Robert-Steiner
Copy link
Member

@Robert-Steiner Robert-Steiner commented May 21, 2024

Issue

Description

  • Switches the current base image of SuperLink, SuperNode and ServerApp to the new base image.
  • Adds a Python script that creates the matrix for building the base and binary images. Using the plain GitHub matrix feature didn't work well when specifying the image tags.
  • Combines the Base, SuperLink, SuperNode and ServerApp workflows in to a single workflow file.
  • Sets pull to true to ensure that always the latest pushed image is pulled.
  • Test CI run: https://github.com/adap/flower/actions/runs/9189082862

Builds the following images:

Base

  • python 3.8, ubuntu22.04
  • python 3.9, ubuntu22.04
  • python 3.10, ubuntu22.04
  • python 3.11, ubuntu22.04
  • python 3.11, alpine3.19

SuperLink

  • python 3.11, ubuntu22.04
  • python 3.11, alpine3.19

SuperNode

  • python 3.8, ubuntu22.04
  • python 3.9, ubuntu22.04
  • python 3.10, ubuntu22.04
  • python 3.11, ubuntu22.04

ServerApp

  • python 3.8, ubuntu22.04
  • python 3.9, ubuntu22.04
  • python 3.10, ubuntu22.04
  • python 3.11, ubuntu22.04

Related issues/PRs

Proposal

Explanation

Checklist

  • Implement proposed change
  • Write tests
  • Update documentation
  • Make CI checks pass
  • Ping maintainers on Slack (channel #contributions)

Any other comments?

@Robert-Steiner Robert-Steiner self-assigned this May 21, 2024
@Robert-Steiner Robert-Steiner changed the title ci(framework) Switch to new base images ci(framework:skip) Switch to new base images May 22, 2024
Signed-off-by: Robert Steiner <robert@flower.ai>
@Robert-Steiner Robert-Steiner marked this pull request as ready for review May 23, 2024 09:07
Moep90
Moep90 previously approved these changes May 23, 2024
Comment on lines 173 to 201
# {
# "base": {
# "images": [
# {
# "distro": {
# "name": "ubuntu",
# "version": "22.04"
# },
# "python_version": "3.8",
# "namespace_repository": "flwr/base",
# "file_dir": "src/docker/base/ubuntu",
# "tag": "1.8.0-py3.8-ubuntu22.04",
# "flwr_version": "1.8.0"
# },
# ...
# ]
# },
# "binary": {
# "images": [
# {
# "namespace_repository": "flwr/superlink",
# "file_dir": "src/docker/superlink",
# "base_image": "1.8.0-py3.11-alpine3.19",
# "tags": "1.8.0-py3.11-alpine3.19\n1.8.0"
# },
# ...
# ]
# }
# }
Copy link
Member

@tanertopal tanertopal May 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need this here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so. We can remove it

Signed-off-by: Robert Steiner <robert@flower.ai>
Copy link
Member

@tanertopal tanertopal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tanertopal tanertopal enabled auto-merge (squash) May 23, 2024 20:48
@tanertopal tanertopal merged commit 0c88e52 into main May 23, 2024
29 checks passed
@tanertopal tanertopal deleted the chore/switch-binary-images branch May 23, 2024 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants