Zack Williams | 2b94629 | 2016-08-22 15:32:29 -0700 | [diff] [blame] | 1 | # ONOS dockerfile with XOS/CORD additions |
| 2 | |
| 3 | FROM {{ onos_docker_image }} |
| 4 | MAINTAINER Zack Williams <zdw@cs.arizona.edu> |
| 5 | |
| 6 | # Add SSL certs |
| 7 | COPY xos-certs.crt /usr/local/share/ca-certificates/xos-certs.crt |
| 8 | RUN update-ca-certificates |
| 9 | |
| 10 | # Create Java KeyStore from certs |
| 11 | RUN openssl x509 -in /usr/local/share/ca-certificates/xos-certs.crt \ |
| 12 | -outform der -out /usr/local/share/ca-certificates/xos-certs.der && \ |
| 13 | keytool -import -noprompt -storepass {{ trust_store_pw }} -alias xos-certs \ |
| 14 | -file /usr/local/share/ca-certificates/xos-certs.der \ |
| 15 | -keystore /usr/local/share/ca-certificates/xos-certs.jks |
| 16 | |
| 17 | # Updated onos-service to use the jks |
| 18 | COPY onos-service /root/onos/bin/onos-service |
| 19 | RUN chmod 755 /root/onos/bin/onos-service |
| 20 | |