Makefile 1.21 KB
Newer Older
Zachary Sabourin's avatar
Zachary Sabourin committed
1
2
3
4
5
6
7
8
9
SHELL = /bin/bash
pre-setup:;
	@echo "Creating environment file from template"
	@rm -f .env && envsubst < config/.env.sample > .env
setup:;
	@echo "Generating secret files from templates using environment file + variables"
	@source .env && rm -f ./config/application/secret.properties && envsubst < config/application/secret.properties.sample | tr -d '\r' > config/application/secret.properties
dev-start:;
	source .env && mvn compile quarkus:dev
10
11
clean:;
	mvn clean
Martin Lowe's avatar
Martin Lowe committed
12
compile-java: validate-spec generate-spec;
13
14
15
16
17
	mvn compile package
compile-java-quick: validate-spec;
	mvn compile package -Dmaven.test.skip=true
compile: clean compile-java;
compile-quick: clean compile-java-quick;
18
19
20
21
22
install-yarn:;
	yarn install --frozen-lockfile --audit
generate-spec: install-yarn;
	yarn run generate-json-schema
validate-spec: install-yarn;
23
compile-start: compile-quick;
Zachary Sabourin's avatar
Zachary Sabourin committed
24
25
26
	docker compose down
	docker compose build
	docker compose up
27
compile-start-headless: compile-quick;
Zachary Sabourin's avatar
Zachary Sabourin committed
28
29
30
	docker compose down
	docker compose build
	docker compose up -d
31
start-spec: validate-spec;
32
	yarn run start
33
34
35
36
37
generate-notice-src:;
	docker run -v $(PWD)/:/project \
		-v /project/node_modules \
		-v /project/volumes \
		scancode-toolkit -clpeui --json-pp /project/result.json /project