diff options
author | Thomas Wiest <twiest@redhat.com> | 2014-12-15 16:00:47 -0500 |
---|---|---|
committer | Thomas Wiest <twiest@redhat.com> | 2014-12-15 16:00:47 -0500 |
commit | 023f92f9e3eec7de6c1286549000be79189a4fde (patch) | |
tree | 0bb33e5ee852ea533f1f808a8e86e38c97699bb4 /roles/docker_img_build/files/ops-build-container.sh | |
parent | 2848232bdaed44fadb51548fe9d6c39fe89b8e11 (diff) | |
download | openshift-023f92f9e3eec7de6c1286549000be79189a4fde.tar.gz openshift-023f92f9e3eec7de6c1286549000be79189a4fde.tar.bz2 openshift-023f92f9e3eec7de6c1286549000be79189a4fde.tar.xz openshift-023f92f9e3eec7de6c1286549000be79189a4fde.zip |
changed atomic proxy to use pre-built container images
Diffstat (limited to 'roles/docker_img_build/files/ops-build-container.sh')
-rwxr-xr-x | roles/docker_img_build/files/ops-build-container.sh | 56 |
1 files changed, 0 insertions, 56 deletions
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 |