setup - jenkins

$ mkdir jenkins

$ mkdir jenkins/vol

$ sudo chown 1000 ./jenkins/vol/
docker run -d -p 8181:8080 -p 50000:50000 -v $PWD/jenkins/vol:/var/jenkins_home --name jenkins jenkins
💡 [http://localhost:8181/](http://ubuntu-server:8181/)

Unlock Jenkins 진행

docker exec jenkins cat /var/jenkins_home/secrets/initialAdminPassword

비밀번호 확인

install suggested plugins

[설치 오류]

설치 완료 후 상단 빨간색 숫자 클릭 후 새버전 link 복사

docker container exec -u 0 -it jenkins bash

wget [http://updates.jenkins-ci.org/download/war/2.89.2/jenkins.war](http://updates.jenkins-ci.org/download/war/2.89.2/jenkins.war)

mv ./jenkins.war /usr/share/jenkins

chown jenkins:jenkins /usr/share/jenkins/jenkins.war

exit

docker restart jenkins

ngrok http 8181 --authtoken=1WVrfwsDJBR6Si7sHXgzYLVa5aq_M8RWWLqpxbGy1g9WKew2 > /dev/null &

curl [http://localhost:4040/api/tunnels](http://localhost:4040/api/tunnels)

좋은 웹페이지 즐겨찾기