add pub in Dockerfile

This commit is contained in:
UlricQin 2021-12-05 21:41:17 +08:00
parent df97166f07
commit acd2e9398b
2 changed files with 16 additions and 15 deletions

View File

@ -2,6 +2,7 @@ FROM ubuntu:21.04
WORKDIR /app WORKDIR /app
ADD n9e /app ADD n9e /app
ADD pub /app/
RUN chmod +x n9e RUN chmod +x n9e
EXPOSE 19000 EXPOSE 19000

View File

@ -76,21 +76,21 @@ CREATE TABLE `role_operation`(
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4;
-- Admin is special, who has no concrete operation but can do anything. -- Admin is special, who has no concrete operation but can do anything.
insert into `role_operation`(role_name, operation) values('Guest', 'menu_prom_dash'); insert into `role_operation`(role_name, operation) values('Guest', 'menu_metric_explorer');
insert into `role_operation`(role_name, operation) values('Guest', 'menu_target_dash'); insert into `role_operation`(role_name, operation) values('Guest', 'menu_object_explorer');
insert into `role_operation`(role_name, operation) values('Guest', 'menu_dashboard'); insert into `role_operation`(role_name, operation) values('Guest', 'menu_dashboards');
insert into `role_operation`(role_name, operation) values('Standard', 'menu_prom_dash'); insert into `role_operation`(role_name, operation) values('Standard', 'menu_metric_explorer');
insert into `role_operation`(role_name, operation) values('Standard', 'menu_target_dash'); insert into `role_operation`(role_name, operation) values('Standard', 'menu_object_explorer');
insert into `role_operation`(role_name, operation) values('Standard', 'menu_dashboard'); insert into `role_operation`(role_name, operation) values('Standard', 'menu_dashboards');
insert into `role_operation`(role_name, operation) values('Standard', 'menu_user'); insert into `role_operation`(role_name, operation) values('Standard', 'menu_users');
insert into `role_operation`(role_name, operation) values('Standard', 'menu_user_group'); insert into `role_operation`(role_name, operation) values('Standard', 'menu_user_groups');
insert into `role_operation`(role_name, operation) values('Standard', 'menu_busi_group'); insert into `role_operation`(role_name, operation) values('Standard', 'menu_busi_groups');
insert into `role_operation`(role_name, operation) values('Standard', 'menu_target'); insert into `role_operation`(role_name, operation) values('Standard', 'menu_targets');
insert into `role_operation`(role_name, operation) values('Standard', 'menu_alert_rule'); insert into `role_operation`(role_name, operation) values('Standard', 'menu_alert_rules');
insert into `role_operation`(role_name, operation) values('Standard', 'menu_alert_mute'); insert into `role_operation`(role_name, operation) values('Standard', 'menu_alert_mutes');
insert into `role_operation`(role_name, operation) values('Standard', 'menu_alert_subscribe'); insert into `role_operation`(role_name, operation) values('Standard', 'menu_alert_subscribes');
insert into `role_operation`(role_name, operation) values('Standard', 'menu_alert_cur_event'); insert into `role_operation`(role_name, operation) values('Standard', 'menu_alert_cur_events');
insert into `role_operation`(role_name, operation) values('Standard', 'menu_alert_his_event'); insert into `role_operation`(role_name, operation) values('Standard', 'menu_alert_his_events');
-- for alert_rule | collect_rule | mute | dashboard grouping -- for alert_rule | collect_rule | mute | dashboard grouping
CREATE TABLE `busi_group` ( CREATE TABLE `busi_group` (