gitlab

从实战角度超级详解中大型企业微服务化的六大核心关键技术

痞子三分冷 提交于 2020-02-24 15:38:27
在之前文章: 超全详解Java开发环境搭建 一文中,部分博友提出程序的自动化部署等相关问题,本篇文章就来解决该问题,即企业微服务化,如何实现服务的自动化部署?服务自动化部署需要哪些技术? 本篇文章从实战角度讲解中大型公司微服务化最核心最关键的六大技术,即jenkins,docker,maven,git,gitlab,harbor(本篇文章未讲解nexus,在后续文章再讲解),关于六大技术,会在接下来的文章中从架构,理论,实战,常见难点和常见误区等角度精细化讲解。 Tip:本篇文章适合具有一定linux和docker基础的读者,对于不熟悉linux和docker的读者朋友,可以先关注,后续文章会对每个专题从入门到架构进行讲解。 一 docker安装 1.卸载旧版本 yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-engine 2.安装相关工具 yum install -y yum-utils \ device-mapper-persistent-data \ lvm2 3.选择稳定仓库 yum-config-manager \ --add-repo

How to reattach a detached HEAD in GIT

寵の児 提交于 2020-02-23 09:49:09
问题 (I can see there are many questions about this but I haven't found one that solves my exact problem). I'm running gitlab-ci and when the runner checks out my code it does so as a detached head. Here is what I get when running a git status command in the runners directory. git status # HEAD detached at 847fe59 nothing to commit, working directory clean What I need to do for what I am working on is to re-attach this head back to my develop branch and then git pull in the full repo for use in a

GitLab pod. Readiness probe failed: Get http://10.233.124.46:8005/health_check

一个人想着一个人 提交于 2020-02-23 07:02:20
问题 Use https://docs.gitlab.com/ce/install/kubernetes/gitlab_omnibus.html#configuring-and-installing-gitlab for install GitLab. But I have a problem. I see in describe gitlab pod: Warning Unhealthy 1m (x195 over 39m) kubelet, k8s-m3.me Readiness probe failed: Get http://10.233.105.52:8005/health_check?token=SXBAQichEJasbtDSygrD: dial tcp 10.233.105.52:8005: getsockopt: connection refused Kubernetes v1.10.2 # kubectl get pods -owide NAME READY STATUS RESTARTS AGE IP NODE gitlab1-gitlab-75576c4589

Where to find GitLab installation directory?

自作多情 提交于 2020-02-23 06:56:06
问题 I am setting up a SSL certificate on my GitLab installation. I am trying to find the root directory to upload a file ( for ssl validation via http ) but I am not sure where is the Gitlab root Dir. Kindly, point me to where to look or find it? 回答1: Directory structure Omnibus-gitlab uses four different directories. /opt/gitlab holds application code for GitLab and its dependencies. /var/opt/gitlab holds application data and configuration files that gitlab-ctl reconfigure writes to. /etc/gitlab

Gitlab CI - Publish Failed Test Results to Pages

纵饮孤独 提交于 2020-02-23 04:15:08
问题 I'm creating a simple java project using Gradle which generates a test report (i.e. BDD Cucumber, JUnit, etc.). This project is deployed to Gitlab where the project is built as part of the Gitlab CI process. My JUnit reports are generated in the folder build/reports/tests/test/ relative to the project path (as an index.html and some CSS files, etc.). How do I configure my .gitlab-ci.yml to publish the content of build/reports/tests/test/ to the Gitlab Pages even after my test cases fail ?

docker启动gitlab

蓝咒 提交于 2020-02-22 19:51:45
docker pull gitlab/gitlab-ce:latest mkdir -p /opt/dockerdata/gitlab/config /opt/dockerdata/gitlab/logs /opt/dockerdata/gitlab/data docker run -d -h gitlab -p 10022:22 -p 10080:80 -p 10443:443 -v /opt/dockerdata/gitlab/config:/etc/gitlab -v /opt/dockerdata/gitlab/logs:/var/log/gitlab -v /opt/dockerdata/gitlab/data:/var/opt/gitlab --restart=always --name mygitlab gitlab/gitlab-ce:latest 来源: https://www.cnblogs.com/Mrsun123/p/12346607.html

gitlab-ce 备份还原 迁移新系统

狂风中的少年 提交于 2020-02-21 09:34:39
https://blog.csdn.net/foupwang/article/details/94362292 迁移前首先要保证新旧服务器上的GitLab版本号一致。 查看当前GitLab版本 cat /opt/gitlab/embedded/service/gitlab-rails/VERSION 显示为 10.3.3。 1 新服务器升级系统 内核和软件一起升级 yum -y update 升级完成后查看系统版本号 cat /etc/redhat-release 输出如下:CentOS Linux release 7.6 2 新服务器上安装GitLab 安装教程在这里 安装完成后,最新版本的GitLab是 12.0.1。相当于说,要在旧服务器上把GitLab从10.3.3升级到12.0.1。 3 旧服务器升级GitLab GitLab不能跨版本升级,需一个一个大版本升级。例如:10.8.7是10的最后一个版本,11.11.0是11的最后一个版本,则从 10.3.3 升级到 12.0.1,需要经过 10.3.3 -> 10.8.7 -> 11.11.0 -> 12.0.1。。 yum install -y gitlab-ce-10.8.7-ce.0.el7 yum install -y gitlab-ce-11.11.0-ce.0.el7 yum install -y gitlab

Gitlab docker executor - cache image after before_script

可紊 提交于 2020-02-20 07:01:48
问题 In gitlab-ci there's an option in the .gitlab-ci.yml file to execute commands before any of the actual script runs, called before_script . .gitlab-ci.yml examples illustrate installing ancillary programs here. However, what I've noticed is that these changes are not cached in Docker when using a docker executor. I had naively assumed that after running these commands, docker would cache the image, so for the next run or test, docker would just load the cached image produced after before

11、gitlab和Jenkins整合(1)

随声附和 提交于 2020-02-17 12:30:10
1、在jenkins上安装git: 因为jenkins需要在gitlab上拉取代码; 具体的git安装,参考"4、git和gitlab的配置——4.2、git编译安装:"; 2、在gitlab上配置jenkins服务器上的ssh key: (1)在jenkins服务器上生成秘钥对: ssh-keygen (2)在gitlab上配置jenkins的公钥: 这样jenkins服务器可以连接gitlab上所有的项目; 也可以为jenkins服务器分配一个gitlab用户,在这个gitlab用户上配置jenkins服务器上的公钥,以达到限制jenkins访问项的目的; 3、在jenkins上构建php项目: 将gitlab上的代码发布到服务器上; (1)创建项目: 1) 2) (2)配置: 1)配置丢旧的构建: 2)配置 ssh 方式连接gitlab仓库: A、补充:配置http方式连接gitlab仓库: a、设置http连接gitlab的用户: b、设置http连接url: 3)设置构建执行脚本: 这里主要是发布代码的脚本; (3)发送jenkins服务器的公钥: 一般是将jenkins服务器上的公钥发送到web服务器上,方便构建代码后无密码便可发布; 这里用作实验,将构建后的代码发送到gitlab服务器上; ssh-copy-id -i ~/.ssh/id_dsa.pub root

gitlab初始化项目上传

亡梦爱人 提交于 2020-02-15 08:46:03
1、现在Gitlab新建一个项目空间;例如: https://mp.csdn.net/console/editor/html 2、本地项目,例如example,进入example,打开Git命令 3、git init 4、git remote add origin https://mp.csdn.net/console/editor/html 5、git pull origin master 6、git add . 7、git commit -m'init' 8、git push -u origin master 来源: CSDN 作者: WS_HSY90 链接: https://blog.csdn.net/WS_HSY90/article/details/104311676