blob: 154689095d8df544ed4c84aca9215a6bfbf79cff [file] [log] [blame]
Andy Bavier85ec6b92018-04-09 15:55:55 -07001
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
Kailash Khalasie8e34502018-08-22 10:01:22 -070019FROM python:2.7
Andy Bavier85ec6b92018-04-09 15:55:55 -070020
Kailash Khalasi79418ea2018-10-10 08:59:27 -070021RUN pip install httpie robotframework robotframework-requests pexpect \
Kailashc3d919e2019-01-22 10:14:08 -080022 robotframework-sshlibrary robotframework-httplibrary robotframework-ride robotframework-kafkalibrary pygments pyyaml && \
Andy Bavier85ec6b92018-04-09 15:55:55 -070023 pip install -U requests && rm -rf /var/lib/apt/lists/*
24
25RUN mkdir -p /src/cord-api
26
27COPY . /src/cord-api
28
29WORKDIR /src/cord-api/Tests
30
31ARG org_label_schema_schema_version=1.0
32ARG org_label_schema_name=xos-api-tester
33ARG org_label_schema_version=unknown
34ARG org_label_schema_vcs_url=unknown
35ARG org_label_schema_vcs_ref=unknown
36ARG org_label_schema_build_date=unknown
37ARG org_opencord_vcs_commit_date=unknown
38
39LABEL org.label-schema.schema-version=$org_label_schema_schema_version \
40 org.label-schema.name=$org_label_schema_name \
41 org.label-schema.version=$org_label_schema_version \
42 org.label-schema.vcs-url=$org_label_schema_vcs_url \
43 org.label-schema.vcs-ref=$org_label_schema_vcs_ref \
44 org.label-schema.build-date=$org_label_schema_build_date \
45 org.opencord.vcs-commit-date=$org_opencord_vcs_commit_date
46
Kailashc3d919e2019-01-22 10:14:08 -080047ENTRYPOINT ["robot", "-d", "Log", "-T"]
Kailash Khalasie8e34502018-08-22 10:01:22 -070048CMD ["Ch_ServiceTest.txt"]