diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a005ddcfe813d0b0493e6dbfb2e09b272f434184..146559ed2063a799f31c302679281fccf57eec9d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,6 +9,7 @@ variables:
 stages:
   - image
   - build
+  - pkg
   - test
 
 .docker: &docker_build
@@ -207,6 +208,7 @@ docker_opensuse-15.3-amd64:
   - freebsd
   - amd64
 
+
 .build: &build-base
   stage: build
   script:
@@ -366,6 +368,40 @@ build-freebsd-11-i386:
     - freebsd
     - i386
 
+
+.pkg-debian: &pkg-debian
+  stage: pkg
+  script:
+  - pip3 install apkg
+  - apkg build
+  - apkg install -y pkg/pkgs/*/*/*.deb
+
+pkg-debian-9-amd64:
+  <<: *pkg-debian
+  needs: [build-debian-9-amd64]
+  image: registry.labs.nic.cz/labs/bird:debian-9-amd64
+
+pkg-debian-9-i386:
+  <<: *pkg-debian
+  needs: [build-debian-9-i386]
+  image: registry.labs.nic.cz/labs/bird:debian-9-i386
+
+pkg-debian-10-amd64:
+  <<: *pkg-debian
+  needs: [build-debian-10-amd64]
+  image: registry.labs.nic.cz/labs/bird:debian-10-amd64
+
+pkg-debian-10-i386:
+  <<: *pkg-debian
+  needs: [build-debian-10-i386]
+  image: registry.labs.nic.cz/labs/bird:debian-10-i386
+
+pkg-debian-11-amd64:
+  <<: *pkg-debian
+  needs: [build-debian-11-amd64]
+  image: registry.labs.nic.cz/labs/bird:debian-11-amd64
+
+
 build-birdlab:
   stage: build
   tags:
@@ -417,10 +453,10 @@ test-ospf-ptmp:
   variables:
     TEST_NAME: cf-ospf-ptmp
 
-test-ospf-authentication:
-  <<: *test-base
-  variables:
-    TEST_NAME: cf-ospf-authentication
+# test-ospf-authentication:
+#   <<: *test-base
+#   variables:
+#     TEST_NAME: cf-ospf-authentication
 
 test-ospf-bfd:
   <<: *test-base
diff --git a/misc/docker/debian-10-amd64/Dockerfile b/misc/docker/debian-10-amd64/Dockerfile
index 4991db3e9f272afdeedcacd85205b7503a0a8ccb..429aac6bab0411af98bfdcbdb9e9a38bbd3a6d45 100644
--- a/misc/docker/debian-10-amd64/Dockerfile
+++ b/misc/docker/debian-10-amd64/Dockerfile
@@ -3,10 +3,22 @@ ENV DEBIAN_FRONTEND noninteractive
 RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list
 RUN apt-get -y update
 RUN apt-get -y upgrade
-RUN apt-get -y install \
+RUN apt-get -y --no-install-recommends install \
 	autoconf \
 	build-essential \
 	flex \
 	bison \
 	ncurses-dev \
-	libreadline-dev
+	libreadline-dev \
+	libssh-gcrypt-dev \
+	opensp \
+	docbook-xsl \
+	xsltproc
+RUN apt-get -y --no-install-recommends install \
+	git \
+	dpkg-dev \
+	debhelper \
+	quilt \
+	python3 \
+	python3-pip \
+	python3-setuptools
diff --git a/misc/docker/debian-10-i386/Dockerfile b/misc/docker/debian-10-i386/Dockerfile
index fc02c4a4aa348dbec71a968b97017a374bf00b53..9dadaf284051b4f853e5868650aaed3c1bcf5671 100644
--- a/misc/docker/debian-10-i386/Dockerfile
+++ b/misc/docker/debian-10-i386/Dockerfile
@@ -3,10 +3,22 @@ ENV DEBIAN_FRONTEND noninteractive
 RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list
 RUN apt-get -y update
 RUN apt-get -y upgrade
-RUN apt-get -y install \
+RUN apt-get -y --no-install-recommends install \
 	autoconf \
 	build-essential \
 	flex \
 	bison \
 	ncurses-dev \
-	libreadline-dev
+	libreadline-dev \
+	libssh-gcrypt-dev \
+	opensp \
+	docbook-xsl \
+	xsltproc
+RUN apt-get -y --no-install-recommends install \
+	git \
+	dpkg-dev \
+	debhelper \
+	quilt \
+	python3 \
+	python3-pip \
+	python3-setuptools
diff --git a/misc/docker/debian-11-amd64/Dockerfile b/misc/docker/debian-11-amd64/Dockerfile
index 803f324392ed1d9e334db86aca3868a29b3606aa..82cb00dd04f8406c2f42fe311e0d46261a29cc98 100644
--- a/misc/docker/debian-11-amd64/Dockerfile
+++ b/misc/docker/debian-11-amd64/Dockerfile
@@ -2,12 +2,24 @@ FROM amd64/debian:bullseye-slim
 
 ENV DEBIAN_FRONTEND=noninteractive
 RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list
-RUN apt-get -y update && apt-get -y upgrade
-RUN apt-get -y install \
+RUN apt-get -y update
+RUN apt-get -y upgrade
+RUN apt-get -y --no-install-recommends install \
 	autoconf \
 	build-essential \
 	flex \
 	bison \
 	ncurses-dev \
-	libreadline-dev
-
+	libreadline-dev \
+	libssh-gcrypt-dev \
+	opensp \
+	docbook-xsl \
+	xsltproc
+RUN apt-get -y --no-install-recommends install \
+	git \
+	dpkg-dev \
+	debhelper \
+	quilt \
+	python3 \
+	python3-pip \
+	python3-setuptools
diff --git a/misc/docker/debian-9-amd64/Dockerfile b/misc/docker/debian-9-amd64/Dockerfile
index e8a17efc62c3af74c43fd24ede267d873baed6c5..1ddd821a53ad511e9656a9bf7dcf34b097336da7 100644
--- a/misc/docker/debian-9-amd64/Dockerfile
+++ b/misc/docker/debian-9-amd64/Dockerfile
@@ -3,10 +3,22 @@ ENV DEBIAN_FRONTEND noninteractive
 RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list
 RUN apt-get -y update
 RUN apt-get -y upgrade
-RUN apt-get -y install \
+RUN apt-get -y --no-install-recommends install \
 	autoconf \
 	build-essential \
 	flex \
 	bison \
 	ncurses-dev \
-	libreadline-dev
+	libreadline-dev \
+	libssh-gcrypt-dev \
+	opensp \
+	docbook-xsl \
+	xsltproc
+RUN apt-get -y --no-install-recommends install \
+	git \
+	dpkg-dev \
+	debhelper \
+	quilt \
+	python3 \
+	python3-pip \
+	python3-setuptools
diff --git a/misc/docker/debian-9-i386/Dockerfile b/misc/docker/debian-9-i386/Dockerfile
index 73e7075054324f165a7d76abec98838f2bc86eaf..6a913f70ca77010427e883287b777b3e210fd56a 100644
--- a/misc/docker/debian-9-i386/Dockerfile
+++ b/misc/docker/debian-9-i386/Dockerfile
@@ -3,10 +3,22 @@ ENV DEBIAN_FRONTEND noninteractive
 RUN sed -i 's/deb.debian.org/ftp.cz.debian.org/' /etc/apt/sources.list
 RUN apt-get -y update
 RUN apt-get -y upgrade
-RUN apt-get -y install \
+RUN apt-get -y --no-install-recommends install \
 	autoconf \
 	build-essential \
 	flex \
 	bison \
 	ncurses-dev \
-	libreadline-dev
+	libreadline-dev \
+	libssh-gcrypt-dev \
+	opensp \
+	docbook-xsl \
+	xsltproc
+RUN apt-get -y --no-install-recommends install \
+	git \
+	dpkg-dev \
+	debhelper \
+	quilt \
+	python3 \
+	python3-pip \
+	python3-setuptools