Update the docker registry
[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 default registry is **akraino** on
23 dockerhub, but only CI jenkins slaves are authorized to push
24 images to that registry. If you want to push to your own test registry, set
25 the REGISTRY variables as in the commands below.
26
27 To build and push the images:
28    make all [ REGISTRY=<dockerhub_registry> ]
29 To just build the containers, use the command:
30    make build-all [ REGISTRY=<dockerhub_registry> ]
31
32 The k8s container
33 =================
34
35 To build just the k8s container, use the command:
36    make k8s-build [ REGISTRY=<dockerhub_registry> ]
37 To both build and push the container, use the command:
38    make k8s [ REGISTRY=<dockerhub_registry> ]
39
40 Container should be started with the admin.conf file mounted:
41 docker run -ti -v /home/jenkins/admin.conf:/root/.kube/config \
42 <dockerhub_registry>/validation:k8s-latest /bin/sh