个人练习之-jenkins

虚拟机环境搭建(买不起服务器 like me)

重点:

0 虚拟机防火墙关闭

systemctl stop firewalld.service

systemctl disable firewalld.service
1 (centos7.6)网络配置 (vmware 编辑 -> 虚拟网络编辑器 -> 选择NAT模式 ->NAT设置查看网关)

shell 复制代码
	vim /etc/sysconfig/network-scripts/ifcfg-en33

	BOOTPROTO: static
	IPADDR:IP地址(前三段要和网关地址前三段一致)
	GATEWAY:网关(使用查看到的网关即可)
	NETMASK:子网掩码(固定的 255.255.255.0)
	ONBOOT:开机启动网络,设置为yes

2 gitlab docker 安装 docker-compose

yaml 复制代码
version: '3.1'
services:
  gitlab: 
    image: 'gitlab/gitlab-ce:latest'
    container_name: gitlab
    restart: always
    environment:
      GITLAB_OMNIBUS_CONFIG: |
        external_url 'http://虚拟机的ip:8929'
        gitlab_rails['gitlab_shell_ssh_port'] = 2224
    ports:
      - '8929:8929'
      - '2224:2224'
    volumes:
      - './config:/etc/gitlab'
      - './log:/var/log/gitlab'
      - './data:/var/opt/gitlab'

3 jenkins docker 安装 docker-compose

yaml 复制代码
version: '3.1'
services:
  jenkins: 
    image: 'jenkins/jenkins:2.319.1-lts'
    container_name: jenkins
    ports:
      - 8080:8080
      - 50000:50000
    volumes:
      - './data:/var/jenkins_home/'
相关推荐
柳鲲鹏几秒前
交叉编译:strip: Unable to recognise the format of the input file xx.c.o
linux·运维·服务器
Le1Yu28 分钟前
微服务拆分以及注册中心
linux·运维·服务器
zzzsde1 小时前
【Linux】linux基础指令入门(1)
linux·运维·学习
moxiaoran57531 小时前
nginx中proxy_pass配置
运维·服务器·nginx
leellun1 小时前
在Centos上安装Python指定版本
linux·运维·centos
ZLRRLZ2 小时前
【Linux操作系统】进程控制
linux·运维·服务器
我想吃余2 小时前
Linux的Ext文件系统:硬盘理解和inode及软硬链接
linux·运维·电脑
qq762118223 小时前
Linux c 在内存中创建zip,最后写入测试
linux·运维·服务器
故事很腻i3 小时前
安装elk
运维·elk·jenkins