blob: ef51df43a0c6ca174ef3a0cd35d1f0330d65c8b1 [file] [log] [blame]
Matteo Scandolod2044a42017-08-07 16:08:28 -07001# 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
Scott Bakerc11206e2018-08-23 08:33:47 -070015FROM xosproject/xos-base:master
Matteo Scandolo97521b92017-07-12 16:24:36 -070016
17# Add libraries
18COPY lib /opt/xos/lib
Scott Bakerbcbd4cc2018-03-07 13:50:21 -080019COPY VERSION /opt/xos
20
Zack Williamsf1b50982018-08-26 16:35:49 -070021# Install python modules included with XOS
22RUN cd /opt/xos/lib/xos-util && python setup.py install \
23 && cd /opt/xos/lib/xos-config && python setup.py install \
24 && cd /opt/xos/lib/xos-genx && python setup.py install \
25 && cd /opt/xos/lib/kafkaloghandler && python setup.py install
Matteo Scandolo97521b92017-07-12 16:24:36 -070026
27# Label image
28ARG org_label_schema_schema_version=1.0
29ARG org_label_schema_name=xos-libraries
30ARG org_label_schema_version=unknown
31ARG org_label_schema_vcs_url=unknown
32ARG org_label_schema_vcs_ref=unknown
33ARG org_label_schema_build_date=unknown
34ARG org_opencord_vcs_commit_date=unknown
35
36LABEL org.label-schema.schema-version=$org_label_schema_schema_version \
37 org.label-schema.name=$org_label_schema_name \
38 org.label-schema.version=$org_label_schema_version \
39 org.label-schema.vcs-url=$org_label_schema_vcs_url \
40 org.label-schema.vcs-ref=$org_label_schema_vcs_ref \
41 org.label-schema.build-date=$org_label_schema_build_date \
Zack Williamsf1b50982018-08-26 16:35:49 -070042 org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date