Merge "Fix UI and docker"
authorMichael Lando <ml636r@att.com>
Mon, 20 Feb 2017 19:39:23 +0000 (19:39 +0000)
committerGerrit Code Review <gerrit@openecomp.org>
Mon, 20 Feb 2017 19:39:23 +0000 (19:39 +0000)
16 files changed:
catalog-ui/pom.xml
openecomp-ui/pom.xml
pom.xml
sdc-os-chef/scripts/docker_clean.sh
sdc-os-chef/scripts/docker_health.sh
sdc-os-chef/scripts/docker_login.sh
sdc-os-chef/scripts/docker_run.sh
sdc-os-chef/scripts/docker_stats.sh
sdc-os-chef/scripts/docker_watchdog.sh
sdc-os-chef/scripts/restart_docker.sh
sdc-os-chef/sdc-backend/startup.sh
sdc-os-chef/sdc-cassandra/startup.sh
sdc-os-chef/sdc-elasticsearch/startup.sh
sdc-os-chef/sdc-frontend/startup.sh
sdc-os-chef/sdc-kibana/startup.sh
sdc-os-chef/sdc-sanity/startup.sh

index 101537e..09d42d5 100644 (file)
                                </executions>
                        </plugin>
 
+
                        <plugin>
+                               <groupId>io.wcm.maven.plugins</groupId>
+                               <artifactId>nodejs-maven-plugin</artifactId>
+                               <executions>
+                                       <execution>
+                                               <phase>compile</phase>
+                                               <goals>
+                                                       <goal>run</goal>
+                                               </goals>
+                                       </execution>
+                               </executions>
+                               <configuration>
+                                       <tasks>
+                                               <npmInstallTask>
+                                                       <workingDirectory>${project.basedir}</workingDirectory>
+                                               </npmInstallTask>
+                                               <nodeJsTask>
+                                                       <workingDirectory>${project.basedir}</workingDirectory>
+                                                       <moduleName>bower</moduleName>
+                                                       <arguments>
+                                                               <argument>install</argument>
+                                                       </arguments>
+                                               </nodeJsTask>
+                                               <nodeJsTask>
+                                                       <workingDirectory>${project.basedir}</workingDirectory>
+                                                       <moduleName>grunt</moduleName>
+                                                       <arguments>
+                                                               <argument>build</argument>
+                                                       </arguments>
+                                               </nodeJsTask>
+                                               <!-- <npmInstallTask>
+                                                       <workingDirectory>${project.basedir}</workingDirectory>
+                                               </npmInstallTask>
+                                               <nodeJsTask>
+                                                       <workingDirectory>${project.basedir}</workingDirectory>
+                                                       <moduleName>gulp</moduleName>
+                                                       <arguments>
+                                                               <argument>build</argument>
+                                                       </arguments>
+                                               </nodeJsTask> -->
+                                       </tasks>
+                               </configuration>
+                       </plugin>
+
+
+                       <!-- <plugin>
                                <groupId>com.github.eirslett</groupId>
                                <artifactId>frontend-maven-plugin</artifactId>
                                <version>1.3</version>
 
                                </executions>
                        </plugin>
-
+ -->
                        <plugin>
                                <artifactId>maven-resources-plugin</artifactId>
                                <version>2.7</version>
        </build>
 
        <profiles>
-               <profile>
-                       <id>WINDOWS_ONLY</id>
-                       <activation>
-                               <os>
-                                       <family>Windows</family>
-                               </os>
-                       </activation>
-
-                       <build>
-                               <plugins>
-                                       <plugin>
-                                               <artifactId>exec-maven-plugin</artifactId>
-                                               <groupId>org.codehaus.mojo</groupId>
-                                               <version>1.4.0</version>
-                                               <executions>
-                                                       <execution>
-                                                               <id>execute grant build</id>
-                                                               <phase>generate-sources</phase>
-                                                               <goals>
-                                                                       <goal>exec</goal>
-                                                               </goals>
-                                                               <configuration>
-                                                                       <executable>build_catalog_ui.bat</executable>
-                                                                       <workingDirectory>${basedir}</workingDirectory>
-                                                               </configuration>
-                                                       </execution>
-                                               </executions>
-                                       </plugin>
-                               </plugins>
-                       </build>
-               </profile>
 
 
                <profile>
index 1ff3a6e..ee6d32d 100644 (file)
        <name>onboarding-ui-war</name>
 
        <packaging>war</packaging>
-       <repositories>
-               <repository>
-                       <id>node</id>
-                       <name>Node</name>
-                       <url>https://maven-nodejs-proxy.pvtool.org/</url>
-               </repository>
-       </repositories>
        <build>
                <plugins>
 
@@ -36,9 +29,6 @@
                                        </execution>
                                </executions>
                                <configuration>
-                                       <npmVersion>4.3.0</npmVersion>
-                                       <nodeJsVersion>7.5.0</nodeJsVersion>
-                                       <nodeJsDirectory>/tmp/nodejs</nodeJsDirectory>
                                        <tasks>
                                                <npmInstallTask>
                                                        <workingDirectory>${session.executionRootDirectory}/dox-sequence-diagram-ui</workingDirectory>
diff --git a/pom.xml b/pom.xml
index 51e2a6e..cbee9e9 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                                        </dependencies>
                                </plugin>
 
+                       <plugin>
+                               <groupId>io.wcm.maven.plugins</groupId>
+                               <artifactId>nodejs-maven-plugin</artifactId>
+                               <configuration>
+                                       <npmVersion>4.3.0</npmVersion>
+                                       <nodeJsVersion>7.5.0</nodeJsVersion>
+                                       <nodeJsDirectory>/tmp/nodejs</nodeJsDirectory>
+                               </configuration>
+                       </plugin>                       
 
                                <plugin>
                                        <groupId>org.apache.maven.plugins</groupId>
                           <id>ecomp-staging</id>
                           <name>Staging Repository</name>
                           <url>${nexus.proxy}/content/repositories/staging/</url>
+           </repository>
+           <repository>
+               <id>node</id>
+               <name>Node</name>
+               <url>https://maven-nodejs-proxy.pvtool.org/</url>
            </repository>
                        <repository>
                                <id>ecomp-snapshots</id>
index 0b2227d..6fe1ff6 100644 (file)
@@ -4,3 +4,4 @@ for X in ${docker_ids}
 do
    docker rm -f ${X}
 done
+
index 6fdf826..832b25a 100644 (file)
@@ -20,3 +20,4 @@ then
     exit ${res}
 fi
 echo "check user existance: OK"
+
index 15544f4..6309fda 100644 (file)
@@ -6,3 +6,4 @@ if [ -z "$docker_ids" ]; then
 else 
    docker exec -it ${docker_ids} bash
 fi
+
index 1b3f370..dcc603c 100644 (file)
@@ -126,3 +126,4 @@ echo -e ""
 if [ $? -ne 0 ]; then
     exit 1
 fi
+
index 9258b34..0047fe4 100644 (file)
@@ -34,3 +34,4 @@ grep -v "^\-" ${FILE} |grep -v ^CONT| awk 'BEGIN {
    print $1" "d" "$3" "$8
    next
 }' > `echo ${FILE}|awk -F"." '{ print $1".csv"}'`
+
index cc84525..cd6d3f3 100644 (file)
@@ -41,3 +41,4 @@ else
     docker pull ecomp-nexus:51212/ecomp/sdc-frontend:${RELEASE}
        docker run --detach --name sdc-FE --env HOST_IP=${IP} --env ENVNAME="${DEP_ENV}" --log-driver=json-file --log-opt max-size=100m --log-opt max-file=10 --ulimit memlock=-1:-1 --memory 2g --memory-swap=2g --ulimit nofile=4096:100000 --volume /etc/localtime:/etc/localtime:ro  --volume /data/ASDC/logs/FE/:/var/lib/jetty/logs --volume /data/ASDC/environments:/root/chef-solo/environments --publish 9443:9443 --publish 8181:8181 ecomp-nexus:51212/ecomp/sdc-frontend:${RELEASE}
 fi
+
index 619f51a..8c64566 100644 (file)
@@ -95,3 +95,4 @@ case ${DOCKER} in
                docker run --detach --name sdc-FE --env HOST_IP=${IP} --env ENVNAME="${DEP_ENV}" --log-driver=json-file --log-opt max-size=100m --log-opt max-file=10 --ulimit memlock=-1:-1 --memory 2g --memory-swap=2g --ulimit nofile=4096:100000 --volume /etc/localtime:/etc/localtime:ro  --volume /data/logs/FE/:/var/lib/jetty/logs --volume /data/environments:/root/chef-solo/environments --publish 9443:9443 --publish 8181:8181 ecomp-nexus:${PORT}/ecomp/sdc-frontend:${RELEASE}
                ;;
 esac
+
index d795ddd..7edc7a1 100644 (file)
@@ -38,3 +38,4 @@ else
 fi
 
 while true; do sleep 2; done
+
index b9e5fd6..0a602ad 100644 (file)
@@ -17,3 +17,4 @@ chef-solo -c solo.rb -o recipe[sdc-elasticsearch::ES_5_create_monitoring_templat
 chef-solo -c solo.rb -o recipe[sdc-elasticsearch::ES_6_create_kibana_dashboard_virtualization]
 
 while true; do sleep 2; done
+
index 2a3d4d4..ee6e7f5 100644 (file)
@@ -10,3 +10,4 @@ sed -i '/^set -e/aTMPDIR=${JETTY_BASE}\/temp' /docker-entrypoint.sh
 
 cd /var/lib/jetty
 /docker-entrypoint.sh 
+
index b16aa87..0efa850 100644 (file)
@@ -5,3 +5,4 @@ cd /root/chef-solo
 chef-solo -c solo.rb -E ${CHEFNAME}
 
 /docker-entrypoint.sh kibana
+