blob: f5fb70cb732adc6baf747f5b450971391398116e [file] [log] [blame]
Zack Williams52986b22017-04-19 16:28:25 -07001# xosproject/chameleon
Andy Bavier635dfa12017-05-03 11:37:20 -07002FROM xosproject/xos-base:candidate
Scott Baker85d614f2017-02-01 14:30:40 -08003
Zack Williamsa7fec782017-04-27 20:18:19 -07004# xos-base already has protoc and dependencies installed
5
6# Bundle app source
7RUN mkdir /chameleon && touch /chameleon/__init__.py
8ENV PYTHONPATH=/chameleon
9COPY tmp.chameleon /chameleon/chameleon
10
11# Build the protos
12RUN chdir chameleon/chameleon/protos && VOLTHA_BASE=anything make
Scott Baker85d614f2017-02-01 14:30:40 -080013
Zack Williams52986b22017-04-19 16:28:25 -070014# Label image
15ARG org_label_schema_schema_version=1.0
16ARG org_label_schema_name=chameleon
17ARG org_label_schema_version=unknown
18ARG org_label_schema_vcs_url=unknown
19ARG org_label_schema_vcs_ref=unknown
20ARG org_label_schema_build_date=unknown
21ARG org_opencord_vcs_commit_date=unknown
22ARG org_opencord_component_chameleon_version=unknown
23ARG org_opencord_component_chameleon_vcs_url=unknown
24ARG org_opencord_component_chameleon_vcs_ref=unknown
25
26LABEL org.label-schema.schema-version=$org_label_schema_schema_version \
27 org.label-schema.name=$org_label_schema_name \
28 org.label-schema.version=$org_label_schema_version \
29 org.label-schema.vcs-url=$org_label_schema_vcs_url \
30 org.label-schema.vcs-ref=$org_label_schema_vcs_ref \
31 org.label-schema.build-date=$org_label_schema_build_date \
32 org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date \
33 org.opencord.component.chameleon.version=$org_opencord_component_chameleon_version \
34 org.opencord.component.chameleon.vcs-url=$org_opencord_component_chameleon_vcs_url \
35 org.opencord.component.chameleon.vcs-ref=$org_opencord_component_chameleon_vcs_ref
36
Scott Baker85d614f2017-02-01 14:30:40 -080037# Exposing process and default entry point
38CMD ["python", "chameleon/chameleon/main.py"]
Zack Williamsa7fec782017-04-27 20:18:19 -070039