Skip to content

Conversation

@xZero707
Copy link

Hello.

I submit this pull request as a complete package, and I can adapt it accordingly to your preferences.

Included components:

  • Dockerfile
  • Github Actions workflow to build multi-platform image: Automatically (push, manual trigger, schedule)
  • Docker bake definition. Used by workflow, but can be also used locally: docker buildx bake --file hack/docker-bake.hcl
  • Dependabot configuration to mantain github actions dependencies and Dockerfile itself

By default, only ghcr.io is used as image registry, but that can be adjusted (eg. add offical docker registry).

This closes #26.

Happy New Year!

Copy link
Author

@xZero707 xZero707 Dec 29, 2025

Choose a reason for hiding this comment

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

Not required, but recommended optimisation as it ensures that the context sent to Docker is minimal. Depending on the repository, this might have a huge impact.

Copy link
Author

@xZero707 xZero707 Dec 29, 2025

Choose a reason for hiding this comment

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

Optional: CI

Copy link
Author

@xZero707 xZero707 Dec 29, 2025

Choose a reason for hiding this comment

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

Optional: CI

Copy link
Author

@xZero707 xZero707 Dec 29, 2025

Choose a reason for hiding this comment

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

Optional: CI

"linux/386") BBKCLI_ARCH=i386 ;; \
esac \
&& echo "Fetch: https://frontend.bredbandskollen.se/download/bbk_cli_linux_${BBKCLI_ARCH:-amd64}-${BBKCLI_VERSION}" \
&& wget -q https://frontend.bredbandskollen.se/download/bbk_cli_linux_${BBKCLI_ARCH:-amd64}-${BBKCLI_VERSION} -O /bbk_cli
Copy link
Author

@xZero707 xZero707 Dec 29, 2025

Choose a reason for hiding this comment

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

Uses prebuilt library. I can change it to build from source, if desired.
Is there maybe a hash file to validate binary integrity?


LABEL org.opencontainers.image.title="Bredbandskollen CLI" \
org.opencontainers.image.description="Bredbandskollen CLI, a bandwidth measurement tool" \
org.opencontainers.image.authors="The Swedish Internet Foundation <support@bredbandskollen.se>" \
Copy link
Author

Choose a reason for hiding this comment

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

I don't know what to put here. Please validate.

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.

Docker support

1 participant