Matteo Scandolo | d2044a4 | 2017-08-07 16:08:28 -0700 | [diff] [blame] | 1 | # 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 Baker | c11206e | 2018-08-23 08:33:47 -0700 | [diff] [blame] | 15 | FROM xosproject/xos-base:master |
Matteo Scandolo | 97521b9 | 2017-07-12 16:24:36 -0700 | [diff] [blame] | 16 | |
| 17 | # Add libraries |
| 18 | COPY lib /opt/xos/lib |
Scott Baker | bcbd4cc | 2018-03-07 13:50:21 -0800 | [diff] [blame] | 19 | COPY VERSION /opt/xos |
| 20 | |
Zack Williams | f1b5098 | 2018-08-26 16:35:49 -0700 | [diff] [blame^] | 21 | # Install python modules included with XOS |
| 22 | RUN 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 Scandolo | 97521b9 | 2017-07-12 16:24:36 -0700 | [diff] [blame] | 26 | |
| 27 | # Label image |
| 28 | ARG org_label_schema_schema_version=1.0 |
| 29 | ARG org_label_schema_name=xos-libraries |
| 30 | ARG org_label_schema_version=unknown |
| 31 | ARG org_label_schema_vcs_url=unknown |
| 32 | ARG org_label_schema_vcs_ref=unknown |
| 33 | ARG org_label_schema_build_date=unknown |
| 34 | ARG org_opencord_vcs_commit_date=unknown |
| 35 | |
| 36 | LABEL 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 Williams | f1b5098 | 2018-08-26 16:35:49 -0700 | [diff] [blame^] | 42 | org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date |