728x90
[Jenkins] 우분투(Ubuntu) 22.04에 젠킨스 설치
1. 젠킨스 설치
sudo apt-get update
sudo apt install openjdk-11-jdk -y
curl -fsSL https://pkg.jenkins.io/debian/jenkins.io-2023.key | sudo tee \
/usr/share/keyrings/jenkins-keyring.asc > /dev/null
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \
https://pkg.jenkins.io/debian binary/ | sudo tee \
/etc/apt/sources.list.d/jenkins.list > /dev/null
sudo apt-get update
sudo apt-get install fontconfig openjdk-11-jre
sudo apt-get install jenkins
2. 젠킨스 실행 확인
systemctl status jenkins
ps -ef | grep jenkins
3. Docker Image Push를 위한 권한 부여
3-1. 도커 설치
sudo apt-get install apt-transport-https ca-certificates \
curl gnupg-agent software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] \
https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update -y
sudo apt-get install docker-ce docker-ce-cli containerd.io -y
systemctl status docker
3-2. 권한 부여
sudo usermod -aG docker ubuntu
sudo usermod -aG docker jenkins
반응형
'💽 CICD > Jenkins' 카테고리의 다른 글
[Jenkins] Execute Shell 사용하기 (0) | 2023.10.26 |
---|---|
[Jenkins] Pipeline 구성 (3) Docker Image ECR에 Push (0) | 2023.08.08 |
[Jenkins] Pipeline 구성 (2) Pipeline & lint (0) | 2023.08.03 |
[Jenkins] Pipeline 구성 (1) configure & Jenkinsfile (0) | 2023.08.02 |
[Jenkins] 관리자(admin) 암호 재설정 (0) | 2023.08.01 |