blob: 08bb20f5a4b41e2b8db6d0dccbe441cc1b9f89b4 [file] [log] [blame]
FROM nexus3.onap.org:10001/onap/integration-java11:8.0.0
COPY --chown=onap:onap a1-pe-simulator*.jar /a1-pe-simulator/a1-pe-simulator.jar
# Create conf directory where vnf.config and topology files will be placed by ONAP controller
USER root
RUN mkdir /var/netconf2 && chown onap:onap /var/netconf2
USER onap
COPY --chown=onap:onap resource/* /var/netconf2/
WORKDIR /a1-pe-simulator
EXPOSE 9998
ENTRYPOINT exec java $JAVA_SEC_OPTS $JAVA_OPTS -Djava.security.egd=file:/dev/urandom -Duser.home=/a1-pe-simulator -Dproc.name=a1-pe-simulator -jar a1-pe-simulator.jar