aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-os-chef
diff options
context:
space:
mode:
authorTal Gitelman <tg851x@intl.att.com>2017-10-04 16:56:23 +0300
committerTal Gitelman <tg851x@intl.att.com>2017-10-10 12:06:34 +0300
commit0c3b1891ba08d419cc1e053a32f48563512fd9fb (patch)
tree9cefbde8898e4435eaad9a89d7aa8b3dba3e034b /sdc-os-chef
parent1dc6dfd90d4208a2f63b0bc0860f762ed243e90e (diff)
ONAP normative fixes
Change-Id: I56d55c8591beefbd984f99bbc099579ad1ef6303 Issue-ID: SDC-410 Signed-off-by: Tal Gitelman <tg851x@intl.att.com>
Diffstat (limited to 'sdc-os-chef')
-rw-r--r--sdc-os-chef/pom.xml71
-rw-r--r--sdc-os-chef/sdc-backend/Dockerfile2
2 files changed, 64 insertions, 9 deletions
diff --git a/sdc-os-chef/pom.xml b/sdc-os-chef/pom.xml
index 3ad8a4b811..a4c8036214 100644
--- a/sdc-os-chef/pom.xml
+++ b/sdc-os-chef/pom.xml
@@ -4,6 +4,8 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>sdc-os-chef</artifactId>
+ <packaging>pom</packaging>
+
<parent>
<groupId>org.openecomp.sdc</groupId>
@@ -32,24 +34,47 @@
<configuration>
<filesets>
<fileset>
- <directory>
- ${project.basedir}\sdc-cassandra\chef-repo\cookbooks\cassandra-actions\attributes\
- </directory>
+ <directory>${project.basedir}\sdc-cassandra\chef-repo\cookbooks\cassandra-actions\attributes\</directory>
<followSymlinks>false</followSymlinks>
<includes>
<include>**/default.rb</include>
</includes>
</fileset>
- <!-- static configuration files -->
- <fileset>
- <directory>${project.parent.basedir}/sdc-os-chef/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default</directory>
- <includes>
+ <!-- static configuration files -->
+ <fileset>
+ <directory>${project.parent.basedir}/sdc-os-chef/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default</directory>
+ <followSymlinks>false</followSymlinks>
+ <includes>
<include>Artifact-Generator.properties</include>
<include>error-configuration.yaml</include>
<include>ecomp-error-configuration.yaml</include>
<include>logback.xml</include>
</includes>
</fileset>
+ <!-- BE WAR's -->
+ <fileset>
+ <directory>${project.parent.basedir}/sdc-os-chef/sdc-backend</directory>
+ <followSymlinks>false</followSymlinks>
+ <includes>
+ <include>*.war</include>
+ </includes>
+ </fileset>
+ <!-- FE WAR's -->
+ <fileset>
+ <directory>${project.parent.basedir}/sdc-os-chef/sdc-frontend/</directory>
+ <followSymlinks>false</followSymlinks>
+ <includes>
+ <include>*.war</include>
+ </includes>
+ </fileset>
+ <fileset>
+ <directory>${project.basedir}/sdc-backend/chef-repo/cookbooks/sdc-normatives/files/default</directory>
+ <followSymlinks>false</followSymlinks>
+ <includes>
+ <include>normatives.tar.gz</include>
+ </includes>
+ </fileset>
+
</filesets>
</configuration>
</execution>
@@ -157,6 +182,12 @@
<configuration>
<outputDirectory>${basedir}/sdc-backend</outputDirectory>
<resources>
+ <resource>
+ <directory>${project.parent.basedir}/catalog-be/target</directory>
+ <includes>
+ <include>catalog-be-${project.version}.war</include>
+ </includes>
+ </resource>
<resource>
<directory>
${project.parent.basedir}/openecomp-be/api/openecomp-sdc-rest-webapp/onboarding-rest-war/target
@@ -168,6 +199,7 @@
</resources>
</configuration>
</execution>
+
<execution>
<id>copy-resources-fe</id>
<phase>validate</phase>
@@ -177,6 +209,12 @@
<configuration>
<outputDirectory>${basedir}/sdc-frontend</outputDirectory>
<resources>
+ <resource>
+ <directory>${project.parent.basedir}/catalog-fe/target</directory>
+ <includes>
+ <include>catalog-fe-${project.version}.war</include>
+ </includes>
+ </resource>
<resource>
<directory>${project.parent.basedir}/openecomp-ui/target</directory>
<includes>
@@ -186,6 +224,7 @@
</resources>
</configuration>
</execution>
+
<execution>
<id>copy-tests-suites</id>
<phase>validate</phase>
@@ -222,6 +261,24 @@
</resources>
</configuration>
</execution>
+ <execution>
+ <id>copy-normatives</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>copy-resources</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${project.parent.basedir}/sdc-os-chef/sdc-backend/chef-repo/cookbooks/sdc-normatives/files/default</outputDirectory>
+ <resources>
+ <resource>
+ <directory>${project.parent.basedir}/catalog-be/target</directory>
+ <includes>
+ <include>normatives.tar.gz</include>
+ </includes>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
</executions>
</plugin>
diff --git a/sdc-os-chef/sdc-backend/Dockerfile b/sdc-os-chef/sdc-backend/Dockerfile
index 9052e74b52..dd38726be3 100644
--- a/sdc-os-chef/sdc-backend/Dockerfile
+++ b/sdc-os-chef/sdc-backend/Dockerfile
@@ -4,8 +4,6 @@ COPY chef-solo /root/chef-solo/
COPY chef-repo/cookbooks/. /root/chef-solo/cookbooks/
-#RUN python /root/chef-solo/cookbooks/sdc-normatives/files/default/get-pip.py
-
ADD onboarding-be-*.war ${JETTY_BASE}/webapps/
ADD catalog-be-*.war ${JETTY_BASE}/webapps/