File tree Expand file tree Collapse file tree 2 files changed +1
-24
lines changed Expand file tree Collapse file tree 2 files changed +1
-24
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ TIMESTAMP=$(shell date +"%Y%m%d")
2020DOCKERCMD =$(shell which docker)
2121DOCKERBUILD =$(DOCKERCMD ) build --no-cache --network=$(DOCKERNETWORK )
2222DOCKERBUILD_WITH_PULL_PARA =$(DOCKERBUILD ) --pull=false
23+
2324DOCKERRMIMAGE =$(DOCKERCMD ) rmi
2425DOCKERIMAGES =$(DOCKERCMD ) images
2526IMAGENAMESPACE =harbor.nirvati.org/registry
Original file line number Diff line number Diff line change @@ -56,27 +56,6 @@ type_exists() {
5656 return 1
5757}
5858
59- # Check variables
60- if [ -z $1 ]; then
61- error " Please set the 'image' variable"
62- exit 1
63- fi
64-
65- if [ -z $2 ]; then
66- error " Please set the 'username' variable"
67- exit 1
68- fi
69-
70- if [ -z $3 ]; then
71- error " Please set the 'password' variable"
72- exit 1
73- fi
74-
75- if [ -z $4 ]; then
76- info " Using default registry server (dockerhub)."
77- fi
78-
79-
8059# Check Docker is installed
8160if ! type_exists ' docker' ; then
8261 error " Docker is not installed."
8665
8766# Variables
8867IMAGE=" $1 "
89- USERNAME=" $2 "
90- PASSWORD=" $3 "
91- REGISTRY=" $4 "
9268PULL_BASE_FROM_DOCKERHUB=" $5 "
9369
9470set -e
You can’t perform that action at this time.
0 commit comments