-
Notifications
You must be signed in to change notification settings - Fork 137
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 Docker Container #471
Add Docker Container #471
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.
how about pushing the docker image to the new github package repo and switching to using github actions for building the whole thing while at it ?
running the automated tests with the docker image would be a good thing to veryfy that it is working ...
|
||
perl: |
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 testing on different perl versions anymore ... a particular reason for this ?
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.
Older perls were failing in Travis with an error, like this one: https://travis-ci.com/ccremer/znapzend/jobs/285685206. I cannot decipher that.
Most likely the reason is a misconfiguration in travis (config).
Switching to Github Actions is also my preferred solution, it's faster, better documented and more consistent. I wasn't sure how attached you were to Travis. I have tried Github package repo once, I recall some limitation but I need to check what that was... let me try again.
We could introduce another build stage after the runtime stage ( |
Better integration, better documented
Now I know the limitation:
It's not publicly available without a login :( Also, apparently the downloads costs: https://github.com/settings/billing. So I still recommend Docker Hub. I have now migrated to GitHub actions and also included the tests in the Docker build. Re-added the matrix build with the different Perl versions, but I know that 5.16 definitely fails, so I left that out. I'm also not sure anymore if Coveralls becomes broken, I had to create a |
cool! |
guess I'll have to merge to see if it wall works :) give me a few days |
Hello! Thanks for this awesome ZFS management tool! I would like to run znapzend packaged in a (docker) container support
What this PR does
It adds
The
master
container tag on Docker Hub is similar tolatest
, but I often findlatest
ambiguous, as it's never clear whether "latest" means "latest (dev) build" or "latest stable", or whatever. Withmaster
it's clear that it corresponds to the master branch.Please let me know if there are more dependencies (other than ZFS, mbuffer) needed in the container runtime image.
Why this PR is needed
docker run ...
and the tool is installed in seconds.Currently, the container needs to run privileged. I haven't invested the time to investigate why or if it can run unprivileged. The configuration store in ZFS properties comes handy, it removes the need to mount a config file.
What else needs to be done