From acd2e9398bbcd5027dfe0f35c50dd21fb61b9f43 Mon Sep 17 00:00:00 2001 From: UlricQin Date: Sun, 5 Dec 2021 21:41:17 +0800 Subject: [PATCH] add pub in Dockerfile --- docker/Dockerfile | 1 + docker/initsql/n9e.sql | 30 +++++++++++++++--------------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index c9667d24..2d700685 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -2,6 +2,7 @@ FROM ubuntu:21.04 WORKDIR /app ADD n9e /app +ADD pub /app/ RUN chmod +x n9e EXPOSE 19000 diff --git a/docker/initsql/n9e.sql b/docker/initsql/n9e.sql index e3dacea5..8ac9e871 100644 --- a/docker/initsql/n9e.sql +++ b/docker/initsql/n9e.sql @@ -76,21 +76,21 @@ CREATE TABLE `role_operation`( ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4; -- 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_target_dash'); -insert into `role_operation`(role_name, operation) values('Guest', 'menu_dashboard'); -insert into `role_operation`(role_name, operation) values('Standard', 'menu_prom_dash'); -insert into `role_operation`(role_name, operation) values('Standard', 'menu_target_dash'); -insert into `role_operation`(role_name, operation) values('Standard', 'menu_dashboard'); -insert into `role_operation`(role_name, operation) values('Standard', 'menu_user'); -insert into `role_operation`(role_name, operation) values('Standard', 'menu_user_group'); -insert into `role_operation`(role_name, operation) values('Standard', 'menu_busi_group'); -insert into `role_operation`(role_name, operation) values('Standard', 'menu_target'); -insert into `role_operation`(role_name, operation) values('Standard', 'menu_alert_rule'); -insert into `role_operation`(role_name, operation) values('Standard', 'menu_alert_mute'); -insert into `role_operation`(role_name, operation) values('Standard', 'menu_alert_subscribe'); -insert into `role_operation`(role_name, operation) values('Standard', 'menu_alert_cur_event'); -insert into `role_operation`(role_name, operation) values('Standard', 'menu_alert_his_event'); +insert into `role_operation`(role_name, operation) values('Guest', 'menu_metric_explorer'); +insert into `role_operation`(role_name, operation) values('Guest', 'menu_object_explorer'); +insert into `role_operation`(role_name, operation) values('Guest', 'menu_dashboards'); +insert into `role_operation`(role_name, operation) values('Standard', 'menu_metric_explorer'); +insert into `role_operation`(role_name, operation) values('Standard', 'menu_object_explorer'); +insert into `role_operation`(role_name, operation) values('Standard', 'menu_dashboards'); +insert into `role_operation`(role_name, operation) values('Standard', 'menu_users'); +insert into `role_operation`(role_name, operation) values('Standard', 'menu_user_groups'); +insert into `role_operation`(role_name, operation) values('Standard', 'menu_busi_groups'); +insert into `role_operation`(role_name, operation) values('Standard', 'menu_targets'); +insert into `role_operation`(role_name, operation) values('Standard', 'menu_alert_rules'); +insert into `role_operation`(role_name, operation) values('Standard', 'menu_alert_mutes'); +insert into `role_operation`(role_name, operation) values('Standard', 'menu_alert_subscribes'); +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_events'); -- for alert_rule | collect_rule | mute | dashboard grouping CREATE TABLE `busi_group` (