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