-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
152 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
.PHONY: tar | ||
.PHONY: default tar | ||
|
||
FULL_NAME := packer-maas-$(shell git describe --dirty) | ||
|
||
default: | ||
$(error Change your working directory to the image name you want to build!) | ||
|
||
tar: | ||
git ls-files --recurse-submodules LICENSE vmware-esxi centos* rhel* | \ | ||
tar -cJf $(FULL_NAME).tar.xz --transform="s,^,$(FULL_NAME)/," -T - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
PACKER ?= packer | ||
|
||
.PHONY: all clean | ||
|
||
all: centos6.tar.gz | ||
|
||
centos6.tar.gz: clean | ||
sudo PACKER_LOG=1 ${PACKER} build centos6.json | ||
reset | ||
|
||
clean: | ||
sudo ${RM} -rf output-qemu centos6.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
PACKER ?= packer | ||
|
||
.PHONY: all clean | ||
|
||
all: centos7.tar.gz | ||
|
||
centos7.tar.gz: clean | ||
sudo PACKER_LOG=1 ${PACKER} build centos7.json | ||
reset | ||
|
||
clean: | ||
sudo ${RM} -rf output-qemu centos7.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
PACKER ?= packer | ||
|
||
.PHONY: all clean | ||
|
||
all: centos8.tar.gz | ||
|
||
centos8.tar.gz: clean | ||
sudo PACKER_LOG=1 ${PACKER} build centos8.json | ||
reset | ||
|
||
clean: | ||
sudo ${RM} -rf output-qemu centos8.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
PACKER ?= packer | ||
ISO ?= ${RHEL7_ISO_PATH} | ||
|
||
.PHONY: all clean | ||
|
||
all: rhel7.tar.gz | ||
|
||
rhel7.tar.gz: clean | ||
sudo PACKER_LOG=1 ${PACKER} build -var "rhel7_iso_path=${ISO}" rhel7.json | ||
reset | ||
|
||
clean: | ||
sudo ${RM} -rf output-qemu rhel7.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
PACKER ?= packer | ||
ISO ?= ${RHEL8_ISO_PATH} | ||
|
||
.PHONY: all clean | ||
|
||
all: rhel8.tar.gz | ||
|
||
rhel8.tar.gz: clean | ||
sudo PACKER_LOG=1 ${PACKER} build -var "rhel8_iso_path=${ISO}" rhel8.json | ||
reset | ||
|
||
clean: | ||
sudo ${RM} -rf output-qemu rhel8.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
PACKER ?= packer | ||
ISO ?= ${VMWARE_ESXI_ISO_PATH} | ||
|
||
.PHONY: all clean | ||
|
||
all: vmware-esxi.dd.gz | ||
|
||
vmware-esxi.dd.gz: clean | ||
sudo PACKER_LOG=1 ${PACKER} build -var "vmware_esxi_iso_path=${ISO}" vmware-esxi.json | ||
reset | ||
|
||
clean: | ||
sudo ${RM} -rf output-qemu vmware-esxi.dd.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters