Skip to content

Commit

Permalink
Add warning to test.sh that it's for internal use only
Browse files Browse the repository at this point in the history
Add warning to test.sh that it's for internal use only
  • Loading branch information
sickcodes committed Mar 11, 2022
1 parent b3e8aab commit 43a4c0b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ MIRROR_COUNTRY="${MIRROR_COUNTRY:=US}"
NO_CACHE="${NO_CACHE:=--no-cache}"


TEST_BUILDS=(
'docker-osx:naked'
'docker-osx:naked-auto'
'docker-osx:auto'
)

TEST_BUILDS=(
'docker-osx:naked'
'docker-osx:naked-auto'
Expand All @@ -133,6 +139,20 @@ VERSION_BUILDS=(
'monterey'
)

warning () {
clear
for j in {15..1}; do
echo "############# WARNING: THIS SCRIPT IS NOT INTENDED FOR USE BY ################"
echo "############# IT IS USED BY THE PROJECT TO BUILD AND PUSH TO DOCKERHUB #######"
echo ""
echo " Press Ctrl C to stop. "
MAX_COLS=$((${COLUMNS}/2))
printf "$j %.0s" {1..20}
echo
sleep 1
done
}

install_docker () {
apt remove docker docker-engine docker.io containerd runc -y \
; apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y \
Expand Down Expand Up @@ -270,6 +290,7 @@ EOF
systemctl enable --now docker
}

warning
tee -a ~/.bashrc <<EOF
export DEBIAN_FRONTEND=noninteractive
export TZ=UTC
Expand Down

0 comments on commit 43a4c0b

Please sign in to comment.