This commit is contained in:
hiondal 2025-02-18 00:54:49 +09:00
parent 9b8e82cee3
commit 1a1e4ce912

View File

@ -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 """