blob: d4cd77b8184006cce1eb79dcd4668e52cdd01799 [file] [log] [blame]
Pamela Dragosh9bd4bf62017-03-30 12:46:08 -04001FROM onap/policy/policy-base
Pamela Dragoshd1728dc2017-02-14 19:57:17 -05002
Jorge Hernandez0eab4f22017-06-20 17:32:25 -05003RUN pip install http-prompt
Jorge Hernandez9eb6ad52017-08-02 09:58:13 -05004RUN mkdir -p /opt/app/policy/opt /tmp/policy-install && \
5 chown -R policy /opt/app/policy /tmp/policy-install
6
Pamela Dragoshd1728dc2017-02-14 19:57:17 -05007WORKDIR /tmp/policy-install
8
9COPY install-drools.zip apps.zip docker-install.sh do-start.sh wait-for-port.sh ./
10
Jorge Hernandez5ed2f952017-09-06 19:42:47 -050011RUN unzip -o install-drools.zip && \
12 unzip -o apps.zip && \
Jorge Hernandez9eb6ad52017-08-02 09:58:13 -050013 rm install-drools.zip apps.zip && \
14 chown -R policy * && \
Jorge Hernandez377ab402017-08-14 18:00:18 -050015 chmod +x *.sh
Pamela Dragoshd1728dc2017-02-14 19:57:17 -050016
17USER policy
18CMD ./do-start.sh