blob: 97c4c923bc4aa38a535daf7fdbc5f677ec0b6dd4 [file] [log] [blame]
Zack Williams52986b22017-04-19 16:28:25 -07001# xosproject/chameleon
Scott Baker85d614f2017-02-01 14:30:40 -08002FROM xosproject/xos-base
3
4MAINTAINER Scott Baker <scottb@onlab.us>
5MAINTAINER Zsolt Haraszti <zharaszt@ciena.com>
6MAINTAINER Ali Al-Shabibi <ali.al-shabibi@onlab.us>
7MAINTAINER Nathan Knuth <nathan.knuth@tibitcom.com>
8
Zack Williams52986b22017-04-19 16:28:25 -07009# Label image
10ARG org_label_schema_schema_version=1.0
11ARG org_label_schema_name=chameleon
12ARG org_label_schema_version=unknown
13ARG org_label_schema_vcs_url=unknown
14ARG org_label_schema_vcs_ref=unknown
15ARG org_label_schema_build_date=unknown
16ARG org_opencord_vcs_commit_date=unknown
17ARG org_opencord_component_chameleon_version=unknown
18ARG org_opencord_component_chameleon_vcs_url=unknown
19ARG org_opencord_component_chameleon_vcs_ref=unknown
20
21LABEL org.label-schema.schema-version=$org_label_schema_schema_version \
22 org.label-schema.name=$org_label_schema_name \
23 org.label-schema.version=$org_label_schema_version \
24 org.label-schema.vcs-url=$org_label_schema_vcs_url \
25 org.label-schema.vcs-ref=$org_label_schema_vcs_ref \
26 org.label-schema.build-date=$org_label_schema_build_date \
27 org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date \
28 org.opencord.component.chameleon.version=$org_opencord_component_chameleon_version \
29 org.opencord.component.chameleon.vcs-url=$org_opencord_component_chameleon_vcs_url \
30 org.opencord.component.chameleon.vcs-ref=$org_opencord_component_chameleon_vcs_ref
31
Scott Baker85d614f2017-02-01 14:30:40 -080032# xos-base already has protoc and dependencies installed
33
34# Bundle app source
35RUN mkdir /chameleon && touch /chameleon/__init__.py
36ENV PYTHONPATH=/chameleon
Scott Baker41b2b742017-02-10 16:55:18 -080037COPY tmp.chameleon /chameleon/chameleon
Scott Baker85d614f2017-02-01 14:30:40 -080038
39# Build the protos
40RUN chdir chameleon/chameleon/protos && VOLTHA_BASE=anything make
41
42# Exposing process and default entry point
43CMD ["python", "chameleon/chameleon/main.py"]