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

Migrate cerberus to jsonschema #49

Merged

Conversation

Rahulbhatvedekar
Copy link
Contributor

While building Docker images for cli-onboard (repository link), we have observed an increase in both the build time and the size of the images.

Before:
akamai/onboard amd64: 251MB
akamai/onboard arm64: 300MB

After:
akamai/onboard amd64: 169MB
akamai/onboard arm64: 160MB

To address this, we plan to use pre-built wheels. However, we encountered the following issues:

  1. Missing Wheel for Cerberus 1.3.4:
    As noted in this GitHub issue, the wheel for Cerberus 1.3.4 is missing on PyPI, and there is no ongoing maintenance for Cerberus. It's suggested to switch to python-jsonschema instead.

  2. No Wheels for Pandas 2.1.2:
    The required wheels for Pandas 2.1.2 are also unavailable.

Solution:
This PR replaces Cerberus with jsonschema. Additionally, to utilize wheels, it's necessary to upgrade to Pandas 2.2.2.

@pwongcha pwongcha added the enhancement New feature or request label Sep 9, 2024
@pwongcha pwongcha self-assigned this Sep 9, 2024
@pwongcha
Copy link
Contributor

pwongcha commented Sep 9, 2024

Hi @Rahulbhatvedekar, Thank you for the PR.
Would you please increase the semantic version to 2.3.7?

There are 3 locations that need to be updated

  1. cli.json
  2. CHANGELOG.md
  3. akamai-onboard.py
    • line 52
    • line 115

@Rahulbhatvedekar
Copy link
Contributor Author

Version upgraded to 2.3.7.

@pwongcha pwongcha merged commit c21eaf3 into akamai:master Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

2 participants