mirror of
https://github.com/chillout2k/sos-milter.git
synced 2025-12-12 18:10:18 +00:00
Jenkins test stage, Dockerfile with CMD and ENTRYPOINT
This commit is contained in:
parent
ffadf6a1dd
commit
1f884bdda0
@ -18,7 +18,7 @@ pipeline {
|
||||
stage('Test image') {
|
||||
steps {
|
||||
script {
|
||||
dockerImage.inside("--entrypoint='/entrypoint_test.sh'") {
|
||||
dockerImage.inside() {
|
||||
sh '/usr/bin/env'
|
||||
}
|
||||
}
|
||||
|
||||
@ -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"]
|
||||
|
||||
@ -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
|
||||
|
||||
@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
/bin/sleep infinity
|
||||
Loading…
Reference in New Issue
Block a user