Skip to content

Commit

Permalink
added error check
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhangui committed Jan 2, 2024
1 parent 03ec967 commit 4e3d771
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion indimail-src/alpine.indimail-mta.bin
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ LABEL org.opencontainers.image.source https://github.com/indimail/indimail-docke
RUN export HOSTNAME=indimail.org \
MYSQL_SOCKET=/run/mysqld/mysqld.sock \
&& mkdir -p /root /usr/local/srctmp /var/log/build \
&& touch /usr/local/srctmp/incomplete; \
&& (set -e; \
cd /usr/local/srctmp; \
for i in libqmail indimail-mta ezmlm-idx tinydnssec indimail-virtualdomains indimail-docker; \
Expand Down Expand Up @@ -96,8 +97,9 @@ RUN export HOSTNAME=indimail.org \
libev-dev libsodium-dev m4; \
/bin/rm -rf /run/* || true; \
echo "Completed stage 3"; \
/bin/rm -f /usr/local/srctmp/incomplete; \
) > /var/log/build/build.bin.log 2>&1 \
&& (echo "Build Succeeded" && gzip /var/log/build/build.bin.log) || (echo "Build Failed" && cat /var/log/build/build.bin.log && exit 1)
&& (test -f /usr/local/srctmp/incomplete && echo "Build Failed" && cat /var/log/build/build.bin.log && exit 1) || (echo "Build Succeeded" && gzip /var/log/build/build.bin.log)
COPY .alias .bash_profile .bashrc .exrc .gfuncs .glogout .indent.pro .vimrc /root/
ENTRYPOINT ["docker-entrypoint"]
CMD ["indimail-mta"]
4 changes: 3 additions & 1 deletion indimail-src/alpine.indimail.bin
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ LABEL org.opencontainers.image.source https://github.com/indimail/indimail-docke
RUN export HOSTNAME=indimail.org \
MYSQL_SOCKET=/run/mysqld/mysqld.sock \
&& mkdir -p /root /usr/local/srctmp /var/log/build \
&& touch /usr/local/srctmp/incomplete; \
&& (set -e; \
cd /usr/local/srctmp; \
for i in libqmail indimail-mta ezmlm-idx tinydnssec indimail-virtualdomains indimail-docker; \
Expand Down Expand Up @@ -102,8 +103,9 @@ RUN export HOSTNAME=indimail.org \
libev-dev libsodium-dev m4; \
/bin/rm -rf /run/* || true; \
echo "Completed stage 3"; \
/bin/rm -f /usr/local/srctmp/incomplete; \
) > /var/log/build/build.bin.log 2>&1 \
&& (echo "Build Succeeded" && gzip /var/log/build/build.bin.log) || (echo "Build Failed" && cat /var/log/build/build.bin.log && exit 1) \
&& (test -f /usr/local/srctmp/incomplete && echo "Build Failed" && cat /var/log/build/build.bin.log && exit 1) || (echo "Build Succeeded" && gzip /var/log/build/build.bin.log)
&& (test -d /var/indimail/mysqldb/data/indimail && echo "MySQL db creation succeeded") || (echo "MySQL db creation failed" && exit 1)
COPY .alias .bash_profile .bashrc .exrc .gfuncs .glogout .indent.pro .vimrc /root/
ENTRYPOINT ["docker-entrypoint"]
Expand Down

0 comments on commit 4e3d771

Please sign in to comment.