Pamela Dragosh | 9bd4bf6 | 2017-03-30 12:46:08 -0400 | [diff] [blame] | 1 | FROM onap/policy/policy-base |
Pamela Dragosh | d1728dc | 2017-02-14 19:57:17 -0500 | [diff] [blame] | 2 | |
Jorge Hernandez | 0eab4f2 | 2017-06-20 17:32:25 -0500 | [diff] [blame] | 3 | RUN pip install http-prompt |
Jorge Hernandez | 9eb6ad5 | 2017-08-02 09:58:13 -0500 | [diff] [blame] | 4 | RUN mkdir -p /opt/app/policy/opt /tmp/policy-install && \ |
| 5 | chown -R policy /opt/app/policy /tmp/policy-install |
| 6 | |
Pamela Dragosh | d1728dc | 2017-02-14 19:57:17 -0500 | [diff] [blame] | 7 | WORKDIR /tmp/policy-install |
| 8 | |
| 9 | COPY install-drools.zip apps.zip docker-install.sh do-start.sh wait-for-port.sh ./ |
| 10 | |
Jorge Hernandez | 5ed2f95 | 2017-09-06 19:42:47 -0500 | [diff] [blame] | 11 | RUN unzip -o install-drools.zip && \ |
| 12 | unzip -o apps.zip && \ |
Jorge Hernandez | 9eb6ad5 | 2017-08-02 09:58:13 -0500 | [diff] [blame] | 13 | rm install-drools.zip apps.zip && \ |
| 14 | chown -R policy * && \ |
Jorge Hernandez | 377ab40 | 2017-08-14 18:00:18 -0500 | [diff] [blame] | 15 | chmod +x *.sh |
Pamela Dragosh | d1728dc | 2017-02-14 19:57:17 -0500 | [diff] [blame] | 16 | |
| 17 | USER policy |
| 18 | CMD ./do-start.sh |