Jenkins initial setup is required. An admin user has been created and a password generated.
Please use the following password to proceed to installation:
2022-02-09 12:21:33.350+0000 [id=57] INFO h.m.DownloadService$Downloadable#load: Obtained the updated data file for hudson.tasks.Maven.MavenInstaller
2022-02-09 12:21:40.330+0000 [id=57] INFO hudson.util.Retrier#start: Performed the action check updates server successfully at the attempt #1
2022-02-09 12:21:40.337+0000 [id=57] INFO hudson.model.AsyncPeriodicWork#lambda$doRun$1: Finished Download metadata. 172,577 ms
2022-02-09 12:21:44.829+0000 [id=29] INFO jenkins.InitReactorRunner$1#onAttained: Completed initialization
2022-02-09 12:21:44.844+0000 [id=23] INFO hudson.WebAppMain$3#run: Jenkins is fully up and running
终端输出的“d6f001fb9d324847965fcc3e881b43e8”(即密码),用于下面的解锁 Jenkins。
浏览器访问 jenkins:https://localhost:8080/,页面显示“Jenkins 正在准备工作,请稍候...”:
// Jenkins 正在准备工作,请稍候...
Please wait while Jenkins is getting ready to work ...
// 当 Jenkins 准备就绪时,您的浏览器将自动重新加载。
Your browser will reload automatically when Jenkins is ready.
约5分钟,提示“解锁 Jenkins”,内容如下:
解锁 Jenkins
为了确保管理员安全地安装 Jenkins,密码已写入到日志中(不知道在哪里?)该文件在服务器上:
容器已成功启动:
C:\Users\75394> docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a2b18844c8d1 registry.aliyuncs.com/openspug/spug "/entrypoint.sh" 7 seconds ago Up 5 seconds 0.0.0.0:80->80/tcp spug
初始化。创建一个用户名为 admin 密码为 spug.dev 的管理员账户
// docker exec 在正在运行的容器中运行命令
C:\Users\75394> docker exec spug init_spug admin spug.dev
Migrations for 'account':
data/spug/spug_api/apps/account/migrations/0001_initial.py
- Create model Role
- Create model User
- Add field created_by to role
- Create model History
...
初始化/更新成功
创建用户成功