Linux教程

1-1 Installing Jenkins

本文主要是介绍1-1 Installing Jenkins,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

Docker

安装配置

参考文档:
https://www.jenkins.io/doc/book/installing/

To use the latest LTS

docker pull jenkins/jenkins:lts-jdk11

docker-compose.yml

version: "3.1"
services:
  jenkins:
    image: jenkins/jenkins:lts-jdk11
    container_name: jenkins-docker
    ports:
      - 8080:8080
      - 50000:50000
    volumes:
      - ./data/:/var/jenkins_home

docker-compose 启动jenkins

启动
docker-compose -f jenkins-compose.yml up -d

# 查看启动日志
docker logs jenkins-docker 

# 修改权限
chmod -R 777 data

setup wizard

Browse to http://ip:8080

docker logs jenkins-docker 可以查看password

Customizing Jenkins with plugins

Install suggested plugins - to install the recommended set of plugins, which are based on most common use cases.

Creating the first administrator user

继续选择admin 作为 管理员

完成安装。

这篇关于1-1 Installing Jenkins的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!