blob: 6d30cda69cedb85ab9a5ee4763faaecf027b9851 [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
Zack Williamsf1282942019-01-28 10:07:12 -07004FROM xosproject/xos-client:2.1.32
Matteo Scandolo5c0af1b2017-07-05 14:51:21 -07005
6# Set environment variables
7ENV CODE_SOURCE .
8ENV CODE_DEST /opt/xos-tosca
9WORKDIR ${CODE_DEST}
10
11# Add XOS-TOSCA code
12COPY ${CODE_SOURCE}/ ${CODE_DEST}/
13
14# Install dependencies
Zack Williamsf584f7c2018-08-30 15:34:15 -070015RUN pip install klein==16.12.0
Matteo Scandolo5c0af1b2017-07-05 14:51:21 -070016
17EXPOSE 9102
18
Matteo Scandolo5c0af1b2017-07-05 14:51:21 -070019# Label image
20ARG org_label_schema_schema_version=1.0
Zack Williamsdcf43d02017-07-17 17:16:35 -070021ARG org_label_schema_name=gui-extension-sample
Matteo Scandolo5c0af1b2017-07-05 14:51:21 -070022ARG org_label_schema_version=unknown
23ARG org_label_schema_vcs_url=unknown
24ARG org_label_schema_vcs_ref=unknown
25ARG org_label_schema_build_date=unknown
26ARG org_opencord_vcs_commit_date=unknown
Zack Williamsdcf43d02017-07-17 17:16:35 -070027ARG org_opencord_component_chameleon_version=unknown
28ARG org_opencord_component_chameleon_vcs_url=unknown
29ARG org_opencord_component_chameleon_vcs_ref=unknown
30ARG org_opencord_component_xos_version=unknown
31ARG org_opencord_component_xos_vcs_url=unknown
32ARG org_opencord_component_xos_vcs_ref=unknown
Matteo Scandolo5c0af1b2017-07-05 14:51:21 -070033
34LABEL 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 Williamsdcf43d02017-07-17 17:16:35 -070040 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 Scandolo5c0af1b2017-07-05 14:51:21 -070047
Zack Williamsdcf43d02017-07-17 17:16:35 -070048ENTRYPOINT [ "/usr/bin/python", "src/main.py" ]
49