YuCheng's Site
  • Home
  • About
  • Skills
  • Experiences
  • Education
  • Posts
  • Tags
  • CI/CD
  • Docker
  • Jenkins
  • Ubuntu
Hero Image
[DevOps] CI/CD-01 安裝 Jenkins

環境 硬體部分官方提到: RAM > 256NB,最好 2GB,空間留至少 10GB 放置 Docker 映像檔。 環境部分需要安裝 Java (8 或 11) 和 Docker 安裝 Docker # 卸載舊的 docker sudo apt-get remove -y docker docker-engine docker.io containerd runc # 安裝必要的套件 # apt-transport-https 讓套件管理程式可以透過 https 協定使用 repo sudo apt-get update sudo apt-get install -y \ apt-transport-https \ ca-certificates \ curl \ gnupg \ lsb-release # 添加 Docker 官方 GPG key curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg # 設置 stable 版本的 docker repository echo \ "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null # 安裝 Docker Engine sudo apt-get update sudo apt-get install -y docker-ce docker-ce-cli containerd.io # 下載測試 image 並執行,預期會得到輸出然後 container 就會結束 sudo docker run hello-world 執行 Jenkins 接著執行 Jenkins image,取得首次登入密碼

Monday, October 18, 2021 Read
Navigation
  • About
  • Skills
  • Experiences
  • Education
Contact me:
  • [email protected]
  • tigernaxoJr
  • Chen Yu Cheng
  • +886919681059

Stay up to date with email notification


By entering your email address, you agree to receive the newsletter of this website.

Toha Theme Logo Toha
© 2020 Copyright.
Powered by Hugo Logo