#
# ============LICENSE_START=======================================================
# Copyright (C) 2019 Nordix Foundation.
+# Modifications Copyright (C) 2019 AT&T Intellectual Property.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# Docker file to build an image that runs the DMaaP simulator on Java 8 in alpine
#
-FROM onap/policy-common-alpine:1.4.0
+FROM onap/policy-jre-alpine
LABEL maintainer="Policy Team"
ENV POLICY_HOME=/opt/app/policy
ENV POLICY_LOGS=${POLICY_LOGS}
-RUN apk add --no-cache --update \
- bash \
- nss \
- procps \
- coreutils \
- findutils \
- grep \
- zip \
- unzip \
- curl \
- wget \
- openssh \
- iproute2 \
- iputils \
- vim \
- openjdk8
-
# Create DMaaP simulator user and group
# Add simulator-specific directories and set ownership as the simulator user
RUN mkdir -p ${POLICY_HOME}/dmaap-sim \
COPY dmaap-sim.sh ${POLICY_HOME}/dmaap-sim/bin
RUN find /opt/app -type d -perm 755 \
&& find /opt/app -type f -perm 644 \
- && chmod a+x ${POLICY_HOME}/dmaap-sim/bin/*
+ && chmod 755 ${POLICY_HOME}/dmaap-sim/bin/*
USER policy
ENV PATH ${POLICY_HOME}/dmaap-sim/bin:$PATH