Fix: Fix for #146.

This commit is contained in:
Bojan Čekrlić 2023-10-27 17:44:20 +02:00
parent 3370a9d1bc
commit 0ff0e80707
4 changed files with 30 additions and 2 deletions

View file

@ -222,6 +222,7 @@ jobs:
- Helm_chart_Tests
- Build_Alpine
- Build_Ubuntu
- Build_Debian
steps:
# Checkout

View file

@ -10,7 +10,7 @@ do_alpine() {
apk add --upgrade cyrus-sasl cyrus-sasl-static cyrus-sasl-digestmd5 cyrus-sasl-crammd5 cyrus-sasl-login cyrus-sasl-ntlm
apk add postfix
apk add opendkim
apk add --upgrade ca-certificates tzdata supervisor rsyslog musl musl-utils bash opendkim-utils libcurl jsoncpp lmdb logrotate
apk add --upgrade ca-certificates tzdata supervisor rsyslog musl musl-utils bash opendkim-utils libcurl jsoncpp lmdb logrotate netcat-openbsd
}
do_ubuntu() {
@ -24,7 +24,7 @@ do_ubuntu() {
apt-get install -y libsasl2-modules
apt-get install -y postfix
apt-get install -y opendkim
apt-get install -y ca-certificates tzdata supervisor rsyslog bash opendkim-tools curl libcurl4 libjsoncpp25 sasl2-bin postfix-lmdb logrotate cron
apt-get install -y ca-certificates tzdata supervisor rsyslog bash opendkim-tools curl libcurl4 libjsoncpp25 sasl2-bin postfix-lmdb logrotate cron net-tools ${RELEASE_SPECIFIC_PACKAGES}
}
if [ -f /etc/alpine-release ]; then

View file

@ -0,0 +1,14 @@
version: '3.7'
services:
tests:
hostname: "postfix"
image: "boky/postfix"
restart: no
volumes:
- "./tests:/tests"
environment:
FORCE_COLOR: "1"
ALLOWED_EMPTY_SENDER_DOMAINS: "example.org"
POSTFIX_smtpd_end_of_data_restrictions: "check_client_access static:discard"
entrypoint: [ "/bin/sh", "-c" ]
command: [ "/tests/test.sh" ]

View file

@ -0,0 +1,13 @@
#!/bin/sh
set -e
set -x
if ! hash netstat; then
echo "netstat not found!" >2
exit 1
fi
if ! hash nc; then
echo "netcat not found!" >2
exit 1
fi