Update
This commit is contained in:
2
ipcheck
2
ipcheck
Submodule ipcheck updated: 03c0de42e2...f0d92f51f4
19
key.sh
Normal file
19
key.sh
Normal file
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/expect -f
|
||||
|
||||
set user "root"
|
||||
set password "saasadmin1234"
|
||||
|
||||
for {set i 200} {$i <= 219} {incr i} {
|
||||
set host "10.10.43.$i"
|
||||
spawn sh -c "ssh-copy-id -o StrictHostKeyChecking=no $user@$host"
|
||||
expect {
|
||||
"*password:" {
|
||||
send "$password\r"
|
||||
exp_continue
|
||||
}
|
||||
eof {
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
4
rel.sh
4
rel.sh
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 이미지 리스트
|
||||
images_list="./imageslist"
|
||||
images_list="/Users/byeonjunghun/Documents/script/imageslist"
|
||||
|
||||
# repo
|
||||
nexus="10.10.31.243:5000"
|
||||
@@ -41,7 +41,7 @@ while IFS= read -r image_name; do
|
||||
docker tag ${nexus}/cmoa/${image_name}:${version} ${dkrepo}/${image_name}:${version}
|
||||
|
||||
echo -e "\n\033[93${image_name}:${version} push!\n\033[0m"
|
||||
ddocker push ${dkrepo}/${image_name}:${version}
|
||||
docker push ${dkrepo}/${image_name}:${version}
|
||||
|
||||
done <"${images_list}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user