dns-collector merge requestshttps://gitlab.nic.cz/labs/dns-collector/-/merge_requests2018-06-21T10:02:15+02:00https://gitlab.nic.cz/labs/dns-collector/-/merge_requests/2CI: build packages for Ubuntu, Debian & Fedora2018-06-21T10:02:15+02:00Jiří Helebrantjiri.helebrant@nic.czCI: build packages for Ubuntu, Debian & FedoraChanges only in CI configuration (and a small note in Readme):
- compiles dns-collector in CI on every push and runs some basic tests (just checks that `--help` and `--dumpconfig` work for now, i'm not sure if it's possible to actually r...Changes only in CI configuration (and a small note in Readme):
- compiles dns-collector in CI on every push and runs some basic tests (just checks that `--help` and `--dumpconfig` work for now, i'm not sure if it's possible to actually record some DNS traffic in CI/Docker)
- linux packages are built automatically, but only when a new version/tag is pushed, and it's name matches `vX` (`vX.X`, `vX.X.X`, …) (`^v([0-9]\.?)+$`)
- rpm/deb amd64 packages are built using [FPM](http://fpm.readthedocs.io/en/latest/), and kept in Gitlab as job artifacts for:
- Ubuntu 16.04 LTS, 17.10, 18.04 LTS
- Debian 8 (Jessie) and 9 (Stretch)
- Fedora 26, 27, 28 (also builds libtrace RPM, since it's [missing](https://apps.fedoraproject.org/packages/s/libtrace) in their repos)
- CentOS build are disabled for now ([can't find libknot for it](https://www.knot-dns.cz/download/))
- if we need some other distros (Arch?), just let me know, most of them should be possible to add (not sure about BSD, FreeBSD is supported by FPM, but not by Docker and our CI machines)
- i had to create some Docker images with FPM (new Ubuntu and Fedora versions, and fixed Stretch), and made them public on the [Docker Hub](https://hub.docker.com/u/helb/) (and their source files on [Github](https://github.com/helb/fpm-within-docker))
Pipeline for a commit push (build and test):
![kookaburra_20180620_094156](/uploads/8fee24c61cb22a8a4937548547d6129a/kookaburra_20180620_094156.png)
Pipeline for a tag push (build, test, and create packages):
![kookaburra_20180620_094244](/uploads/84798726f73c10788391480872befa0b/kookaburra_20180620_094244.png)Tomáš GavenčiakTomáš Gavenčiakhttps://gitlab.nic.cz/labs/dns-collector/-/merge_requests/1Make QNAME matching optional, add to conf and docs2018-04-17T13:39:42+02:00Tomáš GavenčiakMake QNAME matching optional, add to conf and docsMake QNAME matchong optional (with a config flag), resolving #5.
Mitigates #3 with the default `match_qname=0`.
When two messages with different QNAME are matched, the request QNAME is kept for output.Make QNAME matchong optional (with a config flag), resolving #5.
Mitigates #3 with the default `match_qname=0`.
When two messages with different QNAME are matched, the request QNAME is kept for output.Tomáš GavenčiakTomáš Gavenčiak