Skip to content

Commit

Permalink
bettor error checking of builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhangui committed Apr 18, 2023
1 parent 0c6d8f2 commit c28d929
Show file tree
Hide file tree
Showing 8 changed files with 219 additions and 18 deletions.
4 changes: 2 additions & 2 deletions indimail-src/alpine.src
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ RUN mkdir -p /root /usr/local/srctmp /var/log/build \
cd /usr/local/srctmp/gsasl-2.2.0; \
./configure --prefix=/usr --with-libgcrypt --enable-gs2 --with-gssapi-impl=mit; \
make; make install-strip; \
) 2>&1 | tee -a /var/log/build/build.log \
&& echo "Build Completed"
) > /var/log/build/build.log 2>&1 \
&& (echo "Build Succeeded" && gzip /var/log/build/build.log) || (echo "Build Failed" && cat /var/log/build/build.log && exit 1)
4 changes: 2 additions & 2 deletions indimail-src/archlinux.src
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ RUN mkdir -p /root /usr/local/srctmp /var/log/build \
cd /usr/local/srctmp/gsasl-2.2.0; \
./configure --prefix=/usr --with-libgcrypt --enable-gs2 --with-gssapi-impl=mit; \
make && make install-strip; \
) 2>&1 | tee -a /var/log/build/build.log \
&& echo "Build Completed"
) > /var/log/build/build.log 2>&1 \
&& (echo "Build Succeeded" && gzip /var/log/build/build.log) || (echo "Build Failed" && cat /var/log/build/build.log && exit 1)
4 changes: 2 additions & 2 deletions indimail-src/fedora.src
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ RUN export HOSTNAME=indimail.org MYSQL_SOCKET=/run/mysqld/mysqld.sock \
./bootstrap; \
./configure --prefix=/usr; \
make; make install-strip; \
) 2>&1 | tee -a /var/log/build/build.log \
&& echo "Build Completed"
) > /var/log/build/build.log 2>&1 \
&& (echo "Build Succeeded" && gzip /var/log/build/build.log) || (echo "Build Failed" && cat /var/log/build/build.log && exit 1)
4 changes: 2 additions & 2 deletions indimail-src/gentoo.src
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,5 @@ RUN mkdir -p /root /usr/local/srctmp /var/log/build \
./configure --prefix=/usr --libdir=/usr/lib64 --with-libgcrypt --enable-gs2 --with-gssapi-impl=mit; \
make && make install-strip; \
echo "Build Completed"; \
) 2>&1 | tee -a /var/log/build/build.log \
&& tail -n 1 /var/log/build/build.log
) > /var/log/build/build.log 2>&1 \
&& (echo "Build Succeeded" && gzip /var/log/build/build.log) || (echo "Build Failed" && cat /var/log/build/build.log && exit 1)
12 changes: 6 additions & 6 deletions indimail-src/stream8.src
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ RUN export HOSTNAME=indimail.org MYSQL_SOCKET=/run/mysqld/mysqld.sock \
cd /usr/local/srctmp/gsasl-2.2.0; \
./configure --prefix=/usr --with-libgcrypt --enable-gs2 --with-gssapi-impl=mit; \
make; make install-strip; \
# libtirpc
## libtirpc
cd /usr/local/srctmp/libtirpc; \
./bootstrap; \
./configure --prefix=/usr; \
make; make install-strip; \
# roundcube
## roundcube
cd /usr/local/srctmp; \
wget -nv \
https://github.com/roundcube/roundcubemail/releases/download/1.6.0/roundcubemail-1.6.0-complete.tar.gz \
-O roundcubemail.tar.gz; \
) 2>&1 | tee -a /var/log/build/build.log \
&& echo "Build Completed"
https://github.com/roundcube/roundcubemail/releases/download/1.6.0/roundcubemail-1.6.0-complete.tar.gz \
-O roundcubemail.tar.gz; \
) > /var/log/build/build.log 2>&1 \
&& (echo "Build Succeeded" && gzip /var/log/build/build.log) || (echo "Build Failed" && cat /var/log/build/build.log && exit 1)
201 changes: 201 additions & 0 deletions indimail-src/stream9.indimail-web.bin
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
# docker build -f dockerfile.stream9 -t cprogrammer/indimail:stream9
FROM cprogrammer/indimail-src:stream9
MAINTAINER cprogrammer
LABEL org.opencontainers.image.source=https://github.com/mbhangui/indimail:stream9

RUN export HOSTNAME=indimail.org MYSQL_SOCKET=/run/mysqld/mysqld.sock \
&& mkdir -p /root /usr/local/srctmp /var/log/build \
&& dnf -y install \
'dnf-command(config-manager)' \
http://rpms.remirepo.net/enterprise/remi-release-9.rpm \
&& dnf -y module reset php \
&& dnf -y module enable php:remi-8.1 \
&& dnf -y update \
&& dnf -y install \
perl \
httpd \
mod_ssl \
php \
php-fpm \
php-mysqlnd \
php-imagick \
php-mcrypt \
php-mbstring \
php-xml \
php-xmlrpc \
php-gd \
php-intl \
php-json \
php-zip \
php-cli \
&& (set -e; \
cd /usr/local/srctmp; \
# gsasl ###############################################
cd /usr/local/srctmp/gsasl-2.2.0; \
make -s && make -s install-strip; \
# libqmail #############################################
cd /usr/local/srctmp/libqmail; \
git pull; \
./default.configure; \
make -s && make -s install-strip; \
# libdkim ##############################################
cd /usr/local/srctmp/indimail-mta/libdkim-x; \
git pull; \
./default.configure; \
make -s && make -s install-strip; \
# libsrs2 ##############################################
cd /usr/local/srctmp/indimail-mta/libsrs2-x; \
./default.configure; \
make -s && make -s install-strip; \
# indimail-mta #########################################
cd /usr/local/srctmp/indimail-mta/indimail-mta-x; \
./default.configure; \
sed -i 's/^cc/cc -s/' conf-ld; \
sed -i 's/ -g//' conf-cc; \
make; \
./svctool --config=users; \
make install-strip; \
# daemontools ##########################################
cd ../daemontools-x; \
./default.configure; \
sed -i 's/^cc/cc -s/' conf-ld; \
sed -i 's/ -g//' conf-cc; \
make && make install-strip; \
# ucspi-tcp ############################################
cd ../ucspi-tcp-x; \
./default.configure; \
sed -i 's/^cc/cc -s/' conf-ld; \
sed -i 's/ -g//' conf-cc; \
make && make install-strip; \
echo "Creating self-signed certificate"; \
/usr/sbin/svctool \
--config=cert --postmaster=postmaster@indimail.org \
--common_name=indimail.org > /dev/null 2>/var/log/build/cert.log; \
# ezmlm-idx ############################################
cd /usr/local/srctmp/ezmlm-idx/ezmlm-idx-x; \
git pull; \
sed -i 's/^cc/cc -s/' conf-ld; \
sed -i 's/^cc/cc -s/' conf-ldso; \
sed -i 's/ -g//' conf-cc; \
./default.configure; \
make && make install; \
# indimail-virtualdomains ##############################
cd /usr/local/srctmp/indimail-virtualdomains/indimail-x; \
git pull; \
./default.configure; \
make && make install-strip; \
# pam-multi ############################################
cd /usr/local/srctmp/indimail-virtualdomains/pam-multi-x; \
./default.configure; \
make && make install-strip; \
# nssd #################################################
cd ../nssd-x; \
./default.configure; \
make && make install-strip; \
# courier-imap #########################################
cd ../courier-imap-x; \
./default.configure; \
make && make install-strip; \
# fetchmail ############################################
cd ../fetchmail-x; \
./default.configure; \
make && make install-strip; \
# logalert #############################################
cd ../logalert-x; \
./default.configure; \
make && make install-strip; \
# procmail #############################################
cd ../procmail-x; \
./default.configure; \
make && make install-strip; \
# mpack ################################################
cd ../mpack-x; \
./default.configure; \
make && make install-strip; \
# flash ################################################
cd ../flash-x; \
./default.configure; \
make && make install-strip; \
# altermime #############################################
cd ../altermime-x; \
./default.configure; \
make && make install-strip; \
# ripmime ##############################################
cd ../ripmime-x; \
./default.configure; \
make && make install-strip; \
# fortune ##############################################
cd ../fortune-x; \
./default.configure; \
make && make install-strip; \
# indimail-spamfilter ##################################
cd ../indimail-spamfilter-x; \
./default.configure; \
make && make install-strip; \
# bogofilter-wordlist ##################################
cd ../bogofilter-wordlist-x; \
./default.configure; \
make && make install-strip; \
# iwebadmin ############################################
cd ../iwebadmin-x; \
./default.configure; \
make && make install-strip; \
# ircube ###############################################
cd ../ircube-x; \
./default.configure; \
make && make install-strip; \
# configure indimail-mta ###############################
cd /usr/local/srctmp/indimail-mta/indimail-mta-x; \
./create_services --add-boot --mbase=/home/mail --mysqlPrefix=/usr; \
# tinydnssec ###########################################
echo "building tinydnssec"; \
cd /usr/local/srctmp/tinydnssec/tinydnssec-x; \
git pull; \
./default.configure; \
sed -i 's/^cc/cc -s/' conf-ld; \
sed -i 's/ -g//' conf-cc; \
make; \
/usr/bin/core_perl/pod2man -s 8 -c '' "tinydns-sign" >tinydns-sign.8; \
make install-strip; \
echo "building dq"; \
cd dq-20161210; \
make; \
sh make-install.sh; \
cd ../curvedns-0.88; \
echo "building curvedns"; \
./default.configure; \
make; \
make install-strip; \
cd ..; ./dnssvc; \
echo "Start roundcube config"; \
cd /usr/share; \
tar xfz /usr/local/srctmp/roundcubemail.tar.gz; \
mv roundcubemail/plugins/* roundcubemail-1.6.0/plugins; \
/bin/rm -rf roundcubemail; \
mv roundcubemail-1.6.0 roundcubemail; \
chown -R root:root roundcubemail; \
chown apache:apache roundcubemail/temp roundcubemail/logs; \
cd roundcubemail; \
chmod 775 logs temp; \
mv config /etc/roundcubemail; \
ln -s /etc/roundcubemail config; \
systemctl disable mysqld 2>/dev/null; \
/usr/libexec/indimail/roundcube_config; \
echo "End roundcube config"; \
dnf -y install s-nail; \
/bin/rm -rf /usr/local/srctmp /usr/lib/libeps.la /usr/lib/libindimail.la \
/usr/lib/libqmail.la /usr/lib/libdkim.la /usr/lib/libflash.la \
/usr/lib/libnss_nssd.la /usr/lib/libsrs2.la /usr/lib/libqmail.a \
/usr/lib/libindimail.a /usr/lib/libcourier-unicode.a \
/usr/lib/libdkim.a /usr/lib/libsrs2.a /lib/security/pam-multi.la; \
dnf -y erase gcc autoconf automake make git \
xmlto docbook-dtds sgml-common docbook-style-xsl; \
/bin/rm -rf /run/* || true; \
) > /var/log/build/build.bin.log 2>&1 \
&& echo "Build Succeeded" || echo "Build Failed" && exit 1
&& test -d /var/indimail/mysqldb/data/indimail && echo "Build Completed" || echo "Build Failed" \
COPY .alias .bash_profile .bashrc .exrc .gfuncs .glogout .indent.pro .vimrc /root/
VOLUME ["/sys/fs/cgroup"]
VOLUME ["/run"]
ENTRYPOINT ["docker-entrypoint"]
CMD ["webmail"]
4 changes: 2 additions & 2 deletions indimail-src/stream9.src
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ RUN export HOSTNAME=indimail.org MYSQL_SOCKET=/run/mysqld/mysqld.sock \
wget -nv \
https://github.com/roundcube/roundcubemail/releases/download/1.6.0/roundcubemail-1.6.0-complete.tar.gz \
-O roundcubemail.tar.gz; \
) 2>&1 | tee -a /var/log/build/build.log \
&& echo "Build Completed"
) > /var/log/build/build.log 2>&1 \
&& (echo "Build Succeeded" && gzip /var/log/build/build.log) || (echo "Build Failed" && cat /var/log/build/build.log && exit 1)
4 changes: 2 additions & 2 deletions indimail-src/ubi8.src
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ RUN export HOSTNAME=indimail.org MYSQL_SOCKET=/run/mysqld/mysqld.sock \
./bootstrap; \
./configure --prefix=/usr; \
make; make install-strip; \
) 2>&1 | tee -a /var/log/build/build.log \
&& echo "Build Completed"
) > /var/log/build/build.log 2>&1 \
&& (echo "Build Succeeded" && gzip /var/log/build/build.log) || (echo "Build Failed" && cat /var/log/build/build.log && exit 1)

0 comments on commit c28d929

Please sign in to comment.