簡體   English   中英

將 Jenkins 管道部署到 AWS 服務器

[英]Deploy Jenkins pipeline to AWS server

首先,我有兩台AWS Ubuntu 服務器,我可以通過 windows cmd 使用Z1787D7646304397ADC78訪問它們。 但是,我在其中一個上安裝了Jenkins

我的任務是使用第一台服務器的 Jenkins 管道將簡單文件從GitHub 存儲庫部署到第二台服務器。 澄清一下,服務器 2 中的結果應該是來自 GitHub 的文件 output,由服務器 1 中的 Jenkins 管理。

換句話說:

服務器 1:IP = XXX.XXX.XXX.XXX:8080 包含用於管理服務器 2 的 output 的 Jenkins。

GitHub:NodeJs 和 HTML 文件,輸出“Hello World”。

Server 2: IP = YYY.YYY.YYY.YYY should output "Hello World" by just using the IP as URL.

所以,我是新手,正在尋找一步一步的解釋。 謝謝!

步驟 1:安裝 nginx 服務器 2,配置 nginx 並知道 static 文件的服務位置。

Step 2: Bring the ssh key to server 1, install nodejs, rsync in server 1 and also create a Jenkins pipeline which can pull the source code from Github, install and build that source code, and rsync to the location where the nginx serves content

我認為這是一種簡單易行的設置方法。 有很多更好的方法,你應該研究 Jenkins 和 Node 是如何工作的

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM