mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2024-11-22 18:29:58 +08:00
Add warning to test.sh that it's for internal use only
Add warning to test.sh that it's for internal use only
This commit is contained in:
parent
b3e8aabaa9
commit
43a4c0b0d9
@ -119,6 +119,12 @@ MIRROR_COUNTRY="${MIRROR_COUNTRY:=US}"
|
|||||||
NO_CACHE="${NO_CACHE:=--no-cache}"
|
NO_CACHE="${NO_CACHE:=--no-cache}"
|
||||||
|
|
||||||
|
|
||||||
|
TEST_BUILDS=(
|
||||||
|
'docker-osx:naked'
|
||||||
|
'docker-osx:naked-auto'
|
||||||
|
'docker-osx:auto'
|
||||||
|
)
|
||||||
|
|
||||||
TEST_BUILDS=(
|
TEST_BUILDS=(
|
||||||
'docker-osx:naked'
|
'docker-osx:naked'
|
||||||
'docker-osx:naked-auto'
|
'docker-osx:naked-auto'
|
||||||
@ -133,6 +139,20 @@ VERSION_BUILDS=(
|
|||||||
'monterey'
|
'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 () {
|
install_docker () {
|
||||||
apt remove docker docker-engine docker.io containerd runc -y \
|
apt remove docker docker-engine docker.io containerd runc -y \
|
||||||
; apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y \
|
; apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common -y \
|
||||||
@ -270,6 +290,7 @@ EOF
|
|||||||
systemctl enable --now docker
|
systemctl enable --now docker
|
||||||
}
|
}
|
||||||
|
|
||||||
|
warning
|
||||||
tee -a ~/.bashrc <<EOF
|
tee -a ~/.bashrc <<EOF
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
export TZ=UTC
|
export TZ=UTC
|
||||||
|
Loading…
Reference in New Issue
Block a user