Update snapshot and/or references of policy/drools-pdp to latest snapshots
[policy/drools-pdp.git] / packages / docker / src / main / docker / Dockerfile
index 4df7772..5e12baf 100644 (file)
@@ -2,7 +2,7 @@
 # Dockerfile
 # ============LICENSE_START=======================================================
 #  Copyright (C) 2020-2021 AT&T Intellectual Property. All rights reserved.
-#  Modified Copyright (C) 2022 Nordix Foundation.
+#  Modifications Copyright (C) 2022 Nordix Foundation.
 # ================================================================================
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
 # SPDX-License-Identifier: Apache-2.0
 # ============LICENSE_END=========================================================
 #-------------------------------------------------------------------------------
-FROM onap/policy-jdk-alpine:2.4.2
+FROM onap/policy-jdk-alpine:2.6.2-SNAPSHOT
 
 LABEL maintainer="Policy Team"
+LABEL org.opencontainers.image.title="Policy Drools PDP"
+LABEL org.opencontainers.image.description="Policy Drools PDP image based on Alpine"
+LABEL org.opencontainers.image.url="https://github.com/onap/policy-drools-pdp"
+LABEL org.opencontainers.image.vendor="ONAP Policy Team"
+LABEL org.opencontainers.image.licenses="Apache-2.0"
+LABEL org.opencontainers.image.created="${git.build.time}"
+LABEL org.opencontainers.image.version="${git.build.version}"
+LABEL org.opencontainers.image.revision="${git.commit.id.abbrev}"
 
 ARG BUILD_VERSION_DROOLS=${BUILD_VERSION_DROOLS}
 ARG POLICY_LOGS=/var/log/onap/policy/pdpd
@@ -42,9 +50,11 @@ ENV MVN_SNAPSHOT_REPO_URL $MVN_SNAPSHOT_REPO_URL
 ENV MVN_RELEASE_REPO_URL $MVN_RELEASE_REPO_URL
 ENV http_proxy $http_proxy
 
+USER root
 RUN apk update && \
     apk add --no-cache mariadb-client \
     file \
+    maven \
     net-tools netcat-openbsd sudo less vim openssl \
     && python3 -m pip install --no-cache-dir --upgrade setuptools http-prompt \
     && python3 -m pip install --no-cache-dir httpie