mirror of
https://github.com/cna-bootcamp/lifesub.git
synced 2025-12-06 16:16:22 +00:00
add cicd
This commit is contained in:
parent
9b8e82cee3
commit
1a1e4ce912
6
deployment/Jenkinsfile
vendored
6
deployment/Jenkinsfile
vendored
@ -16,6 +16,7 @@ podTemplate(
|
|||||||
image: 'gradle:jdk17',
|
image: 'gradle:jdk17',
|
||||||
ttyEnabled: true,
|
ttyEnabled: true,
|
||||||
command: 'cat',
|
command: 'cat',
|
||||||
|
privileged: true,
|
||||||
volumes: [
|
volumes: [
|
||||||
hostPathVolume(mountPath: '/var/run/docker.sock', hostPath: '/var/run/docker.sock')
|
hostPathVolume(mountPath: '/var/run/docker.sock', hostPath: '/var/run/docker.sock')
|
||||||
]
|
]
|
||||||
@ -55,10 +56,13 @@ podTemplate(
|
|||||||
|
|
||||||
stage('Build Applications') {
|
stage('Build Applications') {
|
||||||
container('gradle') {
|
container('gradle') {
|
||||||
// Docker client 설치
|
// Docker client 설치 및 권한 설정
|
||||||
sh """
|
sh """
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y docker.io
|
apt-get install -y docker.io
|
||||||
|
groupadd -f docker
|
||||||
|
usermod -aG docker root
|
||||||
|
chmod 666 /var/run/docker.sock
|
||||||
"""
|
"""
|
||||||
|
|
||||||
sh """
|
sh """
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user