Install Packer#
运行 bin/install_packer 脚本既可为本机安装 packer (只支持 Mac 和 Linux)
bin/install_packer.py
1# -*- coding: utf-8 -*-
2
3"""
4详细文档请参考 https://packer-ami-workflow.readthedocs.io/en/latest/02-Install-Packer/index.html
5"""
6
7from pathlib import Path
8import acore_ami.vendor.packer_ami_workflow.api as paw
9
10packer_installer = paw.PackerInstaller(
11 version="1.11.0",
12 platform=paw.PlatformEnum.macOS_arm64,
13 # platform=paw.PlatformEnum.linux_amd64,
14 dir_workspace=Path(__file__).absolute().parent,
15)
16packer_installer.install()