4 #--------------------------------------------------------------------------------
5 # Copyright (c) 2018-2019 AT&T Intellectual Property.
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 #--------------------------------------------------------------------------------
20 #------------------------------------------------------------------------------------
21 # Mnemonic: build_images.sh
22 # Abstract: This script will create both the mc_listener runtime and development
24 # Date: 22 August 2-19
25 # Author: E. Scott Daniels
26 # -----------------------------------------------------------------------------------
35 if [[ $1 == "-?" || $1 == "-h" ]]
37 echo "usage: $0 [all] [mcl-version-tag [patch-level]]"
38 echo " using all as first keyword causes both runtime and dev images to build"
46 if (( skip_dev == 0 ))
48 echo "building development image"
49 docker build -f mcl_dev.df -t mcl_dev:$ver.$patch .
52 echo "building runtime image mc_listener:$ver"
53 if docker build -f mcl_runtime.df -t mc_listener:$ver.$patch .
57 docker images|grep mc_