Scott Baker | 1d262ca | 2018-03-23 12:32:51 -0700 | [diff] [blame] | 1 | |
| 2 | # Copyright 2017-present Open Networking Foundation |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
Matteo Scandolo | 9354a80 | 2018-04-11 11:09:17 -0700 | [diff] [blame] | 16 | # docker build -t xosproject/rcord-synchronizer:candidate -f Dockerfile.synchronizer . |
Scott Baker | 1d262ca | 2018-03-23 12:32:51 -0700 | [diff] [blame] | 17 | |
| 18 | # xosproject/rcord-synchronizer |
Scott Baker | bf20994 | 2019-03-08 10:53:43 -0800 | [diff] [blame] | 19 | |
Scott Baker | b167151 | 2019-04-01 19:16:54 -0700 | [diff] [blame] | 20 | FROM xosproject/alpine-grpc-base:0.9.0 |
Matteo Scandolo | 10d9451 | 2019-03-04 15:54:43 -0800 | [diff] [blame] | 21 | |
Scott Baker | b167151 | 2019-04-01 19:16:54 -0700 | [diff] [blame] | 22 | # Install pip packages |
| 23 | COPY requirements.txt /tmp/requirements.txt |
| 24 | RUN pip install -r /tmp/requirements.txt \ |
| 25 | && pip freeze > /var/xos/pip_freeze_rcord_service_`date -u +%Y%m%dT%H%M%S` |
| 26 | |
| 27 | # Copy files |
Scott Baker | 1d262ca | 2018-03-23 12:32:51 -0700 | [diff] [blame] | 28 | COPY xos/synchronizer /opt/xos/synchronizers/rcord |
| 29 | COPY VERSION /opt/xos/synchronizers/rcord/ |
| 30 | |
| 31 | ENTRYPOINT [] |
| 32 | |
| 33 | WORKDIR "/opt/xos/synchronizers/rcord" |
| 34 | |
| 35 | # Label image |
| 36 | ARG org_label_schema_schema_version=1.0 |
| 37 | ARG org_label_schema_name=rcord-synchronizer |
| 38 | ARG org_label_schema_version=unknown |
| 39 | ARG org_label_schema_vcs_url=unknown |
| 40 | ARG org_label_schema_vcs_ref=unknown |
| 41 | ARG org_label_schema_build_date=unknown |
| 42 | ARG org_opencord_vcs_commit_date=unknown |
| 43 | ARG org_opencord_component_chameleon_version=unknown |
| 44 | ARG org_opencord_component_chameleon_vcs_url=unknown |
| 45 | ARG org_opencord_component_chameleon_vcs_ref=unknown |
| 46 | ARG org_opencord_component_xos_version=unknown |
| 47 | ARG org_opencord_component_xos_vcs_url=unknown |
| 48 | ARG org_opencord_component_xos_vcs_ref=unknown |
| 49 | |
| 50 | LABEL org.label-schema.schema-version=$org_label_schema_schema_version \ |
| 51 | org.label-schema.name=$org_label_schema_name \ |
| 52 | org.label-schema.version=$org_label_schema_version \ |
| 53 | org.label-schema.vcs-url=$org_label_schema_vcs_url \ |
| 54 | org.label-schema.vcs-ref=$org_label_schema_vcs_ref \ |
| 55 | org.label-schema.build-date=$org_label_schema_build_date \ |
| 56 | org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date \ |
| 57 | org.opencord.component.chameleon.version=$org_opencord_component_chameleon_version \ |
| 58 | org.opencord.component.chameleon.vcs-url=$org_opencord_component_chameleon_vcs_url \ |
| 59 | org.opencord.component.chameleon.vcs-ref=$org_opencord_component_chameleon_vcs_ref \ |
| 60 | org.opencord.component.xos.version=$org_opencord_component_xos_version \ |
| 61 | org.opencord.component.xos.vcs-url=$org_opencord_component_xos_vcs_url \ |
| 62 | org.opencord.component.xos.vcs-ref=$org_opencord_component_xos_vcs_ref |
| 63 | |
Scott Baker | b167151 | 2019-04-01 19:16:54 -0700 | [diff] [blame] | 64 | CMD ["/usr/bin/python", "/opt/xos/synchronizers/rcord/rcord-synchronizer.py"] |