This repository has been archived by the owner on Dec 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
40 lines (34 loc) · 2.61 KB
/
Makefile
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
35
36
37
38
39
40
all: validate clean build install upload clean clean-all
validate:
packer validate ubuntu-100-provision-install-ansible.json
packer validate -var 'ansible_playbook_suffix=000-prerequisites' -var 'source_path_step=provision-install-ansible' ubuntu-200-provision-ansible.json
packer validate -var 'ansible_playbook_suffix=100-desktop' -var 'source_path_step=provision-ansible' -var 'source_path_substep=000-prerequisites' ubuntu-200-provision-ansible.json
packer validate -var 'ansible_playbook_suffix=200-docker' -var 'source_path_substep=100-desktop' ubuntu-200-provision-ansible.json
packer validate -var 'ansible_playbook_suffix=300-java' -var 'source_path_substep=200-docker' ubuntu-200-provision-ansible.json
packer validate -var 'ansible_playbook_suffix=400-ruby' -var 'source_path_substep=300-java' ubuntu-200-provision-ansible.json
packer validate -var 'ansible_playbook_suffix=500-virtualization' -var 'source_path_substep=400-ruby' ubuntu-200-provision-ansible.json
packer validate -var 'ansible_playbook_suffix=600-general-development-tools' -var 'source_path_substep=500-virtualization' ubuntu-200-provision-ansible.json
packer validate ubuntu-201-upgrade.json
packer validate ubuntu-300-vagrant-box.json
packer validate ubuntu-400-vagrant-cloud-upload.json
build:
ubuntu-000-os-install.sh
packer build ubuntu-100-provision-install-ansible.json
packer build -var 'ansible_playbook_suffix=000-prerequisites' -var 'source_path_step=provision-install-ansible' ubuntu-200-provision-ansible.json
packer build -var 'ansible_playbook_suffix=100-desktop' -var 'source_path_substep=000-prerequisites' ubuntu-200-provision-ansible.json
packer build -var 'ansible_playbook_suffix=200-docker' -var 'source_path_substep=100-desktop' ubuntu-200-provision-ansible.json
packer build -var 'ansible_playbook_suffix=300-java' -var 'source_path_substep=200-docker' ubuntu-200-provision-ansible.json
packer build -var 'ansible_playbook_suffix=400-ruby' -var 'source_path_substep=300-java' ubuntu-200-provision-ansible.json
packer build -var 'ansible_playbook_suffix=500-general-development-tools' -var 'source_path_substep=400-ruby' ubuntu-200-provision-ansible.json
packer build ubuntu-201-upgrade.json
packer build ubuntu-300-vagrant-box.json
clean:
rm -rf builds
clean-all: clean
rm -rf packer_cache
install:
vagrant box add ferrarimarco/open-development-environment-devbox ./builds/vagrant/ubuntu-17.10-amd64.virtualbox.box --force || true
vagrant box list | grep ferrarimarco/open-development-environment-devbox
upload:
packer build ubuntu-400-vagrant-cloud-upload.json
@echo Box has been uploaded. Run make clean-all to reclaim disk space.