-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (24 loc) · 845 Bytes
/
Makefile
File metadata and controls
34 lines (24 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
build:
packer build image.json
run: build
docker run -it opszero/opshell
docker:
packer build -only=docker image.json
azure-marketplace-setup:
# https://docs.microsoft.com/en-us/azure/virtual-machines/linux/build-image-with-packer
az group create -n opszero-opshell -l eastus
az ad sp create-for-rbac --query [appId,password,tenant]
az account show --query [id] --output tsv
azure-marketplace:
packer build -only=azure-arm image.json
aws-marketplace:
# Build Image with Packer for AWS Marketplace
AWS_REGION=us-east-1 \
AWS_ACCESS_KEY_ID=$(shell aws configure get opszero.aws_access_key_id) \
AWS_SECRET_ACCESS_KEY=$(shell aws configure get opszero.aws_secret_access_key) \
packer build -only=amazon-ebs image.json
gcp:
packer build -only=googlecompute image.json
mac-deps:
brew install packer
brew cask install docker