diff options
author | Michael Dürre <michael.duerre@highstreet-technologies.com> | 2023-01-12 12:18:31 +0100 |
---|---|---|
committer | Michael Dürre <michael.duerre@highstreet-technologies.com> | 2023-01-12 12:23:59 +0100 |
commit | 408cd42086aa968374c7ebb1d9125a93d7a0a10c (patch) | |
tree | f128ddc188608258ee4434ec6e8c5118cf3c3df6 /alpine/java17 | |
parent | 5774938b481d179a2eb43c090c2702c41cf18fb7 (diff) |
prepare dist for chlorine
add java17 base image. switch chlorine to j17
Issue-ID: CCSDK-3832
Signed-off-by: Michael Dürre <michael.duerre@highstreet-technologies.com>
Change-Id: Ib2f3fd216eac4743a338299385e6bdbe52485275
Signed-off-by: Michael Dürre <michael.duerre@highstreet-technologies.com>
Diffstat (limited to 'alpine/java17')
-rw-r--r-- | alpine/java17/pom.xml | 116 | ||||
-rw-r--r-- | alpine/java17/src/main/docker/Dockerfile | 19 |
2 files changed, 135 insertions, 0 deletions
diff --git a/alpine/java17/pom.xml b/alpine/java17/pom.xml new file mode 100644 index 00000000..95e9bd19 --- /dev/null +++ b/alpine/java17/pom.xml @@ -0,0 +1,116 @@ +<?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/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.onap.ccsdk.distribution</groupId> + <artifactId>distribution-alpine-root</artifactId> + <version>1.5.0-SNAPSHOT</version> + </parent> + + <artifactId>distribution-j17-alpine</artifactId> + <packaging>pom</packaging> + + <name>ccsdk-distribution :: alpine :: java17</name> + <description>Creates base alpine Docker container</description> + <organization> + <name>openECOMP</name> + </organization> + + <properties> + <image.name>onap/ccsdk-alpine-j17-image</image.name> + <base.image>eclipse-temurin</base.image> + <base.image.version>17.0.4.1_1-jdk-alpine</base.image.version> + </properties> + + <build> + <plugins> + <plugin> + <groupId>org.codehaus.gmaven</groupId> + <artifactId>groovy-maven-plugin</artifactId> + <version>2.1.1</version> + <executions> + <execution> + <phase>validate</phase> + <goals> + <goal>execute</goal> + </goals> + <configuration> + <source>${basedir}/../../src/main/scripts/TagVersion.groovy</source> + </configuration> + </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> + + <profiles> + <profile> + <id>docker</id> + <build> + <plugins> + <plugin> + <groupId>io.fabric8</groupId> + <artifactId>docker-maven-plugin</artifactId> + <version>0.34.0</version> + <inherited>false</inherited> + <configuration> + <images> + <image> + <name>${image.name}</name> + <build> + <cleanup>try</cleanup> + <noCache>true</noCache> + <contextDir>${basedir}/target/docker-stage</contextDir> + <dockerFile>Dockerfile</dockerFile> + <tags> + <tag>${project.docker.latestminortag.version}</tag> + <tag>${project.docker.latestfulltag.version}</tag> + <tag>${project.docker.latesttagtimestamp.version}</tag> + </tags> + </build> + </image> + </images> + <verbose>${docker.verbose}</verbose> + <skipPush>${docker.skip.push}</skipPush> + </configuration> + <executions> + <execution> + <id>build-push-images</id> + <goals> + <goal>build</goal> + <goal>push</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> +</project> diff --git a/alpine/java17/src/main/docker/Dockerfile b/alpine/java17/src/main/docker/Dockerfile new file mode 100644 index 00000000..192d618b --- /dev/null +++ b/alpine/java17/src/main/docker/Dockerfile @@ -0,0 +1,19 @@ +# Base alpine with added packages needed for open ecomp +FROM ${base.image}:${base.image.version} +MAINTAINER CCSDK Team (onap-ccsdk@lists.onap.org) +USER root + +ARG HTTP_PROXY +ARG HTTPS_PROXY + +ENV HTTP_PROXY ${HTTP_PROXY} +ENV http_proxy ${HTTP_PROXY} +ENV HTTPS_PROXY ${HTTPS_PROXY} +ENV https_proxy ${HTTPS_PROXY} + +ENV JAVA_HOME /opt/java/openjdk + +# Add tools needed for OpenDaylight +RUN apk update && apk --no-cache add sudo bash iputils openssl git mysql-client nodejs npm python3 py3-pip graphviz unzip rsync nss + +USER onap |