blob: 3c56d8a040f01c80f3a85b4dab5fe5461a01e87a [file] [log] [blame]
Matteo Scandolo9ce18252017-06-22 10:48:25 -07001# xosproject/xos-tosca
Matteo Scandolo5c0af1b2017-07-05 14:51:21 -07002FROM xosproject/xos-client:candidate
3
4# Set environment variables
5ENV CODE_SOURCE .
6ENV CODE_DEST /opt/xos-tosca
7WORKDIR ${CODE_DEST}
8
9# Add XOS-TOSCA code
10COPY ${CODE_SOURCE}/ ${CODE_DEST}/
11
12# Install dependencies
13RUN pip install -r ${CODE_DEST}/pip_requirements.txt
14
15EXPOSE 9102
16
Matteo Scandolo5c0af1b2017-07-05 14:51:21 -070017# Label image
18ARG org_label_schema_schema_version=1.0
Zack Williamsdcf43d02017-07-17 17:16:35 -070019ARG org_label_schema_name=gui-extension-sample
Matteo Scandolo5c0af1b2017-07-05 14:51:21 -070020ARG org_label_schema_version=unknown
21ARG org_label_schema_vcs_url=unknown
22ARG org_label_schema_vcs_ref=unknown
23ARG org_label_schema_build_date=unknown
24ARG org_opencord_vcs_commit_date=unknown
Zack Williamsdcf43d02017-07-17 17:16:35 -070025ARG org_opencord_component_chameleon_version=unknown
26ARG org_opencord_component_chameleon_vcs_url=unknown
27ARG org_opencord_component_chameleon_vcs_ref=unknown
28ARG org_opencord_component_xos_version=unknown
29ARG org_opencord_component_xos_vcs_url=unknown
30ARG org_opencord_component_xos_vcs_ref=unknown
Matteo Scandolo5c0af1b2017-07-05 14:51:21 -070031
32LABEL org.label-schema.schema-version=$org_label_schema_schema_version \
33 org.label-schema.name=$org_label_schema_name \
34 org.label-schema.version=$org_label_schema_version \
35 org.label-schema.vcs-url=$org_label_schema_vcs_url \
36 org.label-schema.vcs-ref=$org_label_schema_vcs_ref \
37 org.label-schema.build-date=$org_label_schema_build_date \
Zack Williamsdcf43d02017-07-17 17:16:35 -070038 org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date \
39 org.opencord.component.chameleon.version=$org_opencord_component_chameleon_version \
40 org.opencord.component.chameleon.vcs-url=$org_opencord_component_chameleon_vcs_url \
41 org.opencord.component.chameleon.vcs-ref=$org_opencord_component_chameleon_vcs_ref \
42 org.opencord.component.xos.version=$org_opencord_component_xos_version \
43 org.opencord.component.xos.vcs-url=$org_opencord_component_xos_vcs_url \
44 org.opencord.component.xos.vcs-ref=$org_opencord_component_xos_vcs_ref
Matteo Scandolo5c0af1b2017-07-05 14:51:21 -070045
Zack Williamsdcf43d02017-07-17 17:16:35 -070046ENTRYPOINT [ "/usr/bin/python", "src/main.py" ]
47