blob: 73023a18023c2121c7f6facca2835a8cc5e15e80 [file] [log] [blame]
Matteo Scandoloc8610fc2019-01-08 13:45:47 -08001# Copyright 2017-present Open Networking Foundation
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# This Dockerfile is used to build an webserver that contains all the ONOS applications
16# used in SEBA 1.0.0.
17#
18# You can build this image using this command:
19# docker build -t opencord/mavenrepo:seba-1.0.0 -f Dockerfile.onos-apps.seba-1.0.0 .
20#
21# And install it using the mavenrepo helm-chart, such as: (note that you'll need to push the image to the docker registry on the pod)
22# helm install -n mavenrepo mavenrepo --set image.repository=<cluster-ip>:30500/opencord/mavenrepo --set image.tag=seba-1.0.0
23#
24# Once the container is deployed, your ONOS applications are available
25# and you can then use this values file while installing SEBA:
26#
27# seba-services:
28# oltAppUrl: http://<cluste-ip>:30160/olt.oar
29# sadisAppUrl: http://<cluste-ip>:30160/sadis.oar
30# dhcpL2RelayAppUrl: http://<cluste-ip>:30160/dhcpl2relay.oar
31# aaaAppUrl: http://<cluste-ip>:30160/aaa.oar
32# kafkaAppUrl: http://<cluste-ip>:30160/kafka.oar
33
34FROM nginx:1.15.8-alpine
35RUN mkdir -p /usr/share/nginx/html
36WORKDIR /usr/share/nginx/html
37
38RUN apk add --no-cache curl
39
40ENV OAR_REPO "oss.sonatype.org/service/local/repositories/releases/content/org/opencord/"
41RUN curl -L "$OAR_REPO/olt-app/2.1.0/olt-app-2.1.0.oar" > olt.oar \
42&& curl -L "$OAR_REPO/sadis-app/2.2.0/sadis-app-2.2.0.oar" > sadis.oar \
43&& curl -L "$OAR_REPO/dhcpl2relay/1.5.0/dhcpl2relay-1.5.0.oar" > dhcpl2relay.oar \
44&& curl -L "$OAR_REPO/aaa/1.8.0/aaa-1.8.0.oar" > aaa.oar \
45&& curl -L "$OAR_REPO/kafka/1.0.0/kafka-1.0.0.oar" > kafka.oar
46
47RUN chown nginx:nginx -R /usr/share/nginx/html