Docker/Cyrus user

Chris Davies chris at fastmail.com
Thu Mar 19 00:29:07 EDT 2015


Hi, 


I'm trying to get docker up and running, 

The README file suggests I run the build and run commands, build works fine. 

>   $ docker build -t cyrus-imapd-3.0.santiago - < santiago
>   $ docker run -t -i cyrus-imapd-3.0.santiago
This fails with: 

> ...
> Cassandane/Util/Setup.pm syntax OK
> Cassandane/Util/DateTime.pm syntax OK
> Cassandane/Util/SHA.pm syntax OK
> Cassandane/Util/Wait.pm syntax OK
> Cassandane/Util/Log.pm syntax OK
> Running make OK
> Running sed -r -i -e s|^##rootdir.*$|rootdir=/tmp|g -e s|^##prefix.*$| 
> prefix=/usr|g -e /^#/d cassandane.ini ...
> Running sed -r -i -e s|^##rootdir.*$|rootdir=/tmp|g -e s|^##prefix.*$| 
> prefix=/usr|g -e /^#/d cassandane.ini OK
> Running ./testrunner.pl -f tap -j 1 ...
> *Perl exception: No user named 'cyrus'*
>  at Cassandane/Util/Setup.pm line 60
>     Cassandane::Util::Setup::become_cyrus() called at ./testrunner.pl line  
> 148
> Running ./testrunner.pl -f tap -j 1 FAILED
> /srv/cyrus-imapd.git /srv/cyrus-imapd.git
> /srv/cyrus-imapd.git
> /srv/cyrus-imapd.git /srv/cyrus-imapd.git
> === REPORT ===
> Running 'autoreconf -vi' OK
> Running './configure --enable-autocreate --enable-coverage
--enable-gssapi --enable-http --enable-idled --enable-maintainer-mode 

--enable-murder --enable-nntp --enable-replication --enable-unit-tests 

--with-ldap=/usr' OK 

> Running 'make sieve/addr-lex.c sieve/sieve-lex.c' OK
> Running 'make lex-fix' OK
> Running '_make_lex_fix' OK
> Running 'make clean' OK
> Running 'autoreconf -vi' OK
> Running './configure --enable-maintainer-mode' OK
> Running '_configure_maintainer' OK
> Running 'autoreconf -vi' OK
> Running './configure --enable-autocreate --enable-coverage
--enable-gssapi --enable-http --enable-idled --enable-maintainer-mode 

--enable-murder --enable-nntp --enable-replication --enable-unit-tests 

--with-ldap=/usr' OK 

> Running 'make lex-fix' OK
> Running '_make_lex_fix' OK
> Running '_configure' OK
> Running 'make -j1' OK
> make relaxed OK
> Running '_make_relaxed' OK
> Running 'make clean' OK
> Running 'autoreconf -vi' OK
> Running './configure --enable-maintainer-mode' OK
> Running '_configure_maintainer' OK
> Running 'autoreconf -vi' OK
> Running './configure --enable-autocreate --enable-coverage
--enable-gssapi --enable-http --enable-idled --enable-maintainer-mode 

--enable-murder --enable-nntp --enable-replication --enable-unit-tests 

--with-ldap=/usr' OK 

> Running 'make lex-fix' OK
> Running '_make_lex_fix' OK
> Running '_configure' OK
> Running 'make -j1' FAILED
> Running '_make_strict' FAILED
> Running 'git checkout bc4eb4d49831283c029544c042af79a685f8b744' OK
> Running 'make clean' OK
> Running 'autoreconf -vi' OK
> Running './configure --enable-maintainer-mode' OK
> Running '_configure_maintainer' OK
> Running 'autoreconf -vi' OK
> Running './configure --enable-autocreate --enable-coverage
--enable-gssapi --enable-http --enable-idled --enable-maintainer-mode 

--enable-murder --enable-nntp --enable-replication --enable-unit-tests 

--with-ldap=/usr' OK 

> Running 'make lex-fix' OK
> Running '_make_lex_fix' OK
> Running '_configure' OK
> Running 'make -j1' OK
> make relaxed OK
> Running '_make_relaxed' OK
> Running 'make clean' OK
> Running 'autoreconf -vi' OK
> Running './configure --enable-maintainer-mode' OK
> Running '_configure_maintainer' OK
> Running 'autoreconf -vi' OK
> Running './configure --enable-autocreate --enable-coverage
--enable-gssapi --enable-http --enable-idled --enable-maintainer-mode 

--enable-murder --enable-nntp --enable-replication --enable-unit-tests 

--with-ldap=/usr' OK 

> Running 'make lex-fix' OK
> Running '_make_lex_fix' OK
> Running '_configure' OK
> Running 'make -j1' FAILED
> Running '_make_strict' FAILED
> Running 'make clean' OK
> Running 'autoreconf -vi' OK
> Running './configure --enable-maintainer-mode' OK
> Running '_configure_maintainer' OK
> Running 'autoreconf -vi' OK
> Running './configure --enable-autocreate --enable-coverage
--enable-gssapi --enable-http --enable-idled --enable-maintainer-mode 

--enable-murder --enable-nntp --enable-replication --enable-unit-tests 

--with-ldap=/usr' OK 

> Running 'make lex-fix' OK
> Running '_make_lex_fix' OK
> Running '_configure' OK
> Running 'make -j1' OK
> make relaxed OK
> Running 'make check' FAILED
> Running 'make clean' OK
> Running 'autoreconf -vi' OK
> Running './configure --enable-maintainer-mode' OK
> Running '_configure_maintainer' OK
> Running 'autoreconf -vi' OK
> Running './configure --program-prefix=
--disable-dependency-tracking --prefix=/usr --exec-prefix=/usr 

--bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc 

--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 

--libexecdir=/usr/libexec/cyrus-imapd --localstatedir=/var 

--sharedstatedir=/var/lib --mandir=/usr/share/man 

--infodir=/usr/share/info --enable-autocreate --enable-coverage 

--enable-gssapi --enable-http --enable-idled --enable-maintainer-mode 

--enable-murder --enable-nntp --enable-replication --enable-unit-tests 

--with-ldap=/usr' OK 

> Running 'make lex-fix' OK
> Running '_make_lex_fix' OK
> Running '_configure --program-prefix= --disable-dependency-tracking
 --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin 

--sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include 

--libdir=/usr/lib64 --libexecdir=/usr/libexec/cyrus-imapd 

--localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man 

--infodir=/usr/share/info --with-cyrus-prefix=/usr/bin/ 

--with-service-path=/usr/bin/ --enable-autocreate --enable-coverage 

--enable-gssapi --enable-http --enable-idled --enable-maintainer-mode 

--enable-murder --enable-nntp --enable-replication --enable-unit-tests 

--with-ldap=/usr' OK 

> Running 'make -j1' FAILED
> Running 'autoreconf -vi' OK
> Running './configure --program-prefix=
--disable-dependency-tracking --prefix=/usr --exec-prefix=/usr 

--bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc 

--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 

--libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib 

 --mandir=/usr/share/man --infodir=/usr/share/info --enable-autocreate 

--enable-coverage --enable-gssapi --enable-http --enable-idled 

--enable-maintainer-mode --enable-murder --enable-nntp 

--enable-replication --enable-unit-tests --with-ldap=/usr' OK 

> Running 'make lex-fix' OK
> Running '_make_lex_fix' OK
> Running '_configure --program-prefix= --disable-dependency-tracking
 --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin 

--sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include 

--libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var 

--sharedstatedir=/var/lib --mandir=/usr/share/man 

--infodir=/usr/share/info --with-cyrus-prefix=/usr/bin/ 

--with-service-path=/usr/bin/ --enable-autocreate --enable-coverage 

--enable-gssapi --enable-http --enable-idled --enable-maintainer-mode 

--enable-murder --enable-nntp --enable-replication --enable-unit-tests 

--with-ldap=/usr' OK 

> Running 'make -j1' OK
> Running 'make install' OK
> Running 'make' OK
> Running 'sed -r -i -e s|^##rootdir.*$|rootdir=/tmp|g -e s|^##prefix.*$| 
> prefix=/usr|g -e /^#/d cassandane.ini' OK
> Running './testrunner.pl -f tap -j 1' FAILED

I think it's because the cyrus user isn’t being created. 

> Perl exception: No user named 'cyrus'

Has anyone else got the docker images working? Am I missing a step or  
command somewhere? 

I'm running this on Docker version 1.5.0-dev, build a78ce5c on a Ubuntu VM. 

3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 UTC 2015 x86_64  
x86_64 x86_64 GNU/Linux 


I'm new to docker, any attempt to get command line access to my container is  
failing the the run script getting rerun, which takes another 5+ minutes 


Any suggestions? 


Thanks, 

Chris 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.andrew.cmu.edu/pipermail/cyrus-devel/attachments/20150319/1cdc52dc/attachment.html 


More information about the Cyrus-devel mailing list