#
# ============LICENSE_START=======================================================
-# Copyright (C) 2019 Nordix Foundation.
+# Copyright (C) 2019-2021,2023 Nordix Foundation.
# Modifications Copyright (C) 2019 AT&T Intellectual Property.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# Docker file to build an image that runs the PDP simulator on Java 8 in alpine
#
-FROM onap/policy-common-alpine:1.4.0
+FROM onap/policy-jre-alpine:3.0.3-SNAPSHOT
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 PDP simulator user and group
# Add simulator-specific directories and set ownership as the simulator user
+USER root
RUN mkdir -p ${POLICY_HOME}/pdp-sim \
&& mkdir -p ${POLICY_HOME}/pdp-sim/bin \
&& mkdir -p ${POLICY_LOGS} \
USER policy
ENV PATH ${POLICY_HOME}/pdp-sim/bin:$PATH
-ENTRYPOINT [ "bash", "pdp-sim.sh" ]
+ENTRYPOINT [ "sh", "/opt/app/policy/pdp-sim/bin/pdp-sim.sh" ]