NEXUS_DOCKER_REPO=$(cat /opt/config/nexus_docker_repo.txt)
NEXUS_DOCKER_PORT=$(echo $NEXUS_DOCKER_REPO | cut -d':' -f2)
ENV_NAME=$(cat /opt/config/env_name.txt)
+MR_IP_ADDR=$(cat /opt/config/mr_ip_addr.txt)
RELEASE=latest
cd /opt/sdc
IP_ADDRESS=$(ifconfig eth0 | grep "inet addr" | tr -s ' ' | cut -d' ' -f3 | cut -d':' -f2)
cat /data/environments/Template.json | sed "s/yyy/"$IP_ADDRESS"/g" > /data/environments/$ENV_NAME.json
sed -i "s/xxx/"$ENV_NAME"/g" /data/environments/$ENV_NAME.json
-sed -i "s/\"ueb_url_list\":.*/\"ueb_url_list\": \"10.0.11.1,10.0.11.1\",/g" /data/environments/$ENV_NAME.json
-sed -i "s/\"fqdn\":.*/\"fqdn\": [\"10.0.11.1\", \"10.0.11.1\"]/g" /data/environments/$ENV_NAME.json
+sed -i "s/\"ueb_url_list\":.*/\"ueb_url_list\": \""$MR_IP_ADDR","$MR_IP_ADDR"\",/g" /data/environments/$ENV_NAME.json
+sed -i "s/\"fqdn\":.*/\"fqdn\": [\""$MR_IP_ADDR"\", \""$MR_IP_ADDR"\"]/g" /data/environments/$ENV_NAME.json
docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO
bash /data/scripts/docker_run.sh -e $ENV_NAME -r $RELEASE -p $NEXUS_DOCKER_PORT
echo "__gitlab_username__" > /opt/config/gitlab_username.txt
echo "__gitlab_password__" > /opt/config/gitlab_password.txt
echo "__env_name__" > /opt/config/env_name.txt
+ echo "10.0.11.1" > /opt/config/mr_ip_addr.txt
# Run SDC-specific instructions
cd /opt
</prerequisites>
<modules>
- <module>vnfs/honeycomb_plugin/sample_plugin</module>
+ <module>vnfs/honeycomb_plugin/sample_plugin/parent-pom</module>
<module>vnfs/vFW/pg_streams</module>
<module>vnfs/vLB/dns_streams</module>
<module>vnfs/vLB/DNSClient</module>
<packaging>pom</packaging>
<!-- Generate executable shell script -->
+ <modules>
+ <module>../sample-plugin-api</module>
+ <module>../sample-plugin-impl</module>
+ <module>../sample-distribution</module>
+ </modules>
+
<build>
<pluginManagement>
<plugins>
<skip>true</skip>
</configuration>
</plugin>
-
</plugins>
</pluginManagement>
</build>
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (c) 2015 Cisco and/or its affiliates.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at:
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
---><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-
- <parent>
- <groupId>org.opendaylight.odlparent</groupId>
- <artifactId>odlparent</artifactId>
- <version>1.6.2-Beryllium-SR2</version>
- </parent>
-
- <groupId>org.openecomp.demo.vnf</groupId>
- <artifactId>sample-plugin-aggregator</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- <name>sample-plugin-aggregator</name>
- <packaging>pom</packaging>
- <modelVersion>4.0.0</modelVersion>
- <prerequisites>
- <maven>3.1.1</maven>
- </prerequisites>
-
- <modules>
- <module>sample-plugin-api</module>
- <module>sample-plugin-impl</module>
- <module>sample-distribution</module>
- </modules>
-
- <!-- DO NOT install or deploy the repo root pom as it's only needed to initiate a build -->
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-deploy-plugin</artifactId>
- <configuration>
- <skip>true</skip>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-install-plugin</artifactId>
- <configuration>
- <skip>true</skip>
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <executions>
- <execution>
- <phase>none</phase>
- </execution>
- </executions>
- <configuration>
- <skip>true</skip>
- </configuration>
- </plugin>
-
- </plugins>
- </build>
-
-</project>
<groupId>io.fd.honeycomb.common</groupId>
<artifactId>minimal-distribution-parent</artifactId>
<version>1.16.9</version>
-<relativePath>../parent-pom/pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
- <groupId>org.openecomp.demo.vnf</groupId>
<artifactId>sample-distribution</artifactId>
- <version>1.0.0-SNAPSHOT</version>
<properties>
<main.class>io.fd.honeycomb.vpp.integration.distro.Main</main.class>
<dependency>
<groupId>org.openecomp.demo.vnf</groupId>
<artifactId>sample-plugin-impl</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>latest</version>
</dependency>
</dependencies>
<groupId>io.fd.honeycomb.common</groupId>
<artifactId>api-parent</artifactId>
<version>1.16.9</version>
- <relativePath>../../common/api-parent</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
- <groupId>org.openecomp.demo.vnf</groupId>
<artifactId>sample-plugin-api</artifactId>
- <version>1.0.0-SNAPSHOT</version>
<packaging>bundle</packaging>
<dependencyManagement>
<groupId>io.fd.honeycomb.common</groupId>
<artifactId>impl-parent</artifactId>
<version>1.16.9</version>
- <relativePath>../../common/impl-parent</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
- <groupId>org.openecomp.demo.vnf</groupId>
<artifactId>sample-plugin-impl</artifactId>
- <version>1.0.0-SNAPSHOT</version>
<packaging>bundle</packaging>
<properties>
<dependency>
<groupId>org.openecomp.demo.vnf</groupId>
<artifactId>sample-plugin-api</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>latest</version>
</dependency>
<!-- Honeycomb infrastructure-->