"prefix": "app",
"styles": [
"styles.css",
- "./assets/common/css/fileupload.css",
- "./assets/common/css/popModal.css",
- "./assets/framework/browser/css/open-ostyle.css",
- "./assets/framework/browser/thirdparty/css/bootstrap.min.css",
- "./assets/framework/browser/thirdparty/css/magic-check.css"
+ "assets/common/css/fileupload.css",
+ "assets/common/css/popModal.css",
+ "assets/framework/browser/css/open-ostyle.css",
+ "assets/framework/browser/thirdparty/css/bootstrap.min.css",
+ "assets/framework/browser/thirdparty/css/magic-check.css"
],
"scripts": [
- "../node_modules/jquery/dist/jquery.min.js"
+ "../node_modules/jquery/dist/jquery.min.js",
+ "assets/common/js/jQuery-File-Upload/js/jquery.ui.widget.js",
+ "assets/common/js/jQuery-File-Upload/js/vendor/jquery.ui.widget.js",
+ "assets/common/js/jQuery-File-Upload/js/jquery.iframe-transport.js",
+ "assets/common/js/jQuery-File-Upload/js/jquery.fileupload.js"
],
"environmentSource": "environments/environment.ts",
"environments": {
{
- "name": "alarm-analysis",
+ "name": "holmes",
"version": "1.0.0",
- "description": "alarm-analysis",
+ "description": "holmes",
"scripts": {
"ng": "ng",
"start": "ng serve",
let msg = { title: 'exception_content_error', message: 'exception_package_error' };
this.modalService.getmodalObservable.next(msg);
} else {
-
this.alarmRuleService.checkContent(this.queryRule.content)
.then(res => {
if (res.status == 200) {
<html>
<head>
- <base href="/">
+ <base href="/holmes/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<overwrite>true</overwrite>
</configuration>
</execution>
+ <execution>
+ <id>copy-nginx-conf-file</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>target/version</outputDirectory>
+ <resources>
+ <resource>
+ <directory>src/main/assembly/</directory>
+ <filtering>false</filtering>
+ <includes>
+ <include>holmes.nginx.conf</include>
+ </includes>
+ </resource>
+ </resources>
+ <overwrite>true</overwrite>
+ </configuration>
+ </execution>
</executions>
</plugin>
<plugin>
MAINTAINER "Guangrong Fu" <fu.guangrong@zte.com.cn>
-EXPOSE 9101
+EXPOSE 9101 9104
#install openjdk-1.8
#RUN sed -i 's#http://archive.ubuntu.com#http://mirrors.163.com#g' /etc/apt/sources.list
ENV CLASSPATH .:${JAVA_HOME}/lib:${JRE_HOME}/lib
ENV JRE_HOME ${JAVA_HOME}/jre
+#install neccessary tools
+RUN apt-get install -y bash curl vim
+
+#install nginx
+RUN apt-get install -y wget build-essential libtool libpcre3 libpcre3-dev zlib1g-dev openssl
+RUN wget http://nginx.org/download/nginx-1.14.0.tar.gz
+RUN tar -zxvf nginx-1.14.0.tar.gz
+RUN rm nginx-1.14.0.tar.gz
+WORKDIR /nginx-1.14.0
+RUN ./configure --prefix=/usr/local/nginx
+RUN make install
+RUN ln -s /usr/local/nginx/sbin/nginx /usr/bin/nginx
+RUN rm -rf /nginx-1.14.0
+ADD holmes-rulemgt-frontend-*.tar.gz /usr/local/nginx/html
+ADD holmes.nginx.conf /usr/local/nginx/conf
+
+
ENV HOSTNAME holmes-rule-mgmt
#add holmes related resources to the docker image
./bin/initDB.sh $JDBC_USERNAME $JDBC_PASSWORD $DB_NAME $DB_PORT "${URL_JDBC%:*}"
+#Start nginx
+nginx -c /usr/local/nginx/conf/holmes.nginx.conf
+
"$JAVA" $JAVA_OPTS -classpath "$class_path" org.onap.holmes.rulemgt.RuleActiveApp server "$main_path/conf/rulemgt.yml"
--- /dev/null
+#user nobody;
+worker_processes 1;
+
+error_log logs/error.log;
+error_log logs/error.log notice;
+error_log logs/error.log info;
+
+pid logs/nginx.pid;
+
+
+events {
+ worker_connections 1024;
+}
+
+
+http {
+ include mime.types;
+ default_type application/octet-stream;
+
+ log_format main '$remote_addr - $remote_user [$time_local] "$request" '
+ '$status $body_bytes_sent "$http_referer" '
+ '"$http_user_agent" "$http_x_forwarded_for"';
+
+ #access_log logs/access.log main;
+
+ sendfile on;
+
+ keepalive_timeout 65;
+
+ server {
+ listen 9104;
+ server_name localhost;
+
+ location / {
+ root html;
+ }
+
+ location ~*.(htm|html){
+ add_header Cache-Control no-cache;
+ root html;
+ }
+ }
+}