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

View File

@ -38,9 +38,30 @@ public class PublishConfig extends CreateUpdateDt {
*/
private String configName;
/**
* 配置值 json存储
*/
@TableField(typeHandler = JacksonTypeHandler.class)
private PublishConfigValueDO configValue;
private String ipv4;
private String ipv6;
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;
}