From 023f92f9e3eec7de6c1286549000be79189a4fde Mon Sep 17 00:00:00 2001 From: Thomas Wiest Date: Mon, 15 Dec 2014 16:00:47 -0500 Subject: changed atomic proxy to use pre-built container images --- .../docker_img_build/files/ops-build-container.sh | 56 ---------------------- 1 file changed, 56 deletions(-) delete mode 100755 roles/docker_img_build/files/ops-build-container.sh (limited to 'roles/docker_img_build/files') diff --git a/roles/docker_img_build/files/ops-build-container.sh b/roles/docker_img_build/files/ops-build-container.sh deleted file mode 100755 index 308fbd58c..000000000 --- a/roles/docker_img_build/files/ops-build-container.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/bash - -RED=$(echo -e "\e[31m") -GREEN=$(echo -e "\e[32m") -YELLOW=$(echo -e "\e[33m") -BLUE=$(echo -e "\e[34m") -NORM=$(echo -e "\e[0m") - -CTR_DIR='/usr/local/etc/containers' - -EXIT_CODE=0 - -function main() -{ - # Make sure we're in the directory we expect to be in - cd $CTR_DIR - - TAG=$(echo $1 | sed 's/_container[\/]*//') - if [ -z "$TAG" ] - then - echo "FAILED parsing tag from \$1 [$1]" - exit 10 - fi - - docker build --rm -t $TAG $1 - EXIT_CODE=$? -} - -if [ $# -ne 1 ] -then - echo - echo " Usage: $(basename $0) container" - echo "Example: $(basename $0) monitoring_container" - echo - exit -fi - -if ! [ -d "$CTR_DIR/$1" ] -then - echo "Error: directory not found [$CTR_DIR/$1]" - exit 10 -fi - -time main $@ -echo -echo - -if [ $EXIT_CODE -eq 0 ] -then - echo "${GREEN}$1 build succeeded.${NORM}" -else - echo "${RED}$1 build FAILED!${NORM}" -fi - -echo -exit $EXIT_CODE -- cgit v1.2.3