Skip to content

Update Docker base image and add multi-arch build workflow#64

Merged
abubnalitic-nbl merged 2 commits into
netboxlabs:mainfrom
mhajder:feature/dockerfile-publish
Jan 9, 2026
Merged

Update Docker base image and add multi-arch build workflow#64
abubnalitic-nbl merged 2 commits into
netboxlabs:mainfrom
mhajder:feature/dockerfile-publish

Conversation

@mhajder

@mhajder mhajder commented Jan 8, 2026

Copy link
Copy Markdown
Contributor

Upgrade the Docker base image to Python 3.14 on Alpine 3.23 for enhanced security and compatibility. Introduce a GitHub Actions workflow to automate the building and publishing of multi-architecture Docker images, improving tagging and distribution efficiency.

Need to be merged after #63 to support Python 3.14.

Updates the Docker base image to Python 3.14 on Alpine 3.23 for improved security and compatibility.
Adds OCI image labels for better container metadata and traceability.
Configures pip and uv to ignore root user warnings and sets an environment variable to control uv link mode.
Introduces a GitHub Actions workflow to automate building and publishing
multi-architecture Docker images on pushes, tags, and pull requests.
Enables consistent tagging, supports caching, and streamlines image
distribution via the GitHub Container Registry.
@mhajder

mhajder commented Jan 8, 2026

Copy link
Copy Markdown
Contributor Author

What do you think about adding matrix to test workflow with multiple Python versions? Something like this, because since we have ruff we can also add it do test workflow.
Maybe it will be also good idea to publish package in PyPi.

@abubnalitic-nbl

Copy link
Copy Markdown
Contributor

Good idea, @mhajder do you want to add the matrix test workflow to PR #63?

@mhajder

mhajder commented Jan 8, 2026

Copy link
Copy Markdown
Contributor Author

Good idea, @mhajder do you want to add the matrix test workflow to PR #63?

Probably it is best idea to make that change as separate PR after correctly configuring ruff. Because it will be easier to also add ruff test and matrix support in the same PR.

Just one question, what Python versions do you want to have in test matrix? Only 3.13 and 3.14 or all from 3.11 to 3.14? We can change minimal version in pyproject to 3.11 because every package is working correctly and also EOL for this version is 2027-10.

@abubnalitic-nbl

Copy link
Copy Markdown
Contributor

Happy to add 3.11 to 3.14 in

@abubnalitic-nbl abubnalitic-nbl merged commit a29f43b into netboxlabs:main Jan 9, 2026
2 checks passed
@mhajder mhajder deleted the feature/dockerfile-publish branch January 9, 2026 15:37
@mhajder

mhajder commented Jan 9, 2026

Copy link
Copy Markdown
Contributor Author

Thanks, but I see that image is probably private because I am getting "access denied" error.

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.

2 participants