Matteo Scandolo | 9ce1825 | 2017-06-22 10:48:25 -0700 | [diff] [blame] | 1 | # xosproject/xos-tosca |
Matteo Scandolo | 5c0af1b | 2017-07-05 14:51:21 -0700 | [diff] [blame] | 2 | FROM xosproject/xos-client:candidate |
| 3 | |
| 4 | # Set environment variables |
| 5 | ENV CODE_SOURCE . |
| 6 | ENV CODE_DEST /opt/xos-tosca |
| 7 | WORKDIR ${CODE_DEST} |
| 8 | |
| 9 | # Add XOS-TOSCA code |
| 10 | COPY ${CODE_SOURCE}/ ${CODE_DEST}/ |
| 11 | |
| 12 | # Install dependencies |
| 13 | RUN pip install -r ${CODE_DEST}/pip_requirements.txt |
| 14 | |
| 15 | EXPOSE 9102 |
| 16 | |
Matteo Scandolo | 5c0af1b | 2017-07-05 14:51:21 -0700 | [diff] [blame] | 17 | # Label image |
| 18 | ARG org_label_schema_schema_version=1.0 |
Zack Williams | dcf43d0 | 2017-07-17 17:16:35 -0700 | [diff] [blame] | 19 | ARG org_label_schema_name=gui-extension-sample |
Matteo Scandolo | 5c0af1b | 2017-07-05 14:51:21 -0700 | [diff] [blame] | 20 | ARG org_label_schema_version=unknown |
| 21 | ARG org_label_schema_vcs_url=unknown |
| 22 | ARG org_label_schema_vcs_ref=unknown |
| 23 | ARG org_label_schema_build_date=unknown |
| 24 | ARG org_opencord_vcs_commit_date=unknown |
Zack Williams | dcf43d0 | 2017-07-17 17:16:35 -0700 | [diff] [blame] | 25 | ARG org_opencord_component_chameleon_version=unknown |
| 26 | ARG org_opencord_component_chameleon_vcs_url=unknown |
| 27 | ARG org_opencord_component_chameleon_vcs_ref=unknown |
| 28 | ARG org_opencord_component_xos_version=unknown |
| 29 | ARG org_opencord_component_xos_vcs_url=unknown |
| 30 | ARG org_opencord_component_xos_vcs_ref=unknown |
Matteo Scandolo | 5c0af1b | 2017-07-05 14:51:21 -0700 | [diff] [blame] | 31 | |
| 32 | LABEL org.label-schema.schema-version=$org_label_schema_schema_version \ |
| 33 | org.label-schema.name=$org_label_schema_name \ |
| 34 | org.label-schema.version=$org_label_schema_version \ |
| 35 | org.label-schema.vcs-url=$org_label_schema_vcs_url \ |
| 36 | org.label-schema.vcs-ref=$org_label_schema_vcs_ref \ |
| 37 | org.label-schema.build-date=$org_label_schema_build_date \ |
Zack Williams | dcf43d0 | 2017-07-17 17:16:35 -0700 | [diff] [blame] | 38 | org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date \ |
| 39 | org.opencord.component.chameleon.version=$org_opencord_component_chameleon_version \ |
| 40 | org.opencord.component.chameleon.vcs-url=$org_opencord_component_chameleon_vcs_url \ |
| 41 | org.opencord.component.chameleon.vcs-ref=$org_opencord_component_chameleon_vcs_ref \ |
| 42 | org.opencord.component.xos.version=$org_opencord_component_xos_version \ |
| 43 | org.opencord.component.xos.vcs-url=$org_opencord_component_xos_vcs_url \ |
| 44 | org.opencord.component.xos.vcs-ref=$org_opencord_component_xos_vcs_ref |
Matteo Scandolo | 5c0af1b | 2017-07-05 14:51:21 -0700 | [diff] [blame] | 45 | |
Zack Williams | dcf43d0 | 2017-07-17 17:16:35 -0700 | [diff] [blame] | 46 | ENTRYPOINT [ "/usr/bin/python", "src/main.py" ] |
| 47 | |