From 9d61bc2ace8e1c0a33dc19435bd66ead426cb9db Mon Sep 17 00:00:00 2001
From: Scott Stroud <sstroud@confluent.io>
Date: Wed, 3 Aug 2022 14:34:28 -0600
Subject: [PATCH] rm build-image.sh

---
 build-image.sh | 60 --------------------------------------------------
 1 file changed, 60 deletions(-)
 delete mode 100755 build-image.sh

diff --git a/build-image.sh b/build-image.sh
deleted file mode 100755
index ab22f39..0000000
--- a/build-image.sh
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/bin/bash
-start=`date +%s`
-
-##
-# Docker Dependencies: 
-#   https://docs.confluent.io/current/installation/docker/image-reference.html#image-reference
-
-##
-# Settings for the build process
-
-if [[ -f .env ]]; then
-    echo "Loading in '.env' for values ..."
-    export $(grep -v '^#' .env | xargs)
-    echo " "
-elif [[ -f ../.env ]]; then
-    echo "Loading in PARENT '.env' for values ..."
-    export $(grep -v '^#' ../.env | xargs)
-    echo " "
-fi
-
-# The BASE_ is used by PlatformOne to change the base image, we will make use of RedHat
-BASE_REGISTRY=${BASE_REGISTRY:-'registry1.dso.mil'}
-MANI='hardening_manifest.yaml'
-
-## parse manifest with yq (https://github.com/mikefarah/yq)
-name=$(yq e '.name' $MANI)
-tags=( $(yq e '.tags.[]' $MANI) )
-baseImage=$(yq e '.args.BASE_IMAGE' $MANI)
-baseTag=$(yq e '.args.BASE_TAG' $MANI)
-
-echo "Starting $name build ..."
-
-echo "$name docker build ..."
-
-if [[ "$1" == "--squash" ]]; then
-  echo "Squashing like a cockroach ..."
-  DOCKER_BUILDKIT=1 docker build \
-    --squash \
-    --tag $BASE_REGISTRY/$name:latest \
-    --build-arg BASE_REGISTRY=$BASE_REGISTRY \
-    --build-arg BASE_IMAGE=$baseImage \
-    --build-arg BASE_TAG=$baseTag \
-    . 
-else
-  DOCKER_BUILDKIT=1 docker build \
-    --tag $BASE_REGISTRY/$name:latest \
-    --build-arg BASE_REGISTRY=$BASE_REGISTRY \
-    --build-arg BASE_IMAGE=$baseImage \
-    --build-arg BASE_TAG=$baseTag \
-    .  
-fi
-
-for tag in "${tags[@]}";do
-  docker tag $BASE_REGISTRY/$name:latest $BASE_REGISTRY/$name:$tag
-  echo "🏷 Tagged build with $BASE_REGISTRY/$name:$tag" 
-done
-
-end=`date +%s`
-duration=$((end-start))
-echo "🏁 Finished $CONTAINER build (${duration} seconds)"
\ No newline at end of file
-- 
GitLab