Matteo Scandolo | 3896c47 | 2017-08-01 13:31:42 -0700 | [diff] [blame] | 1 | |
| 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 Baker | 58e88a8 | 2016-11-18 13:39:09 -0800 | [diff] [blame] | 17 | # ONOS dockerfile with XOS/CORD additions |
| 18 | |
| 19 | FROM {{ onos_docker_image }} |
| 20 | MAINTAINER Zack Williams <zdw@cs.arizona.edu> |
| 21 | |
Jonathan Hart | a383c7c | 2017-08-18 13:58:16 -0700 | [diff] [blame] | 22 | RUN apk update && apk add java-cacerts |
| 23 | |
Scott Baker | 58e88a8 | 2016-11-18 13:39:09 -0800 | [diff] [blame] | 24 | # Add SSL certs |
Zack Williams | c047c87 | 2017-01-11 08:38:15 -0700 | [diff] [blame] | 25 | COPY cord_root_ca.crt /usr/local/share/ca-certificates/cord_root_ca.crt |
Zack Williams | c989f26 | 2017-05-11 13:02:59 -0700 | [diff] [blame] | 26 | COPY cord_{{ site_name }}_im_ca.crt /usr/local/share/ca-certificates/cord_{{ site_name }}_im_ca.crt |
Scott Baker | 58e88a8 | 2016-11-18 13:39:09 -0800 | [diff] [blame] | 27 | RUN update-ca-certificates |
| 28 | |
Jonathan Hart | 75ac6e9 | 2017-07-25 11:23:08 -0700 | [diff] [blame] | 29 | # Let ONOS know where the keystore is |
Jonathan Hart | a383c7c | 2017-08-18 13:58:16 -0700 | [diff] [blame] | 30 | ENV JAVA_OPTS="-Djavax.net.ssl.trustStore=/etc/ssl/certs/java/cacerts -Djavax.net.ssl.trustStorePassword={{ trust_store_pw }}" |
Scott Baker | 58e88a8 | 2016-11-18 13:39:09 -0800 | [diff] [blame] | 31 | |
Zack Williams | 30c01f9 | 2017-02-19 23:38:52 -0700 | [diff] [blame] | 32 | # Configure ONOS to log with log4j to ElasticStack |
| 33 | COPY org.ops4j.pax.logging.cfg /root/onos/apache-karaf-3.0.5/etc/org.ops4j.pax.logging.cfg |