-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
64 lines (46 loc) · 2.08 KB
/
Makefile
File metadata and controls
64 lines (46 loc) · 2.08 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
#files that need to be added after installation:
#workdir/secret/password <--- if using UP.sh
#docker-compose.yml <--- if using UP.sh
WORKDIR=$(CURDIR)/workdir
DEVDIR=$(WORKDIR)/developer
APPBUILDER_BASE= \
$(DEVDIR)/app_builder \
$(DEVDIR)/appdev-core \
$(DEVDIR)/appdev-opsportal \
APPBUILDER_SERVICES= \
$(DEVDIR)/notification_email \
$(DEVDIR)/process_manager
PROJECTS=$(APPBUILDER_BASE) $(APPBUILDER_SERVICES)
GIT_OPTIONS=--recurse-submodules --depth 1 --shallow-submodules --quiet
GIT_BRANCH=--single-branch --branch develop
all: rebuild
rebuild: $(PROJECTS)
#cd $(DEVDIR)/app_builder ; npm run build
docker run --mount type=bind,source="$(DEVDIR)/app_builder",target=/app -w /app node:6.12.3 npm run build
$(WORKDIR):
git clone $(GIT_OPTIONS) https://github.com/Hiro-Nakamura/ab_runtime_v1.git $(WORKDIR)
cd $(WORKDIR) ; npm install
docker run --mount type=bind,source="$(WORKDIR)/app",target=/app \
--mount type=bind,source="$(WORKDIR)/resources/scripts/unTar.sh",target=/app/unTar.sh \
skipdaddy/install-ab:developer_v2 ./unTar.sh 1>/dev/null 2>&1
$(DEVDIR): $(WORKDIR)
@echo "Creating working path: $@"
@mkdir -p $(DEVDIR)
$(APPBUILDER_BASE): $(DEVDIR)
@echo ""
@echo "==========================================================================================="
@echo "Installing $(notdir $@)"
git clone $(GIT_OPTIONS) $(GIT_BRANCH) https://github.com/appdevdesigns/$(notdir $@).git $@
#cd $@ ; npm install --silent --no-progress 1>/dev/null 2>/dev/null
@echo "Running npm install for $(notdir $@)"
-docker run --mount type=bind,source="$@",target=/app -w /app node npm install
$(APPBUILDER_SERVICES): $(DEVDIR)
@echo ""
@echo "==========================================================================================="
@echo "Installing $(notdir $@)"
git clone $(GIT_OPTIONS) https://github.com/appdevdesigns/ab_service_$(notdir $@).git $@
#cd $@ ; npm install --silent --no-progress 1>/dev/null 2>/dev/null
@echo "Running npm install for $(notdir $@)"
-docker run --mount type=bind,source="$@",target=/app -w /app node npm install --silent
clean:
rm -rf $(WORKDIR)