OS/Orange PI
Orange Pi 5 : Docker - Jenkins
파란크리스마스
2023. 1. 24. 18:41
728x90
출처
Jenkins 도커 이미지 다운로드
orangepi@orangepi5:~$ docker pull jenkins/jenkins:lts
lts: Pulling from jenkins/jenkins
c3e6129b48b6: Pull complete
Digest: sha256:f8b19176b7d4f62cc40ae8605fbbfb2abc6ed7aec9f36989fc7b3e616371b956
Status: Downloaded newer image for jenkins/jenkins:lts
docker.io/jenkins/jenkins:lts
Jenkins 도커 이미지 실행 (브릿지모드)
orangepi@orangepi5:~$ docker run --name jenkins-docker \
-p 7979:8080 \
-p 50000:50000 \
-d -v /var/run/docker.sock:/var/run/docker.sock \
-v jenkins_home:/var/jenkins_home \
-u root jenkins/jenkins:lts
7892e850a3702ee25690e80a84ae661619cd459a116164d80d2874472526a199
Jenkins 실행 확인
orangepi@orangepi5:~$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7892e850a370 jenkins/jenkins:lts "/usr/bin/tini -- /u…" 3 minutes ago Up 3 minutes 0.0.0.0:50000->50000/tcp, :::50000->50000/tcp, 0.0.0.0:7979->8080/tcp, :::7979->8080/tcp jenkins-docker
Jenkins 어드민 암호 확인
orangepi@orangepi5:~$ docker logs jenkins-docker
Running from: /usr/share/jenkins/jenkins.war
webroot: EnvVars.masterEnvVars.get("JENKINS_HOME")
... 생략 ...
2023-01-24 09:51:37.750+0000 [id=40] INFO jenkins.install.SetupWizard#init:
*************************************************************
*************************************************************
*************************************************************
Jenkins initial setup is required. An admin user has been created and a password generated.
Please use the following password to proceed to installation:
6a5f9d0833fe467da39d124d93547dab
This may also be found at: /var/jenkins_home/secrets/initialAdminPassword
*************************************************************
*************************************************************
*************************************************************
2023-01-24 09:51:55.013+0000 [id=40] INFO jenkins.InitReactorRunner$1#onAttained: Completed initialization
2023-01-24 09:51:55.051+0000 [id=24] INFO hudson.lifecycle.Lifecycle#onReady: Jenkins is fully up and running
2023-01-24 09:51:55.947+0000 [id=58] INFO h.m.DownloadService$Downloadable#load: Obtained the updated data file for hudson.tasks.Maven.MavenInstaller
2023-01-24 09:51:55.948+0000 [id=58] INFO hudson.util.Retrier#start: Performed the action check updates server successfully at the attempt #1
Jenkins 접속
접속주소 : http://192.168.1.26:7979/