feat:(unify): 修改发布配置

This commit is contained in:
opensnail 2024-12-28 10:48:59 +08:00
parent ceba8d8d9f
commit 1cdd8b4b6d
2 changed files with 31 additions and 10 deletions

View File

@ -543,11 +543,11 @@ CREATE TABLE `sj_publish_config`
`network` varchar(512) NOT NULL DEFAULT '' COMMENT '端口', `network` varchar(512) NOT NULL DEFAULT '' COMMENT '端口',
`open_stdin` tinyint(4) NOT NULL DEFAULT '' COMMENT '是否标准输入', `open_stdin` tinyint(4) NOT NULL DEFAULT '' COMMENT '是否标准输入',
`restart_policy` tinyint(4) NOT NULL DEFAULT '' COMMENT '重启规则', `restart_policy` tinyint(4) NOT NULL DEFAULT '' COMMENT '重启规则',
`cpu_shares` tinyint(4) NOT NULL DEFAULT '' COMMENT 'CPU权重', `cpu_shares` int(11) NOT NULL DEFAULT '' COMMENT 'CPU权重',
`nano_cpus` tinyint(4) NOT NULL DEFAULT '' COMMENT 'CPU限制', `nano_cpus` int(11) NOT NULL DEFAULT '' COMMENT 'CPU限制',
`memory` tinyint(4) NOT NULL DEFAULT '' COMMENT '内存限制', `memory` int(11) NOT NULL DEFAULT '' COMMENT '内存限制',
`env` tinyint(4) NOT NULL DEFAULT '' COMMENT '环境变量', `env` varchar(256) NOT NULL DEFAULT '' COMMENT '环境变量',
`labels` tinyint(4) NOT NULL DEFAULT '' COMMENT '标签', `labels` varchar(256) NOT NULL DEFAULT '' COMMENT '标签',
`create_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `create_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间', `update_dt` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
PRIMARY KEY (`id`), PRIMARY KEY (`id`),

View File

@ -38,9 +38,30 @@ public class PublishConfig extends CreateUpdateDt {
*/ */
private String configName; private String configName;
/** private String ipv4;
* 配置值 json存储
*/ private String ipv6;
@TableField(typeHandler = JacksonTypeHandler.class)
private PublishConfigValueDO configValue; private String exposedPorts;
private Integer autoRemove;
private String network;
private Integer openStdin;
private Integer restartPolicy;
private Integer cpuShares;
private Integer nanoCpus;
private Integer memory;
private String env;
private String labels;
} }