1
0
Fork 0

feat: 增加MeterSphere (#1478)

This commit is contained in:
刘瑞斌 2024-05-28 22:15:11 +08:00 committed by GitHub
parent 7deb4d88e3
commit d44b3eb4d7
13 changed files with 2206 additions and 0 deletions

View File

@ -0,0 +1,10 @@
additionalProperties:
formFields:
- default: 8081
envKey: PANEL_APP_PORT_HTTP
labelEn: Web Port
labelZh: Web 端口
required: true
rule: paramPort
type: number

View File

@ -0,0 +1,22 @@
version: '3'
services:
metersphere:
image: metersphere/metersphere-ce-allinone:v3.0.0-beta
container_name: ${CONTAINER_NAME}
privileged: true
restart: always
labels:
createdBy: "Apps"
environment:
JAVA_MAX_HEAP_RATIO: 15
ports:
- ${PANEL_APP_PORT_HTTP}:8081
volumes:
- ./mount/logs:/opt/metersphere/logs
- ./mount/data:/opt/metersphere/data
- ./mount/conf:/opt/metersphere/conf
networks:
- 1panel-network
networks:
1panel-network:
external: true

View File

@ -0,0 +1,34 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Set properties not provided in the file input
controller.quorum.voters=1@127.0.0.1:29093
listeners=CONTROLLER://:29093,PLAINTEXT_HOST://:9092,PLAINTEXT://:19092
node.id=1
advertised.listeners=PLAINTEXT_HOST://127.0.0.1:9092,PLAINTEXT://broker:19092
controller.listener.names=CONTROLLER
group.initial.rebalance.delay.ms=0
inter.broker.listener.name=PLAINTEXT
listener.security.protocol.map=PLAINTEXT:PLAINTEXT,CONTROLLER:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
log.dirs=/tmp/kraft-combined-logs
offsets.topic.replication.factor=1
process.roles=broker,controller
transaction.state.log.min.isr=1
transaction.state.log.replication.factor=1
log.retention.ms=60000
max.request.size=524288000
message.max.bytes=524288000
replica.fetch.max.bytes=524288000
fetch.message.max_bytes=524288000
partition.fetch.bytes=524288000

View File

@ -0,0 +1,14 @@
logger.sql.level=info
management.endpoints.enabled-by-default=false
springdoc.api-docs.groups.enabled=true
spring.freemarker.check-template-location=false
spring.groovy.template.check-template-location=false
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/test?autoReconnect=false&useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8&zeroDateTimeBehavior=convertToNull&allowPublicKeyRetrieval=true&useSSL=false&sessionVariables=sql_mode=%27STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION%27
spring.datasource.username=root
spring.datasource.password=111111
kafka.bootstrapServers=127.0.0.1:9092
spring.session.timeout=30d
minio.endpoint=http://127.0.0.1:9000
minio.accessKey=minioadmin
minio.secretKey=minioadmin

View File

@ -0,0 +1,35 @@
[mysqld]
datadir=/opt/metersphere/data/mysql
default-storage-engine=INNODB
character_set_server=utf8mb4
lower_case_table_names=1
performance_schema=off
table_open_cache=128
transaction_isolation=READ-COMMITTED
max_connections=1000
max_connect_errors=6000
max_allowed_packet=64M
innodb_file_per_table=1
innodb_buffer_pool_size=256M
innodb_lock_wait_timeout=1800
server-id=1
log-bin=mysql-bin
expire_logs_days = 2
binlog_format=mixed
character-set-client-handshake = FALSE
character-set-server=utf8mb4
collation-server=utf8mb4_general_ci
init_connect='SET default_collation_for_utf8mb4=utf8mb4_general_ci'
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
skip-name-resolve
[mysql]
default-character-set=utf8mb4
[mysql.server]
default-character-set=utf8mb4

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,6 @@
singleServerConfig:
password:
address: "redis://127.0.0.1:6379"
database: 0
threads: 4
nettyThreads: 8

View File

@ -0,0 +1,4 @@
#!/bin/bash
chmod 777 mount/logs

10
metersphere/README.md Normal file
View File

@ -0,0 +1,10 @@
# MeterSphere
MeterSphere 是新一代的测试管理和接口测试工具,让测试工作更简单、更高效,不再成为持续交付的瓶颈。
## 主要功能:
- 测试管理: 从测试用例管理,到测试计划执行、缺陷管理、测试报告生成,具有远超禅道和 TestLink 的使用体验;
- 接口测试: 集 Postman 的易用与 JMeter 的灵活于一体,接口定义、接口调试、接口 Mock、场景自动化、接口报告你想要的都有。

20
metersphere/data.yml Normal file
View File

@ -0,0 +1,20 @@
name: MeterSphere
tags:
- 实用工具
title: MeterSphere 新一代的测试管理和接口测试工具
type: 实用工具
description: MeterSphere 新一代的测试管理和接口测试工具
additionalProperties:
key: metersphere
name: MeterSphere
tags:
- Tool
shortDescZh: 新一代的测试管理和接口测试工具
shortDescEn: Open-source Continuous Testing Platform
type: tool
crossVersionUpdate: true
limit: 1
recommend: 9
website: https://www.metersphere.io
github: https://github.com/metersphere/metersphere
document: https://metersphere.io/docs

BIN
metersphere/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB