aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/build_containers
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/build_containers')
-rwxr-xr-xscripts/build_containers73
1 files changed, 0 insertions, 73 deletions
diff --git a/scripts/build_containers b/scripts/build_containers
deleted file mode 100755
index 4335d8b..0000000
--- a/scripts/build_containers
+++ /dev/null
@@ -1,73 +0,0 @@
-#!/usr/bin/env bash
-set -e
-set -o pipefail
-
-# This is a sanity test script for the CODI and toolchain Docker images.
-# This removes the old test containers, and builds a new codi and new toolchains.
-# If you do not have the deps containers, it will build them but this takes awhile
-#
-# Example:
-#
-# ./tests/build_containers
-
-TOPDIR=`git rev-parse --show-toplevel`
-
-# remove codi test image as we will rebuild it
-Q=`docker images -q crops/codi:test`
-if [ "$Q" != "" ]; then
- echo "Removing codi image"
- docker rmi -f $Q
-fi
-
-Q=`docker images -q crops/codi:testdebug`
-if [ "$Q" != "" ]; then
- echo "Removing codi debug image"
- docker rmi -f $Q
-fi
-
-# remove toolchain test image as we will rebuild it
-Q=`docker images -q crops/toolchain:test`
-if [ "$Q" != "" ]; then
- echo "Removing toolchain image"
- docker rmi -f $Q
-fi
-
-# remove Zephyr toolchain image as we will rebuild it
-Q=`docker images -q crops/zephyr:test`
-if [ "$Q" != "" ]; then
- echo "Removing Zephyr toolchain image"
- docker rmi -f $Q
-fi
-
-cd ${TOPDIR}/dockerfiles;
-
-Q=`docker images -q crops/codi:deps`
-if [ "$Q" == "" ]; then
- echo "Build CODI deps image"
- docker build -t crops/codi:deps -f Dockerfile.codi.deps --rm=true ..
-fi
-
-
-echo "Build CODI test image"
-docker build -t crops/codi:test -f Dockerfile.codi --rm=true ..
-
-echo "Build CODI debug test image"
-docker build -t crops/codi:testdebug --build-arg build_type=debug -f Dockerfile.codi --rm=true ..
-
-Q=`docker images -q crops/toolchain:deps`
-if [ "$Q" == "" ]; then
- echo "Build toolchain deps image"
- docker build -t crops/toolchain:deps -f Dockerfile.toolchain.deps --rm=true ..
-fi
-
-echo "Build toolchain test image"
-docker build -t crops/toolchain:test -f Dockerfile.toolchain --rm=true ..
-
-Q=`docker images -q crops/zephyr:deps`
-if [ "$Q" == "" ]; then
- echo "Build Zephyr deps image"
- docker build -t crops/zephyr:deps -f Dockerfile.zephyr.deps --rm=true ..
-fi
-
-echo "Build Zephyr toolchain image"
-docker build -t crops/zephyr:test -f Dockerfile.zephyr --rm=true ..