#!/bin/bash

set -e

apk update && apk add git
source /opt/resource/common.sh
start_docker

pushd LicenseFinder
  if [ ! -z "$(git diff master Dockerfile)" ]; then
    docker build . -t licensefinder/license_finder
  fi

  docker run -v $PWD:/lf -it licensefinder/license_finder /bin/bash \
    -exlc "cd /lf && ci/scripts/run-tests.sh $RUBY_VERSION_UNDER_TEST"
popd

#!/bin/sh

set -e

apk update && apk add git
source /docker-lib.sh
start_docker

pushd LicenseFinder
  if [ ! -z "$(git diff master Dockerfile)" ]; then
    docker build . -t licensefinder/license_finder
  fi

  docker run -v $PWD:/lf -it licensefinder/license_finder /bin/bash \
    -exlc "cd /lf && ci/scripts/run-tests.sh $RUBY_VERSION_UNDER_TEST"
popd

Change the containerize script to use the new docker image
Change the containerize script to use the new docker image

[#154026799]

Signed-off-by: Shane Lattanzio <8d464e6324483c505e61a33227a5372ac7f64bc0@pivotal.io>
