WSO2使用Jenkins进行CI/CD
- 1. Tool Install
- 1.0 Port
- 1.1 wso2 Install
- 1.2 Tool Install(git/vim/jenkins)
- 2. Jenkins CI/CD
- 2.1 Apictl Command
- 2.1 Apictl Command
- 5.2.1 Setting up the environment
- 5.2.2 Setup repository
- 5.2.3 Setup JFrog Artifactory
- 5.2.4 Configure Jenkins Jobs
- 5.2.5 Test the scenario
- 4. Awakening
- 4. Awakening
WSO2安装使用的全过程详解: https://blog.csdn.net/weixin_43916074/article/details/127987099.
1. Tool Install
1.0 Port
- 详细资料请看上面的链接
wos2 port:9443
gitlab port:38080
jenkins port:8888
1.1 wso2 Install
- 拉取镜像/版本
docker pull wso2/wso2am
docker pull wso2/wso2am:4.0.0 => 可以指定版本
- 使用root权限创建容器
Docker run reference: https://docs.docker.com/engine/reference/run/.
docker run --privileged=true -u=root -d -p 9443:9443 -p 9763:9763 -p 9999:9999 -p 11111:11111 -p 8280:8280 -p 8243:8243 -p 5672:5672 -p 9711:9711 -p 9611:9611 -p 9099:9099 -p 8888:8080 --name mywso2 wso2/wso2am
- 查看所有容器
docker ps -a
ordocker ps -l
- 访问UI
https://xxx.xxx.xxx.xxx:9443
1.2 Tool Install(git/vim/jenkins)
- 升级
apt-get -y update
- install git/vim
apt-get install git
apt-get install vim
- install jenkins
apt-get install jenkins
- 管理员密码
cat /var/lib/jenkins/secrets/initialAdminPassword
- 修改配置后执行
systemctl daemon-reload
- 重启Jenkins
systemctl stop jenkins
systemctl restart jenkins
- 删除Jenkins
apt-get remove jenkins
apt-get remove --auto-remove jenkins
apt-get purge jenkins
apt-get purge --auto-remove jenkins
2. Jenkins CI/CD
2.1 Apictl Command
2.1 Apictl Command
5.2.1 Setting up the environment
- Install jq
apt-get install jq
- Register a webhook
apt-get install jq
- Configure apictl home
apt-get install jq
- Install jq
apt-get install jq
5.2.2 Setup repository
5.2.3 Setup JFrog Artifactory
5.2.4 Configure Jenkins Jobs
5.2.5 Test the scenario
4. Awakening
4. Awakening
在一秒钟内看到本质的人和花半辈子也看不清一件事本质的人,自然是不一样的命运。