Add container scripts for k8s conformance test
[validation.git] / docker / README.rst
1 .. ############################################################################
2 .. Copyright (c) 2019 AT&T, ENEA AB, Nokia and others                         #
3 ..                                                                            #
4 .. Licensed under the Apache License, Version 2.0 (the "License");            #
5 .. you maynot use this file except in compliance with the License.            #
6 ..                                                                            #
7 .. You may obtain a copy of the License at                                    #
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, WITHOUT  #
12 .. 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
17
18 Overview
19 ========
20
21 The Makefile in this directory is used to build and push all
22 the validation containers. The command to do that is:
23    make all REGISTRY=<dockerhub_registry>
24 To just build the containers, use the command:
25    make build-all REGISTRY=<dockerhub_registry>
26
27 The k8s container
28 =================
29
30 To build just the k8s container, use the command:
31    make k8s-build REGISTRY=<dockerhub_registry>
32 To both build and push the container, use the command:
33    make k8s REGISTRY=<dockerhub_registry>
34
35 Container should be started with the admin.conf file mounted:
36 docker run -ti -v /home/jenkins/admin.conf:/root/.kube/config \
37 <dockerhub_registry>/akraino_validation:k8s-latest /bin/sh