[Pdns-users] Buiding powerdns container images with podman

Cheikh Dieng tekdieng at gmail.com
Thu Mar 4 11:50:56 UTC 2021


Hi Petre Thanks for your help!

For the first question, it's clear now for me. that's OK now.

For the 2nd question, i clean all, and doing the following:

   - sudo ln -s /usr/bin/podman /usr/local/bin/docker
   - git clone https://github.com/PowerDNS/pdns.git
   - cd /home/pdns/pdns ## pdns is my podman user
   - git submodule init
   - git submodule update
   - [pdns at dmz-bastion pdns]$ git log

*commit 5e02e2567dc57eaa3b916246e9998236a5a5496d (HEAD -> master,
origin/master, origin/HEAD)*

*Merge: 40e77dd84 12e06ae78*

*Author: Otto Moerbeek <otto.moerbeek at open-xchange.com
<otto.moerbeek at open-xchange.com>>*

*Date:   Thu Mar 4 11:33:47 2021 +0100*

*    Merge pull request #10010 from omoerbeek/check-time_t-size*

*    Check sizeof(time_t) to be at least 8*

*commit 40e77dd8408e0d9cfe2e26d0284453381edbe23a (tag:
dnsdist-1.6.0-alpha2)*

*Merge: 71266386f 0fa0d7c23*

*Author: Pieter Lexis <pieter.lexis at powerdns.com
<pieter.lexis at powerdns.com>>*

*Date:   Wed Mar 3 22:14:44 2021 +0100*

*    Merge pull request #10116 from pieterlexis/lmdb-docs*

*    docs: improve rendering of lmdb page*

*commit 71266386f0c826df8f1eb2305ece6cbf476c17c4*

*Merge: 0d48cda43 f23ed0a6c*

*Author: Remi Gacogne <remi.gacogne at powerdns.com
<remi.gacogne at powerdns.com>>*

*Date:   Wed Mar 3 17:22:25 2021 +0100*

*    Merge pull request #10133 from
rgacogne/ddist-cache-shards-purge-expired*

*    dnsdist: Clean up expired entries from all the packet cache's shards*



   - [pdns at dmz-bastion pdns]$ ./builder/build.sh -v centos-8-amd64

============

*make[4]: Entering directory
'/root/rpmbuild/BUILD/pdns-0.0.20925.0.master.g5e02e2567d/modules/bindbackend'*
*/bin/sh ../../libtool  --tag=CXX   --mode=compile g++ -std=c++17
-DHAVE_CONFIG_H -I. -I../..  -I../.. -I../.. -pthread  -I../../pdns
-DLDAP_DEPRECATED  -fPIE -DPIE -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
--param ssp-buffer-size=4 -fstack-protector -g -O2 -Wall -Wextra -Wshadow
-Wno-unused-parameter -Wmissing-declarations -Wredundant-decls -O2 -g -pipe
-Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong
-grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o
bindbackend2.lo bindbackend2.cc*
*/bin/sh ../../libtool  --tag=CXX   --mode=compile g++ -std=c++17
-DHAVE_CONFIG_H -I. -I../..  -I../.. -I../.. -pthread  -I../../pdns
-DLDAP_DEPRECATED  -fPIE -DPIE -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
--param ssp-buffer-size=4 -fstack-protector -g -O2 -Wall -Wextra -Wshadow
-Wno-unused-parameter -Wmissing-declarations -Wredundant-decls -O2 -g -pipe
-Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
-Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong
-grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o
binddnssec.lo binddnssec.cc*
*libtool: compile:  g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../.. -I../..
-I../.. -pthread -I../../pdns -DLDAP_DEPRECATED -DPIE -U_FORTIFY_SOURCE
-D_FORTIFY_SOURCE=2 --param ssp-buffer-size=4 -fstack-protector -g -O2
-Wall -Wextra -Wshadow -Wno-unused-parameter -Wmissing-declarations
-Wredundant-decls -O2 -g -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions
-fstack-protector-strong -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c
bindbackend2.cc  -fPIC -DPIC -o .libs/bindbackend2.o*
*libtool: compile:  g++ -std=c++17 -DHAVE_CONFIG_H -I. -I../.. -I../..
-I../.. -pthread -I../../pdns -DLDAP_DEPRECATED -DPIE -U_FORTIFY_SOURCE
-D_FORTIFY_SOURCE=2 --param ssp-buffer-size=4 -fstack-protector -g -O2
-Wall -Wextra -Wshadow -Wno-unused-parameter -Wmissing-declarations
-Wredundant-decls -O2 -g -pipe -Wall -Werror=format-security
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions
-fstack-protector-strong -grecord-gcc-switches
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c
binddnssec.cc  -fPIC -DPIC -o .libs/binddnssec.o*

*g++: fatal error: Killed signal terminated program cc1plus*
*compilation terminated.*
*make[4]: *** [Makefile:640: binddnssec.lo] Error 1*
*make[4]: *** Waiting for unfinished jobs....*
*{standard input}: Assembler messages:*
*{standard input}:1050069: Warning: end of file not at end of a line;
newline inserted*
*{standard input}:1051051: Error: unknown pseudo-op: `.s'*
*g++: fatal error: Killed signal terminated program cc1plus*
*compilation terminated.*
*make[4]: Leaving directory
'/root/rpmbuild/BUILD/pdns-0.0.20925.0.master.g5e02e2567d/modules/bindbackend'*
*make[4]: *** [Makefile:640: bindbackend2.lo] Error 1*
*make[3]: Leaving directory
'/root/rpmbuild/BUILD/pdns-0.0.20925.0.master.g5e02e2567d/modules/bindbackend'*
*make[3]: *** [Makefile:531: all] Error 2*
*make[2]: *** [Makefile:529: all-recursive] Error 1*
*make[2]: Leaving directory
'/root/rpmbuild/BUILD/pdns-0.0.20925.0.master.g5e02e2567d/modules'*

*make[1]: *** [Makefile:580: all-recursive] Error 1*
*make[1]: Leaving directory
'/root/rpmbuild/BUILD/pdns-0.0.20925.0.master.g5e02e2567d'*
*make: *** [Makefile:512: all] Error 2*
*error: Bad exit status from /var/tmp/rpm-tmp.6VRvWQ (%build)*


*RPM build errors:*
*    Bad exit status from /var/tmp/rpm-tmp.6VRvWQ (%build)*
*+ rm -rf -- /tmp/build-specs.parsed.sPjfUG*
*Error: error building at STEP "RUN touch /var/lib/rpm/* && if $(grep -q
'release 7' /etc/redhat-release); then       scl enable devtoolset-8 --
builder/helpers/build-specs.sh builder-support/specs/pdns.spec;     else
    builder/helpers/build-specs.sh builder-support/specs/pdns.spec;
fi": error while running runtime: exit status 1*
*ERROR: Build failed*
*[pdns at dmz-bastion pdns]$*


==================================================


   - [pdns at dmz-bastion pdns]$ cat /etc/redhat-release

CentOS Linux release 8.3.2011

I don't know what going wrong ?

Thanks


Le jeu. 4 mars 2021 à 11:35, Peter van Dijk via Pdns-users <
pdns-users at mailman.powerdns.com> a écrit :

> Hello,
>
> On Wed, 2021-03-03 at 19:21 +0100, Cheikh Dieng via Pdns-users wrote:
> > Hello Peter,
> > Thanks for you response.
> > For the 1rs Question: I split it in many step.
> > I have to install to powerdns with ldap backend (plugin). What are the
> options during the images podman built processus to configure this backend ?
>
> I recommend not doing it during build.
>
> You have several options:
> (1) once it is built, make a second image, starting with FROM powerdns-
> auth, and add your config there
> (2) mount your config into /etc/powerdns in the runtime container
> (3) learn about the (undocumented) templating in the startup script
>
> >
> > For the 2nd question:
> > I'm using :
> > commit c923c0f7e1b0dd7e00f1f8c736c9b376910241c0 (HEAD -> master,
> origin/master, origin/HEAD)
> > Merge: b472d9c1d 67b02e399
> > Author: Otto Moerbeek <otto.moerbeek at open-xchange.com>
> > Date:   Wed Feb 24 17:39:20 2021 +0100
> >
> >     Merge pull request #10111 from omoerbeek/rec-drop-from-lua
> >
> >     rec: Handle policy (if needed) after postresolve and document the
> hooks better
>
> This commit also builds for me without problems. Did you change
> anything?
>
> Kind regards,
> --
> Peter van Dijk
> PowerDNS.COM BV - https://www.powerdns.com/
>
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> https://mailman.powerdns.com/mailman/listinfo/pdns-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20210304/7bd2abd7/attachment-0001.htm>


More information about the Pdns-users mailing list