-
Notifications
You must be signed in to change notification settings - Fork 18
Add docker support (closes #26) #30
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional: CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional: CI
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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>" \ |
There was a problem hiding this comment.
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.
Hello.
I submit this pull request as a complete package, and I can adapt it accordingly to your preferences.
Included components:
docker buildx bake --file hack/docker-bake.hclDockerfileitselfBy default, only
ghcr.iois used as image registry, but that can be adjusted (eg. add offical docker registry).This closes #26.
Happy New Year!