blob: 3a2998964c7050859f0cd227779590eac5234375 [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
Matteo Scandolo5c0af1b2017-07-05 14:51:21 -07004FROM xosproject/xos-client:candidate
5
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
15RUN pip install -r ${CODE_DEST}/pip_requirements.txt
16
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