Add tests to Jenkinsfile
This commit is contained in:
parent
cdb9e502e6
commit
b5eb8959c9
|
@ -1,7 +1,7 @@
|
||||||
FROM debian:latest
|
FROM debian:latest
|
||||||
MAINTAINER Kameron Kenny <kkenny379@gmail.com>
|
MAINTAINER Kameron Kenny <kkenny379@gmail.com>
|
||||||
|
|
||||||
LABEL version="20241030100505"
|
LABEL version="20241030100627"
|
||||||
LABEL description="Debian Based syslog-ng"
|
LABEL description="Debian Based syslog-ng"
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
|
|
|
@ -16,7 +16,7 @@ pipeline {
|
||||||
stage("Test syslog-ng configuration") {
|
stage("Test syslog-ng configuration") {
|
||||||
steps {
|
steps {
|
||||||
sh '/usr/sbin/syslog-ng -s -f config/syslog-ng.conf --no-caps'
|
sh '/usr/sbin/syslog-ng -s -f config/syslog-ng.conf --no-caps'
|
||||||
sh 'for i in `ls -1 config/syslog-ng.conf.d/*.conf`; do /usr/sbin/syslog-ng -s -f config/syslog-ng.conf.d/${i} --no-caps; done'
|
sh 'for i in `ls -1 config/syslog-ng.conf.d/*.conf`; do /usr/sbin/syslog-ng -s -f ${i} --no-caps; done'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ services:
|
||||||
syslog-ng:
|
syslog-ng:
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
image: docker-registry1.in.thelinuxpro.net:5000/tlp/syslog-ng:20241030100505
|
image: docker-registry1.in.thelinuxpro.net:5000/tlp/syslog-ng:20241030100627
|
||||||
container_name: syslog-ng
|
container_name: syslog-ng
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
networks:
|
networks:
|
||||||
|
|
Loading…
Reference in New Issue