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

Add CI action for uploading Docker image for wheels #3268

Open
wants to merge 12 commits into
base: master
Choose a base branch
from

Conversation

JCGoran
Copy link
Collaborator

@JCGoran JCGoran commented Dec 4, 2024

The images on https://hub.docker.com/r/neuronsimulator/neuron_wheel/tags are a bit inconsistent; we should use one tag for all platforms (since Docker picks the right one based on the architecture when pulling, no need to have separate tags). They are also a bit of a pain to update: someone (with push permissions!) needs to build the image on their own machine, for both x86_64 and aarch64, tag them correctly, and then upload them to DockerHub. This whole process is a bit error-prone and can take a while.

This CI introduces a manual action that can be run (ran?) to automatically build the neuronsimulator/neuron_wheel image for both x86 and aarch64, and optionally pushes it to DockerHub (by setting upload to true).

Note that DOCKERHUB_USERNAME needs to be set as an env variable for this repo, and DOCKERHUB_TOKEN needs to be set as an env secret for pushing to work.

Once this is merged, and this action is ran at least once, I can make another PR which introduces the necessary changes to use a unified neuronsimulator/neuron_wheel:latest image everywhere.

EDIT: after spending some time fiddling with it, docker buildx is a bit cumbersome to use locally, so in the interest of simplicity, the tags should be x86_64 and aarch64 (to match the outputs of uname -m).

@JCGoran JCGoran force-pushed the jelic/ci_docker_base_image branch from 8f6ba67 to 0e6433d Compare December 4, 2024 10:51
@JCGoran JCGoran requested review from nrnhines and heerener December 4, 2024 11:08
@JCGoran JCGoran marked this pull request as ready for review December 4, 2024 11:11
@JCGoran JCGoran mentioned this pull request Dec 4, 2024
2 tasks
Copy link

codecov bot commented Dec 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.05%. Comparing base (d24a901) to head (c5429d6).
Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3268      +/-   ##
==========================================
- Coverage   67.07%   67.05%   -0.02%     
==========================================
  Files         571      571              
  Lines      111113   111080      -33     
==========================================
- Hits        74531    74489      -42     
- Misses      36582    36591       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bbpbuildbot

This comment has been minimized.

Copy link

✔️ 0e6433d -> Azure artifacts URL

@bbpbuildbot

This comment has been minimized.

Copy link

✔️ 1904ec2 -> Azure artifacts URL

Copy link

✔️ dcc62f8 -> Azure artifacts URL

Copy link

✔️ 0e3c6a7 -> Azure artifacts URL

@bbpbuildbot

This comment has been minimized.

Copy link

✔️ de6cb90 -> Azure artifacts URL

@bbpbuildbot

This comment has been minimized.

@JCGoran
Copy link
Collaborator Author

JCGoran commented Dec 9, 2024

It turns out that the action is very slow to build the aarch64 image since it's using emulation instead of a native runner, so I for now it's easier and faster to just build things locally, and push to dockerhub/GHCR. Native Linux arm runners are on the way, but only in early 2025, so I'll leave this unmerged for now.

Remove Python 3.13t (the free-threaded build) as we do not support it
yet.
Copy link

sonarcloud bot commented Dec 10, 2024

Copy link

✔️ c5429d6 -> Azure artifacts URL

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