/images/avatar.jpg

木木飞

Centos8搭建gitlab和gitlab-Runner

docker-compose.yml 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 version:'3'services:gitlab.abc.com:container_name:gitlab.abc.comimage:gitlab/gitlab-ce:latest# image: gitlab/gitlab-ce:11.0.1-ce.0restart:alwaysprivileged:trueenvironment:GITLAB_OMNIBUS_CONFIG:|external_url 'https://gitlab.abc.com' gitlab_rails['time_zone'] = 'Asia/Shanghai' nginx['enable'] = false prometheus_monitoring['enable'] = false gitlab_workhorse['listen_network'] = "tcp" gitlab_workhorse['listen_addr'] = ":19900" gitlab_rails['gitlab_shell_ssh_port'] = 19901ports:- "19900:19900"- "19901:22"- "19091:9090"volumes:- "./ssl:/etc/gitlab/ssl"- "/data/gitlab.abc.com/config:/etc/gitlab:rw"- "/data/gitlab.abc.com/logs:/var/log/gitlab:rw"- "/data/gitlab.abc.com/data:/var/opt/gitlab:rw"- "/data/gitlab.abc.com/backups:/var/opt/gitlab/backups:rw"gitlab-runner:restart:alwaysimage:gitlab/gitlab-runnerdepends_on:- gitlab.abc.comvolumes:- /data/gitlab/gitlab-runner/config:/etc/gitlab-runner:Z-

推荐写博客的在线工具

配图工具 一篇文章如果是存文字 , 感官会差很多 . 有个高质量的图片会让枯燥的博文增色不少. 这是一个很方便的在线配图工具,点赞啊 http://placeimg.com/ 这里使用的图片链接

如何升级centos的内核版本

如何升级centos的内核版本 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 rpm -import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm # list all kernel yum --disablerepo="*" --enablerepo="elrepo-kernel" list # use newest kernel yum --enablerepo=elrepo-kernel -y install