Andy Bavier | 85ec6b9 | 2018-04-09 15:55:55 -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 | |
| 16 | # Manual build example: |
| 17 | # docker build -f Dockerfile.k8s-api-tester -t xos-api-tester:local . |
| 18 | |
| 19 | FROM ubuntu:16.04 |
| 20 | |
| 21 | RUN apt-get update && \ |
| 22 | apt-get install -y python python-pip python-setuptools && \ |
| 23 | pip install robotframework robotframework-requests pexpect \ |
| 24 | robotframework-httplibrary robotframework-ride pygments pyyaml && \ |
| 25 | pip install -U requests && rm -rf /var/lib/apt/lists/* |
| 26 | |
| 27 | RUN mkdir -p /src/cord-api |
| 28 | |
| 29 | COPY . /src/cord-api |
| 30 | |
| 31 | WORKDIR /src/cord-api/Tests |
| 32 | |
| 33 | ARG org_label_schema_schema_version=1.0 |
| 34 | ARG org_label_schema_name=xos-api-tester |
| 35 | ARG org_label_schema_version=unknown |
| 36 | ARG org_label_schema_vcs_url=unknown |
| 37 | ARG org_label_schema_vcs_ref=unknown |
| 38 | ARG org_label_schema_build_date=unknown |
| 39 | ARG org_opencord_vcs_commit_date=unknown |
| 40 | |
| 41 | LABEL org.label-schema.schema-version=$org_label_schema_schema_version \ |
| 42 | org.label-schema.name=$org_label_schema_name \ |
| 43 | org.label-schema.version=$org_label_schema_version \ |
| 44 | org.label-schema.vcs-url=$org_label_schema_vcs_url \ |
| 45 | org.label-schema.vcs-ref=$org_label_schema_vcs_ref \ |
| 46 | org.label-schema.build-date=$org_label_schema_build_date \ |
| 47 | org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date |
| 48 | |
| 49 | ENTRYPOINT ["pybot", "-L", "TRACE", "-d", "Log", "-T"] |
| 50 | CMD ["Ch_ServiceTest.txt"] |