From the branch 389-ds-base-1.4.1 in docker folder it is possible to create an image from the dockerfile in 389-ds-base/docker/389-ds-suse folder.
I have the following error
Step 8/11 : RUN autoreconf -fiv && ./configure --host=x86_64-suse-linux-gnu --build=x86_64-suse-linux-gnu --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/lib --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --enable-debug --enable-gcc-security --enable-autobind --enable-auto-dn-suffix --with-openldap --enable-cmocka --enable-rust --disable-perl --with-pythonexec="python3" --without-systemd --libexecdir=/usr/lib/dirsrv/ --prefix=/ && make -j 12 && make install && make lib389 && make lib389-install ---> Running in fa948158bfc6 autoreconf: 'configure.ac' or 'configure.in' is required The command '/bin/sh -c autoreconf -fiv && ./configure --host=x86_64-suse-linux-gnu --build=x86_64-suse-linux-gnu --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/lib --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --enable-debug --enable-gcc-security --enable-autobind --enable-auto-dn-suffix --with-openldap --enable-cmocka --enable-rust --disable-perl --with-pythonexec="python3" --without-systemd --libexecdir=/usr/lib/dirsrv/ --prefix=/ && make -j 12 && make install && make lib389 && make lib389-install' returned a non-zero code: 1
from git source in branch 389-ds-base-1.4.1
docker build . -t us.gcr.io/devel-217021/389-ds_container:
See errors below
creation of a new image
Don't cd into the folder - you need to try something like:
git clone ..../389-ds-base.git cd 389-ds-base docker build -f docker/389-ds-suse/Dockerfile -t <your tag> .
That should fix your build I hope.
Metadata Update from @firstyear: - Custom field origin adjusted to None - Custom field reviewstatus adjusted to None
Metadata Update from @firstyear: - Issue assigned to firstyear
Hi William ,
Still can not build from base folder 389-ds-base with command : docker build -f docker/389-ds-suse/Dockerfile -t us.gcr.io/devel-217021/389ds:2.0 .
Do i have to run this build on centos/fedora or Rhel distrib ?
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -DDEBUG -DMCC_DEBUG -DRUST_ENABLE -DBUILD_NUM=\"2019.307.2326\" -DVENDOR="\"389 Project\"" -DBRAND="\"389\"" -DCAPBRAND="\"389\"" -UPACKAGE_VERSION -UPACKAGE_TARNAME -UPACKAGE_STRING -UPACKAGE_BUGREPORT -I./ldap/include -I./ldap/servers/slapd -I./include -I. -I./src/nunc-stans/include/ -DLOCALSTATEDIR="\"/var\"" -DSYSCONFDIR="\"/etc\"" -DLIBDIR="\"/usr/lib64\"" -DBINDIR="\"/usr/bin\"" -DDATADIR="\"/usr/share\"" -DDOCDIR="\"//share/doc/389-ds-base\"" -DSBINDIR="\"/usr/sbin\"" -DPLUGINDIR="\"/usr/lib64/dirsrv/plugins\"" -DTEMPLATEDIR="\"/usr/share/dirsrv/data\"" -DSYSTEMSCHEMADIR="\"/usr/share/dirsrv/schema\"" -I./src/nunc-stans/include/ -I/usr/include -I/usr/include/nss3 -I/usr/include/nspr4 -I/usr/include/nspr4 -I/usr/include/db4 -I./src/libsds/include/ -I./src/libsds/external/ -I/usr/include/nspr4 -I./src/svrcore/src/ -g3 -O0 -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -Werror=format-security -c -o ldap/libraries/libavl/libslapd_la-avl.lo test -f 'ldap/libraries/libavl/avl.c' || echo './'ldap/libraries/libavl/avl.c error: the lock file /usr/local/src/389-ds-base/src/libsds/Cargo.lock needs to be updated but --locked was passed to prevent this make[1]: [Makefile:12931: /usr/local/src/389-ds-base/rs/debug/librsds.a] Error 101 make[1]: Waiting for unfinished jobs.... libtool: link: ar cru .libs/librsds.a libtool: link: ranlib .libs/librsds.a libtool: link: ( cd ".libs" && rm -f "librsds.la" && ln -s "../librsds.la" "librsds.la" ) libtool: compile: gcc -DHAVE_CONFIG_H -I. -DDEBUG -DMCC_DEBUG -DRUST_ENABLE -DBUILD_NUM=\"2019.307.2326\" "-DVENDOR=\"389 Project\"" -DBRAND=\"389\" -DCAPBRAND=\"389\" -UPACKAGE_VERSION -UPACKAGE_TARNAME -UPACKAGE_STRING -UPACKAGE_BUGREPORT -I./ldap/include -I./ldap/servers/slapd -I./include -I. -I./src/nunc-stans/include/ -DLOCALSTATEDIR=\"/var\" -DSYSCONFDIR=\"/etc\" -DLIBDIR=\"/usr/lib64\" -DBINDIR=\"/usr/bin\" -DDATADIR=\"/usr/share\" -DDOCDIR=\"//share/doc/389-ds-base\" -DSBINDIR=\"/usr/sbin\" -DPLUGINDIR=\"/usr/lib64/dirsrv/plugins\" -DTEMPLATEDIR=\"/usr/share/dirsrv/data\" -DSYSTEMSCHEMADIR=\"/usr/share/dirsrv/schema\" -I./src/nunc-stans/include/ -I/usr/include -I/usr/include/nss3 -I/usr/include/nspr4 -I/usr/include/nspr4 -I/usr/include/db4 -I./src/libsds/include/ -I./src/libsds/external/ -I/usr/include/nspr4 -I./src/svrcore/src/ -g3 -O0 -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -Werror=format-security -c ldap/libraries/libavl/avl.c -fPIC -DPIC -o ldap/libraries/libavl/.libs/libslapd_la-avl.o In file included from /usr/include/sys/types.h:25:0, from ldap/libraries/libavl/avl.c:32: /usr/include/features.h:376:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) ^~~ make[1]: Leaving directory '/usr/local/src/389-ds-base' make: *** [Makefile:3912: all] Error 2
test -f 'ldap/libraries/libavl/avl.c' || echo './'
Which branch are you on? Master or a release branch?
IE can you should me the output of git status
git status
from git master I can build correctly as an aside. Your host os / platform doesn't matter because it's all built inside the containers (my host platform is macos 10.14 / docker for mac which I think is alpine linux).
---> 39332a3d9a36 Successfully built 39332a3d9a36 Successfully tagged test389ds:latest [william@amethyst 9:17] ~/development/389ds/ds > docker build -f docker/389-ds-suse/Dockerfile -t test389ds:latest .
it works from master for me too. I'll will use branch master instead. Thanks for your help
If you want a "stable" branch to track, try using the 389-ds-base-1.4.2 branch instead.
389-ds-base-1.4.2
Metadata Update from @firstyear: - Issue close_status updated to: worksforme - Issue status updated to: Closed (was: Open)
389-ds-base is moving from Pagure to Github. This means that new issues and pull requests will be accepted only in 389-ds-base's github repository.
This issue has been cloned to Github and is available here: - https://github.com/389ds/389-ds-base/issues/3740
If you want to receive further updates on the issue, please navigate to the github issue and click on subscribe button.
subscribe
Thank you for understanding. We apologize for all inconvenience.
Metadata Update from @spichugi: - Issue close_status updated to: wontfix (was: worksforme)
Login to comment on this ticket.