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