準備一臺Centos7至少記憶體為4G的機器。安裝Docker
curl -sSL /file/2020/04/30/20200430161020_203305.jpg | sh
安裝Gitlab
sudo yum install -y git vim gcc glibc-static telnetsudo yum install -y curl policycoreutils-python openssh-serversudo systemctl enable sshdsudo systemctl start sshdsudo yum install postfixsudo systemctl enable postfixsudo systemctl start postfix
新建 /etc/yum.repos.d/gitlab-ce.repo 檔案[gitlab-ce]name=Gitlab CE Repositorybaseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/gpgcheck=0enabled=1
開始安裝
sudo EXTERNAL_URL="http://www.syappmp.com" yum install -y gitlab-cesudo gitlab-ctl reconfigure
安裝gitlab ci runner域名設定一個內網可以訪問到這臺機器IP的域名訪問 /file/2020/04/30/20200430161032_203306.jpg 可以看到你安裝的gitlab設定好使用者名稱密碼
curl -L /file/2020/04/30/20200430161033_203307.jpg.sh | sudo bashsudo yum install gitlab-ci-multi-runner -ysudo usermod -aG docker gitlab-runnersudo service docker restartsudo gitlab-ci-multi-runner status
GitLab CI設定關注我待更新建立NuxtJS開發機安裝好NodeJS, Yarn具體安裝百度有很多直接場景Nuxt專案返回 gitlab-runner: Service is running! 標示安裝成功
yarn create nuxt-app yunliantaidacd yunliantaidanpm run dev
應用現在執行在 http://localhost:3000 上執行。
最新評論