#!/usr/bin/env bash
# 文件: install-registry.sh

source $(realpath ..)/.vars.conf
source $(realpath ..)/.hosts.conf


export file="docker-registry-2.8.1.${ARCH}.bin"

scp ${ssh_option} $(realpath ..)/files/${file} root@${registry_server}:/tmp && ssh -t ${ssh_option} root@${registry_server} "bash /tmp/${file} ${image_hub_port}"
