зеркало из https://github.com/Azure/acs-engine.git
17 строки
702 B
Makefile
17 строки
702 B
Makefile
build-packer:
|
|
@packer build -var-file=packer/settings.json packer/vhd-image-builder.json
|
|
|
|
init-packer:
|
|
@./packer/init-variables.sh
|
|
|
|
az-login:
|
|
az login --service-principal -u ${CLIENT_ID} -p ${CLIENT_SECRET} --tenant ${TENANT_ID}
|
|
|
|
run-packer: az-login
|
|
@packer version && $(MAKE) init-packer && ($(MAKE) build-packer | tee packer-output)
|
|
|
|
az-copy: az-login
|
|
azcopy --source "${OS_DISK_SAS}" --destination "${CLASSIC_BLOB}/${VHD_NAME}" --dest-sas "${CLASSIC_SAS_TOKEN}"
|
|
|
|
generate-sas: az-login
|
|
az storage container generate-sas --name vhds --permissions lr --connection-string "${CLASSIC_SA_CONNECTION_STRING}" --start ${START_DATE} --expiry ${EXPIRY_DATE} | tr -d '"' | tee -a vhd-sas && cat vhd-sas
|