mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-09-03 21:14:26 +08:00
Fix: Fix for #146.
This commit is contained in:
parent
3370a9d1bc
commit
0ff0e80707
4 changed files with 30 additions and 2 deletions
1
.github/workflows/tags.yml
vendored
1
.github/workflows/tags.yml
vendored
|
@ -222,6 +222,7 @@ jobs:
|
|||
- Helm_chart_Tests
|
||||
- Build_Alpine
|
||||
- Build_Ubuntu
|
||||
- Build_Debian
|
||||
|
||||
steps:
|
||||
# Checkout
|
||||
|
|
|
@ -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
|
||||
|
|
14
integration-tests/external-tools-test/docker-compose.yml
Normal file
14
integration-tests/external-tools-test/docker-compose.yml
Normal 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" ]
|
13
integration-tests/external-tools-test/tests/test.sh
Executable file
13
integration-tests/external-tools-test/tests/test.sh
Executable 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
|
Loading…
Add table
Reference in a new issue