In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces the relevant knowledge of "how to build docker-gitlab-jenkins". In the operation of actual cases, many people will encounter such a dilemma. Then let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Docker installs yum-y install docker-iosystemctl enable dockerservice docker startdocker images to configure Ali Cloud Image acceleration
Enter Aliyun backstage
Enter the "Container Image Service"
Enter "Mirror acceleration"
Check "Accelerator address": https://q2n4xzh2.mirror.aliyuncs.com
# vim / etc/docker/daemon.json {"registry-mirrors": ["https://q2n4xzh2.mirror.aliyuncs.com"]} restart the dockersystemctl daemon-reloadservice docker restartgitlab initialization directory mkdir-p / data/gitlab create container docker run-- detach\-- hostname gitlab\-- publish 1443 publish 1222 publish 22\-name gitlab\-- restart always\-- volume / data/gitlab/config:/etc/gitlab\-- volume / data/gitlab/logs : / var/log/gitlab\-- volume / data/gitlab/data:/var/opt/gitlab\ gitlab/gitlab-ce:latest copy certificate mkdir-p / data/gitlab/config/sslcp / usr/local/openresty/nginx/conf/cert/code.weflys.com.* / data/gitlab/config/ssl/ modify configuration # vim / data/gitlab/config/gitlab.rbexternal_url 'https://code.weflys.com'nginx['redirect_http_to_https'] = truenginx ['ssl_certificate'] = "/ etc/gitlab/ssl/code.weflys.com.pem" nginx [' ssl_certificate_key'] = "/ etc/gitlab/ssl/code.weflys.com.key" gitlab_rails ['gitlab_shell_ssh_port'] = 1222
Description: Aliyun needs to open port 1222
Modify time zone docker cp / etc/timezone gitlab:/etc/timezonedocker cp / usr/share/zoneinfo/Asia/Shanghai gitlab:/etc/localtime restart service docker restart gitlab view log docker logs-f gitlab
Wait for gitlab to start successfully
Configure nginx agent server {listen 80; server_name code.weflys.com; rewrite ^ (. *) $https://$host$1 permanent;} server {listen 443 ssl; server_name code.weflys.com; root html; index index.html; ssl_certificate cert/code.weflys.com.pem; ssl_certificate_key cert/code.weflys.com.key; ssl_session_timeout 5m Ssl_ciphers ECDHEMurRSAMUE AES128MUGCMMuSHA256 include error.conf ECDHEVE ECDHVIEHV AESHV HIGHVOR null LLRC4; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_prefer_server_ciphers on; location / {proxy_pass https://127.0.0.1:1443;} Rc4 } jenkins initialization directory mkdir-p / data/jenkins/jenkins_home pull image docker pull jenkins/jenkins to create container docker run-d\-name jenkins\-v / data/jenkins/jenkins_home:/var/jenkins_home\-p 18095 docker pull jenkins/jenkins 8080\-p 50000 data/jenkins/jenkins_home 50000\-u 0\-- restart always\ jenkins/jenkins modify time zone docker cp / etc/timezone jenkins:/etc/timezonedocker cp / usr/share/zoneinfo/Asia/Shanghai jenkins:/etc/localtime startup container Docker start jenkins check log docker logs-f jenkins "how to build docker-gitlab-jenkins" is introduced here. Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.