summaryrefslogtreecommitdiffstats
path: root/vid-ext-services-simulator
diff options
context:
space:
mode:
Diffstat (limited to 'vid-ext-services-simulator')
-rw-r--r--vid-ext-services-simulator/.classpath31
-rw-r--r--vid-ext-services-simulator/.gitignore5
-rw-r--r--vid-ext-services-simulator/.project23
-rw-r--r--vid-ext-services-simulator/.settings/org.eclipse.core.resources.prefs3
-rw-r--r--vid-ext-services-simulator/.settings/org.eclipse.jdt.core.prefs5
-rw-r--r--vid-ext-services-simulator/.settings/org.eclipse.m2e.core.prefs4
-rw-r--r--vid-ext-services-simulator/Dockerfile5
-rw-r--r--vid-ext-services-simulator/pom.xml57
8 files changed, 67 insertions, 66 deletions
diff --git a/vid-ext-services-simulator/.classpath b/vid-ext-services-simulator/.classpath
deleted file mode 100644
index 6d7587a81..000000000
--- a/vid-ext-services-simulator/.classpath
+++ /dev/null
@@ -1,31 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" output="target/classes" path="src/main/java">
- <attributes>
- <attribute name="optional" value="true"/>
- <attribute name="maven.pomderived" value="true"/>
- </attributes>
- </classpathentry>
- <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
- <attributes>
- <attribute name="maven.pomderived" value="true"/>
- </attributes>
- </classpathentry>
- <classpathentry kind="src" output="target/test-classes" path="src/test/java">
- <attributes>
- <attribute name="optional" value="true"/>
- <attribute name="maven.pomderived" value="true"/>
- </attributes>
- </classpathentry>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
- <attributes>
- <attribute name="maven.pomderived" value="true"/>
- </attributes>
- </classpathentry>
- <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
- <attributes>
- <attribute name="maven.pomderived" value="true"/>
- </attributes>
- </classpathentry>
- <classpathentry kind="output" path="target/classes"/>
-</classpath>
diff --git a/vid-ext-services-simulator/.gitignore b/vid-ext-services-simulator/.gitignore
new file mode 100644
index 000000000..49d421bb7
--- /dev/null
+++ b/vid-ext-services-simulator/.gitignore
@@ -0,0 +1,5 @@
+.classpath
+.project
+target/
+*.iml
+.settings/ \ No newline at end of file
diff --git a/vid-ext-services-simulator/.project b/vid-ext-services-simulator/.project
deleted file mode 100644
index e84b17476..000000000
--- a/vid-ext-services-simulator/.project
+++ /dev/null
@@ -1,23 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>vid-ext-services-simulator</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.m2e.core.maven2Builder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.jdt.core.javanature</nature>
- <nature>org.eclipse.m2e.core.maven2Nature</nature>
- </natures>
-</projectDescription>
diff --git a/vid-ext-services-simulator/.settings/org.eclipse.core.resources.prefs b/vid-ext-services-simulator/.settings/org.eclipse.core.resources.prefs
deleted file mode 100644
index 8fb0e2600..000000000
--- a/vid-ext-services-simulator/.settings/org.eclipse.core.resources.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-eclipse.preferences.version=1
-encoding//src/main/java=UTF-8
-encoding//src/main/resources=UTF-8
diff --git a/vid-ext-services-simulator/.settings/org.eclipse.jdt.core.prefs b/vid-ext-services-simulator/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 714351aec..000000000
--- a/vid-ext-services-simulator/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,5 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
-org.eclipse.jdt.core.compiler.compliance=1.8
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
-org.eclipse.jdt.core.compiler.source=1.8
diff --git a/vid-ext-services-simulator/.settings/org.eclipse.m2e.core.prefs b/vid-ext-services-simulator/.settings/org.eclipse.m2e.core.prefs
deleted file mode 100644
index f897a7f1c..000000000
--- a/vid-ext-services-simulator/.settings/org.eclipse.m2e.core.prefs
+++ /dev/null
@@ -1,4 +0,0 @@
-activeProfiles=
-eclipse.preferences.version=1
-resolveWorkspaceProjects=true
-version=1
diff --git a/vid-ext-services-simulator/Dockerfile b/vid-ext-services-simulator/Dockerfile
new file mode 100644
index 000000000..6cf2d9d0b
--- /dev/null
+++ b/vid-ext-services-simulator/Dockerfile
@@ -0,0 +1,5 @@
+FROM tomcat:jre8-alpine
+
+RUN apk add --no-cache vim net-tools bash
+
+ADD target/vidSimulator.war ./webapps \ No newline at end of file
diff --git a/vid-ext-services-simulator/pom.xml b/vid-ext-services-simulator/pom.xml
index e8e827bb5..ed6a13c67 100644
--- a/vid-ext-services-simulator/pom.xml
+++ b/vid-ext-services-simulator/pom.xml
@@ -103,6 +103,20 @@
<coberturaBuildPhase>package</coberturaBuildPhase>
</properties>
</profile>
+
+ <profile>
+ <id>docker-proxy</id>
+ <!-- activate profile if environment variable `http_proxy` is set -->
+ <activation>
+ <property>
+ <name>env.http_proxy</name>
+ </property>
+ </activation>
+ <properties>
+ <docker.buildArg.http_proxy>${env.http_proxy}</docker.buildArg.http_proxy>
+ </properties>
+ </profile>
+
</profiles>
<dependencies>
@@ -146,6 +160,49 @@
<target>1.8</target>
</configuration>
</plugin>
+
+ <plugin>
+ <groupId>io.fabric8</groupId>
+ <artifactId>docker-maven-plugin</artifactId>
+ <version>0.27.2</version>
+
+ <configuration>
+ <images>
+ <image>
+ <name>onap/vid-simulator</name>
+ <build>
+ <cleanup>remove</cleanup>
+ <dockerFileDir>${project.basedir}</dockerFileDir>
+ <tags>
+ <tag>${project.version}</tag>
+ <tag>latest</tag>
+ </tags>
+ </build>
+ </image>
+ </images>
+ </configuration>
+
+ <executions>
+ <execution>
+ <id>generate-image</id>
+ <phase>package</phase>
+ <goals>
+ <goal>build</goal>
+ </goals>
+ </execution>
+
+ <execution>
+ <id>push-image</id>
+ <phase>deploy</phase>
+ <goals>
+ <goal>build</goal>
+ <goal>push</goal>
+ </goals>
+ </execution>
+ </executions>
+
+ </plugin>
+
</plugins>
</build>