blob: 6ac780b4580433e6ab9e9f70c47a51b3d462116b [file] [log] [blame]
# ONOS dockerfile with XOS additions
#FROM xosproject/onos-fork
FROM onosproject/onos:1.6
MAINTAINER Zack Williams <zdw@cs.arizona.edu>
# Include SSL certs
COPY xos-certs.crt /usr/local/share/ca-certificates/xos-certs.crt
RUN update-ca-certificates
# Create Java KeyStore from certs
RUN openssl x509 -in /usr/local/share/ca-certificates/xos-certs.crt -outform der -out /usr/local/share/ca-certificates/xos-certs.der
RUN keytool -import -noprompt -storepass 222222 -alias xos-certs -file /usr/local/share/ca-certificates/xos-certs.der -keystore /usr/local/share/ca-certificates/xos-certs.jks
# Updated onos-service to use the jks
COPY onos-service /root/onos/bin/onos-service
RUN chmod 755 /root/onos/bin/onos-service