blob: a9973bebaf92a610c4856e099ae991c7c3bb276d [file] [log] [blame]
Scott Baker58e88a82016-11-18 13:39:09 -08001# ONOS dockerfile with XOS/CORD additions
2
3FROM {{ onos_docker_image }}
4MAINTAINER Zack Williams <zdw@cs.arizona.edu>
5
6# Add SSL certs
7COPY xos-certs.crt /usr/local/share/ca-certificates/xos-certs.crt
8RUN update-ca-certificates
9
10# Create Java KeyStore from certs
11RUN 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
18COPY onos-service /root/onos/bin/onos-service
19RUN chmod 755 /root/onos/bin/onos-service
20