Browse Source

删除无用文件

zhuth 6 years ago
parent
commit
8c431e3950
6 changed files with 1 additions and 129 deletions
  1. 0 27
      Dockerfile
  2. 0 58
      Jenkinsfile
  3. 0 29
      default
  4. 0 3
      sonar-project.properties
  5. 0 11
      sonar-runner.properties
  6. 1 1
      src/index.js

+ 0 - 27
Dockerfile

@@ -1,27 +0,0 @@
-######################
-## Dockerfile to build container images consisting of Node.js and nginx environment
-# Based on Ubuntu
-#####
-
-# Set the base image to Ubuntu
-FROM ubuntu
-# File Author / Maintainer
-# MAINTAINER name Chunteng Xiao
-RUN apt-get clean
-RUN apt-get update
-RUN apt-get install -y software-properties-common
-# RUN add-apt-repository ppa:certbot/certbot
-RUN apt-get update
-RUN apt-get -f install -y nodejs nginx npm curl unzip 
-RUN curl --insecure -o ./sonarscanner.zip -L https://sonarsource.bintray.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-3.2.0.1227-linux.zip
-RUN unzip sonarscanner.zip
-RUN rm sonarscanner.zip
-ENV SONAR_RUNNER_HOME=/sonar-scanner-3.2.0.1227-linux
-ENV PATH $PATH:/sonar-scanner-3.2.0.1227-linux/bin
-COPY sonar-runner.properties ./sonar-scanner-3.2.0.1227-linux/conf/sonar-scanner.properties
-RUN npm install cnpm -g --registry=https://registry.npm.taobao.org
-RUN cnpm install gitbook-cli -g 
-ADD default /etc/nginx/sites-available
-# RUN certbot --nginx
-# RUN certbot renew --dry-run
-EXPOSE 80

+ 0 - 58
Jenkinsfile

@@ -1,58 +0,0 @@
-pipeline {
-    agent {
-        dockerfile {
-            filename 'Dockerfile'
-            registryUrl 'https://registry.docker-cn.com'
-            additionalBuildArgs '--no-cache'
-            args '-p 80:80 -p 81:81 -p 82:82 --security-opt apparmor=unconfined'
-        }
-    }
-    stages {
-        stage('SonarQube Analysis') {
-            steps {
-                sh 'sonar-scanner'
-            }
-        }
-        stage('Build Dev Gitbook') {
-            steps {
-                sh 'gitbook install ./gitbook/dev'
-                sh 'gitbook build ./gitbook/dev'
-            }
-        }
-        stage('Build Product Gitbook') {
-            steps {
-                sh 'gitbook install ./gitbook/product'
-                sh 'gitbook build ./gitbook/product'
-            }
-        }
-
-        stage('Install') {
-            steps {
-                sh 'cnpm cache clean --force'
-                sh 'cnpm cache verify'
-                sh 'cnpm install'
-                // sh 'cnpm install'   2018/9/5 有报告cnpm会在这里出错  暂时用回npm
-
-            }
-        }
-
-        stage('Build'){
-            steps {
-                sh 'npm run build'
-            }
-        }
-        stage('Deliver'){
-            steps {
-                sh 'echo $! > .pidfile'
-                sh 'service nginx start'
-                input message: 'Finished using the web site? (Click "Proceed" to continue)'
-            }
-        }
-            
-    }
-    post { 
-        always { 
-            cleanWs()
-        }
-    }
-}

+ 0 - 29
default

@@ -1,29 +0,0 @@
-server {
-	listen 80;
-	server_name 192.168.253.189;
-	access_log /var/log/nginx/server.log;
-	root /var/jenkins_home/workspace/bi-web/dist;
-	index index.html index.htm;
-	location / {
-	}
-}
-server {
-	listen 81;
-	server_name 192.168.253.189:81;
-	access_log /var/log/nginx/gitbook_dev.log;
-	root /var/jenkins_home/workspace/bi-web/gitbook/dev/_book;
-	index index.html index.htm;
-	location / {
-	}
-}
-
-server {
-	listen 82;
-	server_name 192.168.253.189:82;
-	access_log /var/log/nginx/gitbook_product.log;
-	root /var/jenkins_home/workspace/bi-web/gitbook/product/_book;
-	index index.html index.htm;
-	location / {
-	}
-}
-

+ 0 - 3
sonar-project.properties

@@ -1,3 +0,0 @@
-sonar.projectKey=BI-web
-sonar.sources=/var/jenkins_home/workspace/bi-web/src
-sonar.login=23d8e28c74cffc70119fb26cf893dd6044440b33

+ 0 - 11
sonar-runner.properties

@@ -1,11 +0,0 @@
-#Configure here general information about the environment, such as SonarQube DB details for example
-#No information about specific project should appear here
-
-#----- Default SonarQube server
-sonar.host.url=http://192.168.253.189:9000
-
-#----- Default source code encoding
-sonar.sourceEncoding=UTF-8
-sonar.projectKey=BI-web
-sonar.sources=./src/
-sonar.login=23d8e28c74cffc70119fb26cf893dd6044440b33

+ 1 - 1
src/index.js

@@ -28,7 +28,7 @@ const app = dva();
 app.use(createLoading());
 
 // 3. Model
-app.model(homeModel); // 通用action
+app.model(homeModel); // 首页
 app.model(mainModel); // 通用action
 app.model(dataConnect); // 数据链接
 app.model(dataSource); // 数据源