mirror of https://github.com/openspug/spug
U - 通用 - 更新README,增加登陆页默认账号密码。
parent
c3c2612be0
commit
46e319561a
|
@ -12,6 +12,8 @@ Spug是一款使用Python+Flask+Vue+Element组件开发的开源运维管理系
|
|||
|
||||
#### Demo演示地址:<https://spug.qbangmang.com/login>
|
||||
|
||||
#### Demo账号密码:<admin/spug>
|
||||
|
||||
|
||||
|
||||
### Feature 功能
|
||||
|
@ -36,16 +38,18 @@ Spug是一款使用Python+Flask+Vue+Element组件开发的开源运维管理系
|
|||
----------------------------
|
||||
```
|
||||
$ docker pull hub.qbangmang.com/spug
|
||||
$ docker run -d -e REGISTRY_SERVER="hub.qbangmang.com:5000" -p 80:80 hub.qbangmang.com/spug
|
||||
$ docker run -d -p 80:80 hub.qbangmang.com/spug
|
||||
|
||||
$ 访问:http://主机ip
|
||||
$ 默认账号密码:admin/spug
|
||||
|
||||
# 可选参数:
|
||||
$ docker run -d -e REGISTRY_SERVER="hub.qbangmang.com" -p 80:80 hub.qbangmang.com/spug
|
||||
|
||||
$ -e MYSQL_DATABASE="spug" //指定数据库名称
|
||||
-e MYSQL_USER="spuguser" //指定数据库用户名
|
||||
-e MYSQL_PASSWORD="spugpwd" //指定数据库密码
|
||||
-e REGISTRY_SERVER="hub.qbangmang.com:5000" //指定私有镜像仓库
|
||||
-e REGISTRY_SERVER="hub.qbangmang.com" //指定私有镜像仓库
|
||||
-e REGISTRY_USER="hubuser" //指定私有镜像仓库用户名
|
||||
-e REGISTRY_PASSWORD="hubpwd" //指定私有镜像仓库密码
|
||||
```
|
||||
|
|
|
@ -12,5 +12,5 @@ SQLALCHEMY_ECHO = False
|
|||
|
||||
EOF
|
||||
echo "SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://${MYSQL_USER:-spuguser}:${MYSQL_PASSWORD:-spugpwd}@localhost/${MYSQL_DATABASE:-spug}'" >> /spug/spug_api/config.py
|
||||
echo "DOCKER_REGISTRY_SERVER = '${REGISTRY_SERVER}'" >> /spug/spug_api/config.py
|
||||
echo "DOCKER_REGISTRY_SERVER = '${REGISTRY_SERVER:-hub.qbangmang.com}'" >> /spug/spug_api/config.py
|
||||
echo "DOCKER_REGISTRY_AUTH = {'username': '${REGISTRY_USER}', 'password': '${REGISTRY_PASSWORD}'}" >> /spug/spug_api/config.py
|
||||
|
|
|
@ -62,8 +62,8 @@
|
|||
loading: false,
|
||||
error: '',
|
||||
form: {
|
||||
username: '',
|
||||
password: ''
|
||||
username: 'admin',
|
||||
password: 'spug'
|
||||
},
|
||||
rules: {
|
||||
username: [
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
<el-table-column prop="desc" label="描述" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="操作" width="150">
|
||||
<template slot-scope="scope">
|
||||
<el-button size="small" type="primary" @click="go_deploy(scope.row)" style="margin-right: 15px">发布
|
||||
<el-button size="small" type="primary" @click="go_deploy(scope.row)" style="margin-right: 15px">管理
|
||||
</el-button>
|
||||
<el-dropdown trigger="click" @command="do_action" v-if="has_permission('publish_app_edit|publish_app_del|publish_app_ctr_view|publish_app_var_view|publish_app_menu_view')">
|
||||
<el-button type="text">更多<i class="el-icon-caret-bottom el-icon--right"></i></el-button>
|
||||
|
|
Loading…
Reference in New Issue