This repository has been archived by the owner on Dec 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (37 loc) · 1.49 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
47
48
ifneq ($(wildcard IHP/.*),)
IHP = IHP/lib/IHP
else
IHP = $(shell dirname $$(which RunDevServer))/../lib/IHP
endif
CSS_FILES += ${IHP}/static/vendor/bootstrap.min.css
CSS_FILES += ${IHP}/static/vendor/flatpickr.min.css
CSS_FILES += static/app.css
JS_FILES += ${IHP}/static/vendor/jquery-3.2.1.slim.min.js
JS_FILES += ${IHP}/static/vendor/timeago.js
JS_FILES += ${IHP}/static/vendor/popper.min.js
JS_FILES += ${IHP}/static/vendor/bootstrap.min.js
JS_FILES += ${IHP}/static/vendor/flatpickr.js
JS_FILES += ${IHP}/static/helpers.js
JS_FILES += ${IHP}/static/vendor/morphdom-umd.min.js
JS_FILES += ${IHP}/static/vendor/turbolinks.js
JS_FILES += ${IHP}/static/vendor/turbolinksInstantClick.js
JS_FILES += ${IHP}/static/vendor/turbolinksMorphdom.js
include ${IHP}/Makefile.dist
.PHONY : local-env add-cluster-sa start-target-cluster start-infra-cluster build-db-migrate buid-deploy-local
local-env: start-infra-cluster build-db-migrate build-deploy-local start-target-cluster
add-cluster-sa:
kubectl apply -f ./scripts/create-sa.yml
echo "==="
./scripts/get-cluster-info.sh
start-test-cluster:
./scripts/startTestStack.sh
start-target: start-test-cluster add-cluster-sa
start-infra-cluster:
./scripts/startInfraStack.sh
build-db-migrate:
docker build -t localhost:5000/db-migrator -f ./scripts/Dockerfile.db-migration .
docker push localhost:5000/db-migrator
build-deploy-local:
docker build -t localhost:5000/starboard-federator .
docker push localhost:5000/starboard-federator
kubectl apply -f ./scripts/deploy/