diff options
author | Dmitry Puzikov <dmitry.puzikov@tieto.com> | 2019-03-25 15:40:06 +0100 |
---|---|---|
committer | Dmitry Puzikov <dmitry.puzikov@tieto.com> | 2019-04-24 10:01:59 +0200 |
commit | 36bb54bf53327e521b99b42a7ec9e61c9c8b07f3 (patch) | |
tree | b9d3767fa2dda3745c9c460af61356efa773bee7 /packages/docker/src | |
parent | a2e7d569974b018235e821d7bc0bb7a43d75aa2c (diff) |
Rebase image on policy-common-alpine
Issue-ID: INT-1000
Change-Id: Ibd575b57c794a107d8fc890ffbe7303030984892
Signed-off-by: Dmitry Puzikov <dmitry.puzikov@tieto.com>
Diffstat (limited to 'packages/docker/src')
-rw-r--r-- | packages/docker/src/main/docker/Dockerfile | 36 |
1 files changed, 12 insertions, 24 deletions
diff --git a/packages/docker/src/main/docker/Dockerfile b/packages/docker/src/main/docker/Dockerfile index c6397b62..6f4d9a28 100644 --- a/packages/docker/src/main/docker/Dockerfile +++ b/packages/docker/src/main/docker/Dockerfile @@ -1,41 +1,29 @@ -FROM alpine:3.9 +FROM onap/policy-common-alpine:1.4.0 + +LABEL maintainer="Policy Team" -ARG BUILD_VERSION=${BUILD_VERSION} -ARG POLICY_HOME=/opt/app/policy ARG POLICY_LOGS=/var/log/onap/policy/pdpd ARG POLICY_INSTALL=/tmp/policy-install -ENV BUILD_VERSION ${BUILD_VERSION} -ENV JAVA_HOME /usr/lib/jvm/java-1.8-openjdk - ENV POLICY_INSTALL ${POLICY_INSTALL} ENV POLICY_INSTALL_INIT ${POLICY_INSTALL}/config -ENV POLICY_HOME ${POLICY_HOME} ENV POLICY_LOGS ${POLICY_LOGS} ENV POLICY_CONFIG ${POLICY_HOME}/config ENV POLICY_LOGBACK ${POLICY_CONFIG}/logback.xml ENV POLICY_DOCKER true -RUN apk update && \ - apk add --update --no-cache busybox-extras \ - bash bash-completion procps \ - coreutils less grep findutils \ - zip unzip file \ - nss openssl openssh \ - python py-pip openjdk8 maven \ - curl wget httpie jq - -RUN addgroup -S policy && adduser -S policy -s /bin/bash +RUN apk add --no-cache \ + mariadb-client \ + file \ + bash-completion \ + openssl \ + less \ + && pip install http-prompt -# install MariaDB client -RUN apk add --update --no-cache mariadb-client && rm -rf /var/cache/apk/* - -RUN pip install http-prompt -RUN mkdir -p ${POLICY_HOME}/config ${POLICY_LOGS} ${POLICY_INSTALL_INIT} && \ - chown -R policy:policy ${POLICY_HOME} ${POLICY_LOGS} ${POLICY_INSTALL} +RUN mkdir -p ${POLICY_CONFIG} ${POLICY_LOGS} ${POLICY_INSTALL_INIT} && \ + chown -R policy:policy ${POLICY_LOGS} ${POLICY_INSTALL} WORKDIR ${POLICY_INSTALL} - COPY install-drools.zip docker-install.sh do-start.sh wait-for-port.sh ./ VOLUME [ "${POLICY_INSTALL_INIT}" ] |