mirror of
https://github.com/chillout2k/sos-milter.git
synced 2025-12-11 01:30:19 +00:00
Jenkins docker.inside()
This commit is contained in:
parent
4c010af6c2
commit
cf5004fcc6
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@ -25,9 +25,9 @@ pipeline {
|
||||
steps {
|
||||
script {
|
||||
dockerImageObj.inside() {
|
||||
sh 'echo "INSIDE CONTAINER!"'
|
||||
sh '/usr/bin/python3 /app/sos-milter.py &'
|
||||
sh 'sleep 5; if [ -S /socket/sos-milter ]; then exit 0; else exit 1; fi'
|
||||
sh 'echo "Performing application tests inside sos-milter container..."'
|
||||
sh 'export MILTER_SOCKET=inet:8020 && /usr/bin/python3 /app/sos-milter.py &'
|
||||
sh 'sleep 5; /bin/nc -z -n -v -w 1 127.0.0.1 8020 || exit 1'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -12,7 +12,7 @@ RUN env; set -ex ; \
|
||||
&& apt-get -qq --no-install-recommends install \
|
||||
python3-pip python3-setuptools \
|
||||
libmilter1.0.1 libmilter-dev procps net-tools \
|
||||
gcc python3-dev \
|
||||
gcc python3-dev netcat-traditional \
|
||||
&& /usr/bin/pip3 install pymilter \
|
||||
&& /usr/bin/pip3 install dnspython \
|
||||
&& /bin/mkdir /config /socket /app \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user