- Notifications
You must be signed in to change notification settings - Fork50
rsyslog/rsyslog-docker
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
a playground for rsyslog docker tasks - nothing production yet
see alsohttps://github.com/rsyslog/rsyslog/projects/5
The docker effort currently uses multiple containers.
We intend to use alpine linux for the logging appliance container, becauseit is small, secure and relatively recently.
Right now, alpine misses some components that we need. So we build somepackages ourself. This will most probably be an ongoing activity aswe intend to always provide current versions of rsyslog inside the loggingapplication and it looks unlikely alpine will always follow exactly.
We use
https://github.com/rgerhards/docker-alpine-abuild/tree/master-rger
to build alpine packages.
This is based onhttps://github.com/andyshinn/docker-alpine-abuild andonly adds a few rsyslog-specific tweaks. Most importantly, it has ourown unofficial APK repository enabled (we need this if we need to buildbased on dependencies newer than there are in the official alpinerepositories).
Ourcustom packages are contained inside the
https://github.com/rgerhards/alpine-rsyslog-extras
repository.
Note:usr below stands for your user prefix.
To start from scratch, do
create usr/docker-alpine-abuild imageYou need to hand-edit it so that the initial build doesnot useyour custom repository.
create autotools-archive package via usr/alpine-linux-extras
- cd autotools-archive
- source ../runNote: there asre some errors in regard to git repository mount point.So far, I do not know where the stem from and how to get rid of them.Fortunately, they do not harm the build process. Ignore them (and sendus a PR if you know how to solve this cleanly).
copy package to your intended destination http server
rebuild usr/docker-alpine-abuild imagereset your hand-edited change, make it use the custom repository againThis is important as we need to have the dependencies for future builds.
rebuild the rest of the packages in usr/alpine-linux-extrasWe don't want to give the exact sequence here as it might change.In general, rsyslog should be built last. You may need to do multipleuploads to your repo when these dependencies are needed by packages.
Remember to periodically apply (security) updates to the dockerimages!