Zack Williams | 52986b2 | 2017-04-19 16:28:25 -0700 | [diff] [blame^] | 1 | # xosproject/chameleon |
Scott Baker | 85d614f | 2017-02-01 14:30:40 -0800 | [diff] [blame] | 2 | FROM xosproject/xos-base |
| 3 | |
| 4 | MAINTAINER Scott Baker <scottb@onlab.us> |
| 5 | MAINTAINER Zsolt Haraszti <zharaszt@ciena.com> |
| 6 | MAINTAINER Ali Al-Shabibi <ali.al-shabibi@onlab.us> |
| 7 | MAINTAINER Nathan Knuth <nathan.knuth@tibitcom.com> |
| 8 | |
Zack Williams | 52986b2 | 2017-04-19 16:28:25 -0700 | [diff] [blame^] | 9 | # Label image |
| 10 | ARG org_label_schema_schema_version=1.0 |
| 11 | ARG org_label_schema_name=chameleon |
| 12 | ARG org_label_schema_version=unknown |
| 13 | ARG org_label_schema_vcs_url=unknown |
| 14 | ARG org_label_schema_vcs_ref=unknown |
| 15 | ARG org_label_schema_build_date=unknown |
| 16 | ARG org_opencord_vcs_commit_date=unknown |
| 17 | ARG org_opencord_component_chameleon_version=unknown |
| 18 | ARG org_opencord_component_chameleon_vcs_url=unknown |
| 19 | ARG org_opencord_component_chameleon_vcs_ref=unknown |
| 20 | |
| 21 | LABEL 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 Baker | 85d614f | 2017-02-01 14:30:40 -0800 | [diff] [blame] | 32 | # xos-base already has protoc and dependencies installed |
| 33 | |
| 34 | # Bundle app source |
| 35 | RUN mkdir /chameleon && touch /chameleon/__init__.py |
| 36 | ENV PYTHONPATH=/chameleon |
Scott Baker | 41b2b74 | 2017-02-10 16:55:18 -0800 | [diff] [blame] | 37 | COPY tmp.chameleon /chameleon/chameleon |
Scott Baker | 85d614f | 2017-02-01 14:30:40 -0800 | [diff] [blame] | 38 | |
| 39 | # Build the protos |
| 40 | RUN chdir chameleon/chameleon/protos && VOLTHA_BASE=anything make |
| 41 | |
| 42 | # Exposing process and default entry point |
| 43 | CMD ["python", "chameleon/chameleon/main.py"] |