일반적인 Jenkins 설치
https://jenkins.io/
https://jenkins.io/doc/pipeline/tour/getting-started/
https://pkg.jenkins.io/debian/
Docker Jenkins 설치
https://docs.docker.com/samples/library/jenkins/
https://jenkins.io/doc/book/installing/
https://hub.docker.com/_/jenkins/
Embedded Jenkins
https://jenkins.io/solutions/embedded/
Jenkins and Slack 설치
https://jojoldu.tistory.com/139
Java Build
https://jenkins.io/doc/tutorials/build-a-java-app-with-maven/
DockerFile 기반의 Jenkins 이용
https://medium.com/@NovaWoo/docker-%EC%99%80-jenkins-%EB%A5%BC-%EC%82%AC%EC%9A%A9%ED%95%9C-%EC%95%88%EB%93%9C%EB%A1%9C%EC%9D%B4%EB%93%9C-ci-1-9510178a525f
https://jojoldu.tistory.com/139
Docker Volumes 원리 (추후 자세한 설명)
docker 이용시, 각 command 이용할 경우, 동작되는 방식
https://docs.docker.com/storage/volumes/
https://docs.docker.com/storage/bind-mounts/
https://docs.docker.com/storage/tmpfs/
Docker 기본동작 (1번에 복사하여 설명)
https://docs.docker.com/get-started/
2. Jenkins 설정
Docker 기반으로 쉽게 Jenkins를 동작
http://192.168.1.100:50000
http://192.168.1.100:8080
http://www.itworld.co.kr/news/107527
http://www.nextree.co.kr/ciwa-execute-shelleul-iyonghan-jadongbaepo-buteo-seobeo-silhaengggaji/
https://github.com/softwaresaved/build_and_test_examples/tree/master/jenkins
2.1 기타 문제사항
https://docs.docker.com/storage/volumes/
https://docs.docker.com/storage/bind-mounts/
https://docs.docker.com/storage/tmpfs/
Docker 기본동작 (1번에 복사하여 설명)
https://docs.docker.com/get-started/
$ sudo docker run -d -name jenkins -p 8080:8080 -p 50000:50000 jenkins or $ sudo docker run -p 8080:8080 -p 50000:50000 -v /your/home:/var/jenkins_home jenkins or $ sudo docker run -p 8080:8080 -p 50000:50000 -v /var/jenkins_home jenkins
$ cd $HOME
$ mkdir dockers dockers/jenkins_home // /var/jenkins_home 이곳에 저장
$ sudo docker run -p 8080:8080 -p 50000:50000 -v $HOME/dockers/jenkins_home:/var/jenkins_home jenkins
$ sudo docker run -d -p 8080:8080 -p 50000:50000 -v $HOME/dockers/jenkins_home:/var/jenkins_home jenkins
$ sudo docker run --rm -p 8080:8080 -p 50000:50000 -v $HOME/dockers/jenkins_home:/var/jenkins_home jenkins
$ sudo docker run -d --rm -p 8080:8080 -p 50000:50000 -v $HOME/dockers/jenkins_home:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock jenkins
$ cat $HOME/dockers/jenkins_home/secrets/initialAdminPassword
45ece99138e843b599c467b29ddd081e
$ sudo docker ps // 작동 중인 Container/Image 상태보기 $ sudo docker stop // 동작중 Container 정지 $ sudo docker rm // Container 제거 $ sudo docker rmi // Image 제거
$ sudo docker images // 설치된 Image들 전체보기 $ sudo docker stats // Container 상태확인 $ sudo docker logs // Container Log 파악
2. Jenkins 설정
Docker 기반으로 쉽게 Jenkins를 동작
http://192.168.1.100:50000
http://192.168.1.100:8080
............................ ************************************************************* ************************************************************* ************************************************************* Jenkins initial setup is required. An admin user has been created and a password generated. Please use the following password to proceed to installation: 499ba15a6e3d4099a9a457b199281c63 // 이 Password를 복사하여 8080 Port에서 인증 This may also be found at: /var/jenkins_home/secrets/initialAdminPassword ......................
http://www.itworld.co.kr/news/107527
http://www.nextree.co.kr/ciwa-execute-shelleul-iyonghan-jadongbaepo-buteo-seobeo-silhaengggaji/
https://github.com/softwaresaved/build_and_test_examples/tree/master/jenkins
2.1 기타 문제사항
- mkdir 에러
https://stackoverflow.com/questions/46703596/jenkins-error-in-mkdir-command
sudo vi /etc/group jenkins:x:130:jhleehttps://www.facebook.com/groups/712393792190261/
https://www.notion.so/Jenkins-Dockerfile-37407a3b5c6446b68e18f3412d3dbf06
일단 기본적으로 동작을 확인했으나, 추후 시간이 다시 있을 경우, 블로그를 업데이트 진행
관련링크만,!!!