blob: c7487abedb7e9755d770d1b730f99cba947c329a [file] [log] [blame]
Matteo Scandolo3896c472017-08-01 13:31:42 -07001
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16
Scott Baker58e88a82016-11-18 13:39:09 -080017# ONOS dockerfile with XOS/CORD additions
18
19FROM {{ onos_docker_image }}
20MAINTAINER Zack Williams <zdw@cs.arizona.edu>
21
Jonathan Harta383c7c2017-08-18 13:58:16 -070022RUN apk update && apk add java-cacerts
23
Scott Baker58e88a82016-11-18 13:39:09 -080024# Add SSL certs
Zack Williamsc047c872017-01-11 08:38:15 -070025COPY cord_root_ca.crt /usr/local/share/ca-certificates/cord_root_ca.crt
Zack Williamsc989f262017-05-11 13:02:59 -070026COPY cord_{{ site_name }}_im_ca.crt /usr/local/share/ca-certificates/cord_{{ site_name }}_im_ca.crt
Scott Baker58e88a82016-11-18 13:39:09 -080027RUN update-ca-certificates
28
Jonathan Hart75ac6e92017-07-25 11:23:08 -070029# Let ONOS know where the keystore is
Jonathan Harta383c7c2017-08-18 13:58:16 -070030ENV JAVA_OPTS="-Djavax.net.ssl.trustStore=/etc/ssl/certs/java/cacerts -Djavax.net.ssl.trustStorePassword={{ trust_store_pw }}"
Scott Baker58e88a82016-11-18 13:39:09 -080031
Zack Williams30c01f92017-02-19 23:38:52 -070032# Configure ONOS to log with log4j to ElasticStack
33COPY org.ops4j.pax.logging.cfg /root/onos/apache-karaf-3.0.5/etc/org.ops4j.pax.logging.cfg