blob: fb649a2084b854383a4df0a8ea15e4009f4bb3b6 [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
Zack Williams9a766352019-04-09 18:08:05 -070015# xosproject/xos-client
16FROM xosproject/alpine-grpc-base:0.9.0
Matteo Scandolo97521b92017-07-12 16:24:36 -070017
18# Add libraries
Zack Williams9a766352019-04-09 18:08:05 -070019RUN mkdir -p /opt/xos
Matteo Scandolo97521b92017-07-12 16:24:36 -070020COPY lib /opt/xos/lib
Scott Bakerbcbd4cc2018-03-07 13:50:21 -080021COPY VERSION /opt/xos
22
Zack Williamsbe5ee1c2019-03-18 15:33:07 -070023# Install python using pip so their dependencies are installed
24RUN pip install -e /opt/xos/lib/xos-util \
25 && pip install -e /opt/xos/lib/xos-config \
Zack Williams1e192232019-05-01 13:58:39 -070026 && pip install -e /opt/xos/lib/xos-genx \
Zack Williamsbe5ee1c2019-03-18 15:33:07 -070027 && pip install -e /opt/xos/lib/xos-api \
Zack Williams9a766352019-04-09 18:08:05 -070028 && pip freeze > /var/xos/pip_freeze_xos-client_`date -u +%Y%m%dT%H%M%S`
Matteo Scandolo97521b92017-07-12 16:24:36 -070029
30# Label image
Matteo Scandolo97521b92017-07-12 16:24:36 -070031ARG org_label_schema_version=unknown
32ARG org_label_schema_vcs_url=unknown
33ARG org_label_schema_vcs_ref=unknown
34ARG org_label_schema_build_date=unknown
35ARG org_opencord_vcs_commit_date=unknown
36
Zack Williams9a766352019-04-09 18:08:05 -070037LABEL org.label-schema.schema-version=1.0 \
38 org.label-schema.name=xos-client \
Matteo Scandolo97521b92017-07-12 16:24:36 -070039 org.label-schema.version=$org_label_schema_version \
40 org.label-schema.vcs-url=$org_label_schema_vcs_url \
41 org.label-schema.vcs-ref=$org_label_schema_vcs_ref \
42 org.label-schema.build-date=$org_label_schema_build_date \
Zack Williamsf1b50982018-08-26 16:35:49 -070043 org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date
Zack Williams9a766352019-04-09 18:08:05 -070044
45CMD ["xossh"]