This PR adds Debian-based images to project.
These images may be used when some plugin cannot be installed in Alpine due to unresolvable system library dependencies (like fluent-plugin-systemd problem).
Add the following build triggers on Docker Hub:
As the result, there should be exactly 8 build triggers totally.
On the same page specify debian in "Repository Links" section.
This is required to trigger automatic rebuild if parent image is updated.
As the result, there should be 2 repositories totally (alpine and debian).
Squashed and rebased on latest master.
@repeatedly would you be so kind to review?
Would be great to also update the main readme.md with an example of how to use the debian on-build image to add your own plugins. (Since there is already an example there for the alpine version.)
@ryanwalls ok, will do.
@tyranron Also, trying out this Dockerfile, it appears that Debian is installing Ruby 2.1.5 instead of 2.3.0. So you will probably need to update your gem paths.
Edit. Correction... would like to keep it at 2.3 since some plugins I'm using require it... but you'll have to install from the "testing" repo of debian.
@ryanwalls maybe just update base image from jessie to stretch?
Separating Dockerfile for each OS is not good approach?
@repeatedly not sure that understood well what exactly you are asking here.
Separate Dockerfiles for each OS is good approach when multiple environments are required. We're exactly in that case.
In this patch, each build shares Dockerfile.template.erb.
How about separating this file into Dockerfile.alpine.template.erb and Dockerfile.ubuntu.template.erb?
@repeatedly oh, understood.
Actually, no problems, if you'd like.
On my opinion and experience it's better to keep that stuff in one template because:
@ryanwalls README.md is updated with Debian example. Is it enough?
@tyranron Yep, that's great!
@ryanwalls what about moving to stretch instead jessie? What is your opinion on it?
@repeatedly please do not merge it yet. There is still one question (with ruby version) to be resolved. After it's done I'll rebase and squash on latest master and notify you that it can be merged.
@tyranron I'm good with moving to stretch. Looks like it was officially frozen 4 days ago. https://wiki.debian.org/DebianStretch
Add Debian based images
- add support for Debian based images tags
- remove deprecated Ubuntu based image
- refactor and improve Dockerfile (distro packages & ca-certificates upgrading)
- add test for Ruby version
@repeatedly done. Can be merged.
Building debian images done: https://hub.docker.com/r/fluent/fluentd/tags/