Jenkins test stage, Dockerfile with CMD and ENTRYPOINT

This commit is contained in:
Dominik Chilla 2019-06-13 23:31:01 +02:00
parent ffadf6a1dd
commit 1f884bdda0
4 changed files with 3 additions and 6 deletions

View File

@ -18,7 +18,7 @@ pipeline {
stage('Test image') {
steps {
script {
dockerImage.inside("--entrypoint='/entrypoint_test.sh'") {
dockerImage.inside() {
sh '/usr/bin/env'
}
}

View File

@ -21,6 +21,6 @@ RUN env; set -ex ; \
COPY app/*.py /app/
COPY entrypoint.sh /entrypoint.sh
COPY entrypoint_test.sh /entrypoint_test.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/usr/bin/python3", "/app/sos-milter.py"]

View File

@ -4,4 +4,4 @@ set -x
set -e
umask 0000
ulimit -n 1024
/usr/bin/python3 /app/sos-milter.py
#/usr/bin/python3 /app/sos-milter.py

View File

@ -1,3 +0,0 @@
#!/bin/bash
/bin/sleep infinity