Skip to content

Commit

Permalink
Add expect file from linux OS
Browse files Browse the repository at this point in the history
Signed-off-by: wang yan <wangyan@vmware.com>
  • Loading branch information
wy65701436 committed Jan 19, 2020
1 parent 012aa57 commit 46f8df7
Showing 1 changed file with 3 additions and 1 deletion.
@@ -1,11 +1,13 @@
#!/usr/local/bin/expect


set HOST [lindex $argv 0]
set PROJECT [lindex $argv 1]
set IMAGE [lindex $argv 2]
set notaryServerEndpoint [lindex $argv 3]
set timeout 30

spawn notary -s https://$HOST:4443 --tlscacert /notary_ca/ca.crt -d /root/.docker/trust remove -p $HOST/$PROJECT/$IMAGE latest
spawn notary -s https://$notaryServerEndpoint --tlscacert /notary_ca.crt -d /root/.docker/trust remove -p $HOST/$PROJECT/$IMAGE latest

expect {
"Enter username:" {send "admin\r";exp_continue}
Expand Down

0 comments on commit 46f8df7

Please sign in to comment.