-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
46 lines (35 loc) · 1.2 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
41
42
43
44
45
46
.ONESHELL .PHONY: install build test dev lint
.DEFAULT_GOAL := build
install:
$(MAKE) -C install
build: remove-tmp remove-built-box
@(cd packer; packer build -force .) || (echo '\n\nIf you get an SSL error you might be behind a transparent proxy.\nMore info https://github.com/Skatteetaten/vagrant-hashistack/blob/master/README.md#proxy\n\n' && exit 2)
lint:
@(docker pull ghcr.io/github/super-linter:v4)
@(docker run -v $$PWD:/tmp/lint --env RUN_LOCAL=true --env FILTER_REGEX_EXCLUDE="(packer/output-hashistack|.vagrant|template)/*" --env VALIDATE_TERRAGRUNT=false --rm ghcr.io/github/super-linter:v4)
test:
ifeq (,$(wildcard ./packer/output-hashistack/package.box))
$(MAKE) build
endif
$(MAKE) -C test
dev:
ifeq (,$(wildcard ./packer/output-hashistack/package.box))
$(MAKE) build
endif
$(MAKE) -C dev
ssh:
(cd template; vagrant ssh)
clean: remove-tmp destroy-box
destroy-box:
(cd template; vagrant destroy -f)
remove-tmp:
rm -fr ansible/facts.d
remove-built-box:
cd packer
rm -rf output-hashistack
# submodules
# https://www.vogella.com/tutorials/GitSubmodules/article.html
## Point to latest commit in remote submodule
update-submodule:
git submodule update --init
git submodule update --remote