Add licence headers, fix notes
Change-Id: I7664605a55554caad347c13d159908537b7c4fb0
Issue-ID: INT-996
Signed-off-by: Dmitry Puzikov <dmitry.puzikov@tieto.com>
diff --git a/policy-base/alpine/pom.xml b/policy-base/alpine/pom.xml
index cc811af..3027fb2 100644
--- a/policy-base/alpine/pom.xml
+++ b/policy-base/alpine/pom.xml
@@ -1,6 +1,6 @@
<!--
============LICENSE_START=======================================================
- Copyright (C) 2018 Ericsson, Tieto. All rights reserved.
+ Copyright (C) 2019 Ericsson, Tieto. All rights reserved.
================================================================================
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/policy-base/alpine/src/main/docker/Dockerfile b/policy-base/alpine/src/main/docker/Dockerfile
index 26f20f5..e131ae6 100644
--- a/policy-base/alpine/src/main/docker/Dockerfile
+++ b/policy-base/alpine/src/main/docker/Dockerfile
@@ -1,9 +1,26 @@
+# ============LICENSE_START=======================================================
+# Copyright (C) 2019 Tieto. All rights reserved.
+# ================================================================================
+# 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
#
-# Docker file to build a base image for all policy apps images
-#
+# 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.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+# Docker file to build a base image for all policy components images
+#
# $JAVA_HOME is set to /usr/lib/jvm/java-1.8-openjdk
# more details at https://hub.docker.com/_/openjdk
-#
+
FROM openjdk:8-alpine
LABEL maintainer="Policy Team"
diff --git a/policy-base/pom.xml b/policy-base/pom.xml
index 4ec1207..dd04661 100644
--- a/policy-base/pom.xml
+++ b/policy-base/pom.xml
@@ -1,6 +1,6 @@
<!--
============LICENSE_START=======================================================
- Copyright (C) 2018 Ericsson, Tieto. All rights reserved.
+ Copyright (C) 2019 Ericsson, Tieto. All rights reserved.
================================================================================
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/policy-common/alpine/pom.xml b/policy-common/alpine/pom.xml
index 3668d89..cd6ce9d 100644
--- a/policy-common/alpine/pom.xml
+++ b/policy-common/alpine/pom.xml
@@ -1,6 +1,6 @@
<!--
============LICENSE_START=======================================================
- Copyright (C) 2018 Ericsson, Tieto. All rights reserved.
+ Copyright (C) 2019 Ericsson, Tieto. All rights reserved.
================================================================================
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -77,7 +77,6 @@
<apiVersion>1.23</apiVersion>
<pullRegistry>${docker.pull.registry}</pullRegistry>
<pushRegistry>${docker.push.registry}</pushRegistry>
-
<images>
<image>
<name>onap/policy-common-alpine</name>
@@ -89,6 +88,9 @@
<tag>${project.version}-${maven.build.timestamp}</tag>
<tag>${project.docker.latesttag.version}</tag>
</tags>
+ <args>
+ <BUILD_VERSION>${docker.build.version}</BUILD_VERSION>
+ </args>
</build>
</image>
</images>
diff --git a/policy-common/alpine/src/main/docker/Dockerfile b/policy-common/alpine/src/main/docker/Dockerfile
index 19ea230..96f4df5 100644
--- a/policy-common/alpine/src/main/docker/Dockerfile
+++ b/policy-common/alpine/src/main/docker/Dockerfile
@@ -1,16 +1,30 @@
+# ============LICENSE_START=======================================================
+# Copyright (C) 2019 Tieto. All rights reserved.
+# ================================================================================
+# 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
#
-# Docker file to build an image that contains commom packages for Policy apps
+# 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.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+#
+# Docker file to build an image that contains commom packages for Policy components
#
FROM onap/policy-base-alpine
LABEL maintainer="Policy Team"
-ARG HTTP_PROXY=${HTTP_PROXY}
-ARG HTTPS_PROXY=${HTTPS_PROXY}
ARG BUILD_VERSION=${BUILD_VERSION}
-ENV http_proxy $HTTP_PROXY
-ENV https_proxy $HTTPS_PROXY
ENV BUILD_VERSION ${BUILD_VERSION}
ENV POLICY_HOME=/opt/app/policy
diff --git a/policy-common/pom.xml b/policy-common/pom.xml
index 5e2ac5b..a17a1bb 100644
--- a/policy-common/pom.xml
+++ b/policy-common/pom.xml
@@ -1,6 +1,6 @@
<!--
============LICENSE_START=======================================================
- Copyright (C) 2018 Ericsson, Tieto. All rights reserved.
+ Copyright (C) 2019 Ericsson, Tieto. All rights reserved.
================================================================================
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -40,6 +40,7 @@
<docker.pull.registry>nexus3.onap.org:10001</docker.pull.registry>
<docker.push.registry>nexus3.onap.org:10003</docker.push.registry>
<maven.build.timestamp.format>yyyyMMdd'T'HHmm</maven.build.timestamp.format>
+ <docker.build.version>${project.version}</docker.build.version>
</properties>
<profiles>