mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-19 21:17:52 +00:00
update docker registry used
This commit is contained in:
parent
f726044e29
commit
3d21f0a91f
@ -322,7 +322,7 @@ central-controller: FORCE
|
|||||||
make -j4 LDLIBS="-L/usr/pgsql-10/lib/ -lpq" CXXFLAGS="-I/usr/pgsql-10/include -fPIC" DEFS="-DZT_CONTROLLER_USE_LIBPQ -DZT_CONTROLLER" ZT_OFFICIAL=1 ZT_USE_X64_ASM_ED25519=1 one
|
make -j4 LDLIBS="-L/usr/pgsql-10/lib/ -lpq" CXXFLAGS="-I/usr/pgsql-10/include -fPIC" DEFS="-DZT_CONTROLLER_USE_LIBPQ -DZT_CONTROLLER" ZT_OFFICIAL=1 ZT_USE_X64_ASM_ED25519=1 one
|
||||||
|
|
||||||
central-controller-docker: central-controller
|
central-controller-docker: central-controller
|
||||||
docker build -t gcr.io/zerotier-central/ztcentral-controller:${TIMESTAMP} -f docker/Dockerfile .
|
docker build -t docker.zerotier.com/zerotier-central/ztcentral-controller:${TIMESTAMP} -f docker/Dockerfile .
|
||||||
|
|
||||||
debug: FORCE
|
debug: FORCE
|
||||||
make ZT_DEBUG=1 one
|
make ZT_DEBUG=1 one
|
||||||
|
@ -2,17 +2,25 @@
|
|||||||
|
|
||||||
if [ -z "$1" ]
|
if [ -z "$1" ]
|
||||||
then
|
then
|
||||||
echo "Must supply a docker tag"
|
echo "Usage: $0 <docker_tag> <k8s_namespace>"
|
||||||
|
echo " k8s_namesapce is set to default if not specified"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z "$2" ]
|
||||||
|
then
|
||||||
|
NAMESPACE=default
|
||||||
|
else
|
||||||
|
NAMESPACE=$2
|
||||||
|
fi
|
||||||
|
|
||||||
TAG=$1
|
TAG=$1
|
||||||
|
|
||||||
CONTROLLERS=`kubectl get pods -o=name | grep controller | sed "s/^.\{4\}//" | cut -d '-' -f 2`
|
CONTROLLERS=`kubectl get pods -o=name --namespace=${NAMESPACE} | grep controller | sed "s/^.\{4\}//" | cut -d '-' -f 2`
|
||||||
|
|
||||||
for c in ${CONTROLLERS[@]}
|
for c in ${CONTROLLERS[@]}
|
||||||
do
|
do
|
||||||
kubectl set image deployment controller-${c} ztcentral-controller=gcr.io/zerotier-central/ztcentral-controller:${TAG}
|
kubectl set image deployment --namespace=${NAMESPACE} controller-${c} ztcentral-controller=docker.zerotier.com/zerotier-central/ztcentral-controller:${TAG}
|
||||||
echo "Sleeping for 1 minute"
|
echo "Sleeping for 1 minute"
|
||||||
sleep 60
|
sleep 60
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user