diff options
author | Timoney, Daniel (dt5972) <dtimoney@att.com> | 2017-02-15 10:37:53 -0500 |
---|---|---|
committer | Timoney, Daniel (dt5972) <dtimoney@att.com> | 2017-02-15 10:40:37 -0500 |
commit | 324ee36fe31763e507b422ab0a88e4230045e205 (patch) | |
tree | d0b04520f6657601c918ce63fd27575977624187 /installation/ubuntu | |
parent | f0c97e8db427481e28c0a16b789bc73801b35e47 (diff) |
Initial commit for OpenECOMP SDN-C OA&M
Change-Id: I7ab579fd0d206bf356f36d52dcdf4f71f1fa2680
Signed-off-by: Timoney, Daniel (dt5972) <dtimoney@att.com>
Former-commit-id: 2a9f0edd09581f907e62ec4689b5ac94dd5382ba
Diffstat (limited to 'installation/ubuntu')
-rw-r--r-- | installation/ubuntu/pom.xml | 102 | ||||
-rw-r--r-- | installation/ubuntu/src/main/docker/Dockerfile | 9 |
2 files changed, 111 insertions, 0 deletions
diff --git a/installation/ubuntu/pom.xml b/installation/ubuntu/pom.xml new file mode 100644 index 00000000..603ba267 --- /dev/null +++ b/installation/ubuntu/pom.xml @@ -0,0 +1,102 @@ +<?xml version="1.0" encoding="UTF-8"?> +<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/maven-v4_0_0.xsd"> + + <parent> + <groupId>org.openecomp.sdnc.oam</groupId> + <artifactId>installation</artifactId> + <version>1.0.0</version> + </parent> + + <modelVersion>4.0.0</modelVersion> + <packaging>pom</packaging> + <groupId>org.openecomp.sdnc.oam</groupId> + <artifactId>installation-ubuntu</artifactId> + <version>1.0.0</version> + + <name>Installation - ubuntu</name> + <description>Creates base ubuntu Docker container</description> + + <properties> + <image.name>ecomp/ubuntu-sdnc-image</image.name> + </properties> + + + <build> + <plugins> + + + <plugin> + <groupId>io.fabric8</groupId> + <artifactId>docker-maven-plugin</artifactId> + <version>0.16.5</version> + <inherited>false</inherited> + <configuration> + + <images> + <image> + <name>${image.name}</name> + <build> + <cleanup>try</cleanup> + <dockerFileDir>${basedir}/target/docker-stage</dockerFileDir> + <dockerFile>${basedir}/target/docker-stage/Dockerfile</dockerFile> + <tags> + <tag>${project.version}</tag> + <tag>latest</tag> + </tags> + </build> + </image> + </images> + </configuration> + <executions> + <execution> + <id>generate-images</id> + <phase>generate-sources</phase> + <goals> + <goal>build</goal> + </goals> + </execution> + + <execution> + <id>push-images</id> + <phase>deploy</phase> + <goals> + <goal>build</goal> + <goal>push</goal> + </goals> + </execution> + </executions> + </plugin> + + <plugin> + <artifactId>maven-resources-plugin</artifactId> + <version>2.6</version> + <executions> + <execution> + <id>copy-dockerfile</id> + <goals> + <goal>copy-resources</goal> + </goals><!-- here the phase you need --> + <phase>validate</phase> + <configuration> + <outputDirectory>${basedir}/target/docker-stage</outputDirectory> + <resources> + <resource> + <directory>src/main/docker</directory> + <includes> + <include>Dockerfile</include> + </includes> + <filtering>true</filtering> + </resource> + </resources> + </configuration> + </execution> + </executions> + </plugin> + </plugins> + + </build> + <organization> + <name>openECOMP</name> + </organization> +</project> diff --git a/installation/ubuntu/src/main/docker/Dockerfile b/installation/ubuntu/src/main/docker/Dockerfile new file mode 100644 index 00000000..4c6de286 --- /dev/null +++ b/installation/ubuntu/src/main/docker/Dockerfile @@ -0,0 +1,9 @@ +# Base ubuntu with added packages needed for open ecomp +FROM ubuntu:14.04.5 +MAINTAINER SDN-C Team (sdnc@lists.openecomp.org) +# Steps needed to run inside ATT +#COPY sources.list /etc/apt +#COPY my_key.pub /tmp +#RUN apt-key add - < /tmp/my_key.pub +# Add tools needed for OpenDaylight +RUN apt-get update && apt-get install -y git openjdk-7-jdk maven2 mysql-client nodejs nodejs-legacy python-pip graphviz npm |