Zack Williams | 52986b2 | 2017-04-19 16:28:25 -0700 | [diff] [blame] | 1 | # xosproject/chameleon |
Andy Bavier | 635dfa1 | 2017-05-03 11:37:20 -0700 | [diff] [blame^] | 2 | FROM xosproject/xos-base:candidate |
Scott Baker | 85d614f | 2017-02-01 14:30:40 -0800 | [diff] [blame] | 3 | |
Zack Williams | a7fec78 | 2017-04-27 20:18:19 -0700 | [diff] [blame] | 4 | # xos-base already has protoc and dependencies installed |
| 5 | |
| 6 | # Bundle app source |
| 7 | RUN mkdir /chameleon && touch /chameleon/__init__.py |
| 8 | ENV PYTHONPATH=/chameleon |
| 9 | COPY tmp.chameleon /chameleon/chameleon |
| 10 | |
| 11 | # Build the protos |
| 12 | RUN chdir chameleon/chameleon/protos && VOLTHA_BASE=anything make |
Scott Baker | 85d614f | 2017-02-01 14:30:40 -0800 | [diff] [blame] | 13 | |
Zack Williams | 52986b2 | 2017-04-19 16:28:25 -0700 | [diff] [blame] | 14 | # Label image |
| 15 | ARG org_label_schema_schema_version=1.0 |
| 16 | ARG org_label_schema_name=chameleon |
| 17 | ARG org_label_schema_version=unknown |
| 18 | ARG org_label_schema_vcs_url=unknown |
| 19 | ARG org_label_schema_vcs_ref=unknown |
| 20 | ARG org_label_schema_build_date=unknown |
| 21 | ARG org_opencord_vcs_commit_date=unknown |
| 22 | ARG org_opencord_component_chameleon_version=unknown |
| 23 | ARG org_opencord_component_chameleon_vcs_url=unknown |
| 24 | ARG org_opencord_component_chameleon_vcs_ref=unknown |
| 25 | |
| 26 | LABEL 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 Baker | 85d614f | 2017-02-01 14:30:40 -0800 | [diff] [blame] | 37 | # Exposing process and default entry point |
| 38 | CMD ["python", "chameleon/chameleon/main.py"] |
Zack Williams | a7fec78 | 2017-04-27 20:18:19 -0700 | [diff] [blame] | 39 | |