Skip to content

๐Ÿ‘จโ€๐Ÿ’ป์ง ํ”„๋กœ๊ทธ๋ž˜๋ฐ๐Ÿ‘ฉโ€๐Ÿ’ป: ๋ฐ”๋‹๋ผ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ๋กœ ๊ตฌํ˜„ํ•œ ํƒ€์ด๋จธ๐Ÿ•—

License

Notifications You must be signed in to change notification settings

InSeong-So/js-timer.github.io

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

48 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ‘‹ ์ง ํ”„๋กœ๊ทธ๋ž˜๋ฐ ๋‘ ๋ฒˆ์งธ ์•ฑ! ๐Ÿ‘‹

๋ฐ”๋‹๋ผ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ๋กœ ๊ตฌํ˜„ํ•œ ํƒ€์ด๋จธ๐Ÿคฉ



๐Ÿ“œ ๊ธฐ๋Šฅ ๋ชฉ๋ก ๐Ÿ“œ



โœ๏ธ ์ปค๋ฐ‹ ๋ชฉ๋ก โœ๏ธ



๐Ÿ›  Contributors ๐Ÿ› 


InSeong-So

heeney

CI/CD ํ…Œ์ŠคํŠธ

aws ๊ฐ€์ž…
ec2 ami ์„ ํƒ(ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server), t2-micro, 22/80/9999, ํ‚ค ์ƒˆ๋กœ ์ƒ์„ฑ(jenkins-ec2)

window ์—์„œ๋Š” ํด๋” ๊ถŒํ•œ์„ ์ œ๊ฑฐํ•ด์ค€๋‹ค

cd ๋””๋ ‰ํ† ๋ฆฌ
ssh -i "jenkins-ec2.pem" AWS_IP

$ sudo apt update -y

$ sudo apt upgrade -y

$ sudo apt install -y openjdk-11-jdk

$ sudo apt install -y docker.io

$ sudo apt install -y nginx

$ wget -q -O - https://pkg.jenkins.io/debian/jenkins-ci.org.key | sudo apt-key add

$ echo deb http://pkg.jenkins.io/debian-stable binary/ | sudo tee /etc/apt/sources.list.d/jenkins.list

$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys FCEF32E745F2C3D5

$ sudo apt update -y

$ sudo apt install -y jenkins

$ sudo vi /etc/default/jenkins
HTTP_PORT=9999

$ sudo systemctl restart jenkins

http://ํผ๋ธ”๋ฆญIP:9999
[์ดˆ๊ธฐ๋น„๋ฐ€๋ฒˆํ˜ธ] sudo cat /var/lib/jenkins/secrets/initialAdminPassword

$ cd /etc/nginx

$ sudo rm nginx.conf

$ sudo vi nginx.conf

$ sudo systemctl reload nginx

$ sudo usermod -aG docker jenkins

$ sudo su -s /bin/bash jenkins

$ mkdir /var/lib/jenkins/.ssh

$ ssh-keygen -t rsa -b 4096 -C "wh-key" -f /var/lib/jenkins/.ssh/jenkins-github-wh

$ cat /var/lib/jenkins/.ssh/jenkins-github-wh.pub

์  ํ‚จ์Šค ๊ด€๋ฆฌ - Manage Credentials - add credential - SSH Username with private key
Scope๋ฅผ Global์˜ Jenkins Node๋กœ ์„ค์ •ํ•œ ๋’ค, Username ์„ ์•„๊นŒ ๋งŒ๋“ค์–ด์ค€ RSA Key์˜ ์ด๋ฆ„๊ณผ ๋™์ผํ•˜๊ฒŒ ์„ค์ •

$ cat /var/lib/jenkins/.ssh/jenkins-github-wh

๋Œ€์‹œ๋ณด๋“œ-์ƒˆ๋กœ์šดItem-Freestyle Project

About

๐Ÿ‘จโ€๐Ÿ’ป์ง ํ”„๋กœ๊ทธ๋ž˜๋ฐ๐Ÿ‘ฉโ€๐Ÿ’ป: ๋ฐ”๋‹๋ผ ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ๋กœ ๊ตฌํ˜„ํ•œ ํƒ€์ด๋จธ๐Ÿ•—

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 65.3%
  • CSS 33.1%
  • HTML 1.1%
  • Dockerfile 0.5%