#!/bin/bash

################################################################################
#                                                                              #
#  Script to build and test all urbancode Docker images                        #
#                                                                              #
#                                                                              #
#  Usage : buildAll.sh							                                           #
#                                                                              #
################################################################################

while read -r imageName buildContextDirectory
do
  ./tools/build.sh $imageName $buildContextDirectory

  if [ $? != 0 ]; then
    echo "Failed at image $imageName - exiting"
    exit 1
  fi

done < "images.txt"

#!/bin/bash

################################################################################
#                                                                              #
#  Script to build and test all urbancode Docker images                        #
#                                                                              #
#                                                                              #
#  Usage : buildAll.sh							                                           #
#                                                                              #
################################################################################

mkdir ./logs

while read -r imageName buildContextDirectory
do
  ./tools/build.sh $imageName $buildContextDirectory

  if [ $? != 0 ]; then
    echo "Failed at image $imageName - exiting"
    exit 1
  fi

done < "images.txt"

Create logs directory for writing.
Create logs directory for writing.

Signed-off-by: Adam King <a74e182e49abf6252c9b13e1b94c4c5a47f8da9a@us.ibm.com>
