From 3de39285563e4e63e0ba16b593301ea919953f27 Mon Sep 17 00:00:00 2001 From: chivehao Date: Mon, 8 Dec 2025 23:46:04 +0800 Subject: [PATCH] feat: add version 0.21 for ikarosrun/ikaros --- apps/ikaros/0.21.0/.env.sample | 19 ++++ apps/ikaros/0.21.0/data.yml | 145 ++++++++++++++++++++++++++ apps/ikaros/0.21.0/docker-compose.yml | 48 +++++++++ 3 files changed, 212 insertions(+) create mode 100644 apps/ikaros/0.21.0/.env.sample create mode 100644 apps/ikaros/0.21.0/data.yml create mode 100644 apps/ikaros/0.21.0/docker-compose.yml diff --git a/apps/ikaros/0.21.0/.env.sample b/apps/ikaros/0.21.0/.env.sample new file mode 100644 index 00000000..fcb6967e --- /dev/null +++ b/apps/ikaros/0.21.0/.env.sample @@ -0,0 +1,19 @@ +CONTAINER_NAME="ikaros" +DATA_PATH="./data" +IKAROS_ADMIN_PASSWORD="tomoki" +IKAROS_ADMIN_USERNAME="tomoki" +IKAROS_EXTERNAL_URL="http://1.2.3.4:40301" +LANG="C.UTF-8" +LANGUAGE="C:zh" +LC_ALL="C.UTF-8" +PANEL_APP_PORT_HTTP=40301 +PANEL_DB_HOST="postgresql" +PANEL_DB_HOST_NAME="postgresql" +PANEL_DB_NAME="ikaros" +PANEL_DB_PORT=5432 +PANEL_DB_TYPE="postgresql" +PANEL_DB_USER="ikaros" +PANEL_DB_USER_PASSWORD="ikaros" +PLUGIN_LOG_LEVEL="INFO" +SERVER_LOG_LEVEL="INFO" +TIME_ZONE="Asia/Shanghai" diff --git a/apps/ikaros/0.21.0/data.yml b/apps/ikaros/0.21.0/data.yml new file mode 100644 index 00000000..0afcf2a6 --- /dev/null +++ b/apps/ikaros/0.21.0/data.yml @@ -0,0 +1,145 @@ +additionalProperties: + formFields: + - child: + default: "" + envKey: PANEL_DB_HOST + required: true + type: service + default: postgresql + envKey: PANEL_DB_TYPE + labelEn: Database Service + labelZh: 数据库服务 + required: true + type: apps + values: + - label: PostgreSQL + value: postgresql + - default: ikaros + envKey: PANEL_DB_NAME + labelEn: Database + labelZh: 数据库名 + random: true + required: true + rule: paramCommon + type: text + - default: ikaros + envKey: PANEL_DB_USER + labelEn: User + labelZh: 数据库用户 + random: true + required: true + rule: paramCommon + type: text + - default: ikaros + envKey: PANEL_DB_USER_PASSWORD + labelEn: Password + labelZh: 数据库用户密码 + random: true + required: true + rule: paramComplexity + type: password + - default: 40301 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number + - default: http://localhost:40301 + edit: true + envKey: IKAROS_EXTERNAL_URL + labelEn: External URL + labelZh: 外部访问地址 + required: true + rule: paramHttp + type: text + - default: "INFO" + edit: true + envKey: SERVER_LOG_LEVEL + labelEn: Core Server Package Log level + labelZh: 核心Server包日志级别 + required: false + type: select + values: + - label: DEBUG + value: "DEBUG" + - label: INFO + value: "INFO" + - label: WARNING + value: "WARNING" + - label: ERROR + value: "ERROR" + - label: CRITICAL + value: "CRITICAL" + - default: "INFO" + edit: true + envKey: PLUGIN_LOG_LEVEL + labelEn: Plugin Package Log level + labelZh: 插件包日志级别 + required: false + type: select + values: + - label: DEBUG + value: "DEBUG" + - label: INFO + value: "INFO" + - label: WARNING + value: "WARNING" + - label: ERROR + value: "ERROR" + - label: CRITICAL + value: "CRITICAL" + - default: "./data" + edit: true + envKey: DATA_PATH + labelEn: Data Path + labelZh: 数据路径 + required: true + type: text + - default: "tomoki" + edit: true + envKey: IKAROS_ADMIN_USERNAME + labelEn: Admin Username + labelZh: 管理员用户名 + random: true + required: true + rule: paramCommon + type: text + - default: "tomoki" + edit: true + envKey: IKAROS_ADMIN_PASSWORD + labelEn: Admin Password + labelZh: 管理员密码 + random: true + required: true + rule: paramComplexity + type: password + - default: "Asia/Shanghai" + edit: true + envKey: TIME_ZONE + labelEn: Time Zone + labelZh: 时区 + required: true + type: text + - default: "C.UTF-8" + edit: true + envKey: LANG + labelEn: Language + labelZh: 语言 + required: true + type: text + - default: "C:zh" + edit: true + envKey: LANGUAGE + labelEn: Language Setting + labelZh: 语言设置 + required: true + type: text + - default: "C.UTF-8" + edit: true + envKey: LC_ALL + labelEn: Locale Setting + labelZh: 地区设置 + required: true + type: text diff --git a/apps/ikaros/0.21.0/docker-compose.yml b/apps/ikaros/0.21.0/docker-compose.yml new file mode 100644 index 00000000..b83b89ee --- /dev/null +++ b/apps/ikaros/0.21.0/docker-compose.yml @@ -0,0 +1,48 @@ +services: + ikaros: + image: "ikarosrun/ikaros:v0.21.0" + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + volumes: + - ${DATA_PATH}:/root/.ikaros + ports: + - ${PANEL_APP_PORT_HTTP}:9999 + healthcheck: + test: [ "CMD", "curl", "-f", "http://localhost:9999/actuator/health"] + interval: 30s + timeout: 5s + retries: 5 + start_period: 30s + environment: + - LANG=${LANG} + - LANGUAGE=${LANGUAGE} + - LC_ALL=${LC_ALL} + - TZ=${TIME_ZONE} + command: + - --logging.charset.console=UTF-8 + - --logging.charset.file=UTF-8 + - --logging.level.run.ikaros.server=${SERVER_LOG_LEVEL} + - --logging.level.run.ikaros.plugin=${PLUGIN_LOG_LEVEL} + - --sun.jnu.encoding=UTF-8 + - --spring.r2dbc.url=r2dbc:pool:${PANEL_DB_TYPE}://${PANEL_DB_HOST}/${PANEL_DB_NAME} + - --spring.r2dbc.username=${PANEL_DB_USER} + - --spring.r2dbc.password=${PANEL_DB_USER_PASSWORD} + # Flayway + - --spring.flyway.url=jdbc:postgresql://${PANEL_DB_HOST}/${PANEL_DB_NAME} + - --spring.flyway.locations=classpath:db/${PANEL_DB_TYPE}/migration + - --spring.flyway.user=${PANEL_DB_USER} + - --spring.flyway.password=${PANEL_DB_USER_PASSWORD} + # springdoc + - --springdoc.api-docs.enabled=false + - --springdoc.swagger-ui.enabled=false + # ikaros + - --ikaros.external-url=${IKAROS_EXTERNAL_URL} + - --ikaros.security.initializer.master-username=${IKAROS_ADMIN_USERNAME} + - --ikaros.security.initializer.master-password=${IKAROS_ADMIN_PASSWORD} + labels: + createdBy: "Apps" +networks: + 1panel-network: + external: true \ No newline at end of file