blob: fb1fb8292d6385742815c5d0cebb7726c40621e2 [file] [log] [blame]
Matteo Scandolo1fedfae2017-10-09 13:57:00 -07001# docker build -t xosproject/xos-tosca:candidate .
2
Matteo Scandolo9ce18252017-06-22 10:48:25 -07003# xosproject/xos-tosca
Scott Baker08a1c082019-03-07 16:16:04 -08004
Scott Bakerca1195b2019-03-12 16:19:20 -07005FROM xosproject/xos-client:3.0.0
Matteo Scandolo5c0af1b2017-07-05 14:51:21 -07006
7# Set environment variables
8ENV CODE_SOURCE .
9ENV CODE_DEST /opt/xos-tosca
10WORKDIR ${CODE_DEST}
11
12# Add XOS-TOSCA code
13COPY ${CODE_SOURCE}/ ${CODE_DEST}/
14
15# Install dependencies
Zack Williamsf584f7c2018-08-30 15:34:15 -070016RUN pip install klein==16.12.0
Matteo Scandolo5c0af1b2017-07-05 14:51:21 -070017
18EXPOSE 9102
19
Matteo Scandolo5c0af1b2017-07-05 14:51:21 -070020# Label image
21ARG org_label_schema_schema_version=1.0
Zack Williamsdcf43d02017-07-17 17:16:35 -070022ARG org_label_schema_name=gui-extension-sample
Matteo Scandolo5c0af1b2017-07-05 14:51:21 -070023ARG org_label_schema_version=unknown
24ARG org_label_schema_vcs_url=unknown
25ARG org_label_schema_vcs_ref=unknown
26ARG org_label_schema_build_date=unknown
27ARG org_opencord_vcs_commit_date=unknown
Zack Williamsdcf43d02017-07-17 17:16:35 -070028ARG org_opencord_component_chameleon_version=unknown
29ARG org_opencord_component_chameleon_vcs_url=unknown
30ARG org_opencord_component_chameleon_vcs_ref=unknown
31ARG org_opencord_component_xos_version=unknown
32ARG org_opencord_component_xos_vcs_url=unknown
33ARG org_opencord_component_xos_vcs_ref=unknown
Matteo Scandolo5c0af1b2017-07-05 14:51:21 -070034
35LABEL 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 Williamsdcf43d02017-07-17 17:16:35 -070041 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 Scandolo5c0af1b2017-07-05 14:51:21 -070048
Zack Williamsdcf43d02017-07-17 17:16:35 -070049ENTRYPOINT [ "/usr/bin/python", "src/main.py" ]
50