Skip to content

Commit

Permalink
Changed the centos image to fedora, compatible to vm os image
Browse files Browse the repository at this point in the history
  • Loading branch information
athiruma committed Apr 9, 2024
1 parent 81eacaa commit f79a773
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 6 deletions.
13 changes: 13 additions & 0 deletions Docker/fedora-38-jenkins-slave/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

# This image for Jenkins slave
# located: quay.io/athiru/fedora38-podman:latest
# run the postfix service within the container
# mount /etc/postfix/main.cf file to the container

FROM quay.io/fedora/fedora:38

RUN dnf update -y && dnf install -y podman python3.9 git redis wget postfix
RUN printf "#!/bin/bash\npostfix start\ncat" > run.sh
RUN chmod 777 run.sh

ENTRYPOINT ["/run.sh"]
3 changes: 2 additions & 1 deletion jenkins/tenant/aws/ecoeng_01/PolicyJenkinsfileDaily
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ pipeline {
agent {
docker {
label 'haim-cloud-governance-worker'
image 'quay.io/athiru/centos-stream8-podman:latest'
image 'athiru/fedora38-podman:latest'
// Change based on the worker os
args '-u root -v /etc/postfix/main.cf:/etc/postfix/main.cf --privileged'
}
}
Expand Down
2 changes: 1 addition & 1 deletion jenkins/tenant/aws/ecoeng_01/TaggingJenkinsfileHourly
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pipeline {
agent {
docker {
label 'haim-cloud-governance-worker'
image 'quay.io/athiru/centos-stream8-podman:latest'
image 'athiru/fedora38-podman:latest'
args '-u root -v /etc/postfix/main.cf:/etc/postfix/main.cf --privileged'
}
}
Expand Down
2 changes: 1 addition & 1 deletion jenkins/tenant/aws/ecoeng_02/PolicyJenkinsfileDaily
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pipeline {
agent {
docker {
label 'haim-cloud-governance-worker'
image 'quay.io/athiru/centos-stream8-podman:latest'
image 'athiru/fedora38-podman:latest'
args '-u root -v /etc/postfix/main.cf:/etc/postfix/main.cf --privileged'
}
}
Expand Down
2 changes: 1 addition & 1 deletion jenkins/tenant/aws/ecoeng_02/TaggingJenkinsfileHourly
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pipeline {
agent {
docker {
label 'haim-cloud-governance-worker'
image 'quay.io/athiru/centos-stream8-podman:latest'
image 'athiru/fedora38-podman:latest'
args '-u root -v /etc/postfix/main.cf:/etc/postfix/main.cf --privileged'
}
}
Expand Down
2 changes: 1 addition & 1 deletion jenkins/tenant/aws/ecoeng_03/PolicyJenkinsfileDaily
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pipeline {
agent {
docker {
label 'haim-cloud-governance-worker'
image 'quay.io/athiru/centos-stream8-podman:latest'
image 'athiru/fedora38-podman:latest'
args '-u root -v /etc/postfix/main.cf:/etc/postfix/main.cf --privileged'
}
}
Expand Down
2 changes: 1 addition & 1 deletion jenkins/tenant/aws/ecoeng_03/TaggingJenkinsfileHourly
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pipeline {
agent {
docker {
label 'haim-cloud-governance-worker'
image 'quay.io/athiru/centos-stream8-podman:latest'
image 'athiru/fedora38-podman:latest'
args '-u root -v /etc/postfix/main.cf:/etc/postfix/main.cf --privileged'
}
}
Expand Down

0 comments on commit f79a773

Please sign in to comment.